drochner
9e8c9e9594
-pull in exec.c, needed since loadfile.c
...
-don't pull in tftp.c anymore, it's in libsa now
1999-02-24 19:38:17 +00:00
thorpej
726091e400
Explicitly include opt_multiprocessor.h, rather then relying on its
...
implicit inclusion by pmap.h.
1999-02-24 19:36:04 +00:00
drochner
f1d1de8c7a
moved to mi lib/libsa
1999-02-24 19:32:34 +00:00
drochner
0633616d7a
build tftp filesystem, rearrange .ifdef slightly so that network stuff
...
is not built if ${SA_INCLUDE_NET} is not set
1999-02-24 19:31:03 +00:00
thorpej
a65d3ba579
Note that the way the temporary PROM mapping is handled is completely
...
broken on multiprocessor systems.
1999-02-24 19:25:56 +00:00
drochner
03497d6478
move TFTP filesystem from i386/stand/libsa here, it is mi
1999-02-24 19:24:56 +00:00
thorpej
4cdbd84b63
First-cut at multiprocessor TLB shootdown. This simple implementation can
...
probably be improved somewhat, but an attempt to be efficient has been
made.
Note: TLB shootdowns are NOT YET ENABLED.
1999-02-24 19:22:16 +00:00
thorpej
911465b54c
Restructure the IPI code a little, allowing multiple IPIs to be sent at
...
once. Add a way to broadcast an IPI to all processors (except the sender,
obviously). Add an IPI for TLB shootdown.
1999-02-24 19:17:09 +00:00
jwise
8ef8f5c8fb
Fix typo.
...
Fixes last part of PR bin/6883 from Soren S. Jorvang <soren@t.dk>.
1999-02-24 18:54:03 +00:00
drochner
6ed35ee84b
sync to [nisimura-pmax-wscons] version
...
(only change: include register definitions from regdef.h)
1999-02-24 18:36:32 +00:00
rh
46e61f2db1
regen to correct "generated from" as pointed out by Matthias Drochner, thx!
1999-02-24 18:26:37 +00:00
chs
5e59fee53a
use RODATA(__ffstab) instead of ENTRY().
...
this makes profiling kernels work on the sparc.
1999-02-24 16:27:01 +00:00
chs
b2546175a6
don't list any *.S files in SRCS multiple times, once is enough.
1999-02-24 16:25:43 +00:00
chs
5a0258140e
no need to add ${OBJS} to POBJS here, bsd.lib.mk does it automatically.
1999-02-24 16:22:42 +00:00
chs
31ef6fbb8d
add RODATA(), which is like ENTRY() but without the _PROF_PROLOGUE.
1999-02-24 16:02:19 +00:00
rh
5ff2e5a369
Add entry for Terratec AudioSystem EWS64 CoDec.
1999-02-24 15:37:34 +00:00
simonb
e73260106c
This stuff is _hopelessly_ out of date, and will almost certainly never
...
be used again. (Famous last words :-)
1999-02-24 14:26:25 +00:00
simonb
61b327c2ac
Remove bootconf.c from CLEANFILES; not used anymore.
1999-02-24 13:54:54 +00:00
oster
65be57243f
Minor cleanups and code rearranging. Now knows a little about component
...
labels and how to deal with hot-adding spare components. Still work in
progress -- component labels and hot-adding are not enabled (yet).
1999-02-24 00:00:03 +00:00
oster
be9eca67c8
Cleanup/remove unused cruft. First kick at component labels and clean bits.
...
Still work in progress. New code is there, but not enabled yet.
1999-02-23 23:57:53 +00:00
oster
07b6b89dce
Move vnode cleanup code into one place. Cleanup a bit.
1999-02-23 23:55:29 +00:00
oster
0d29172def
Do a VOP_UNLOCK() before a vn_close().
1999-02-23 23:53:37 +00:00
nathanw
281bba9355
Update for minor changes in the ad1848 back end.
1999-02-23 21:16:27 +00:00
dante
eab52d94b3
Fixed AdvanSys Ultra Wide driver to work on Alpha.
1999-02-23 20:18:16 +00:00
is
874801e906
Remove zero length array
1999-02-23 20:11:06 +00:00
christos
88162a0fe9
Make this compile without EXEC_AOUT and with COMPAT_FREEBSD
1999-02-23 18:19:29 +00:00
mycroft
d4955ba8a9
While I'm on a fixed point kick, improve the NTP clock factor correction to
...
give <.1% error in all (supported) cases. It doesn't cost us much.
1999-02-23 17:41:48 +00:00
kleink
cd577c539a
Addendum to rev. 1.15: use of __extension__ here is supported in GCC 2.8.0 and
...
above only; since this is the only occurence, fix it locally rather than in
<sys/cdefs.h> as to not remove all the functionality on pre-2.8 systems.
XXX Shouldn't use zero-length arrays at all.
1999-02-23 16:59:38 +00:00
mrg
3743c9e91d
handle SWAP_DUMPDEV
1999-02-23 15:58:28 +00:00
simonb
faca98eb71
Add memset.S instead of memset.c, and remove __main.c.
1999-02-23 11:06:38 +00:00
nathanw
fad6371a16
Update for recent changes in wssvar.h.
1999-02-23 09:14:05 +00:00
pk
9efc61e01c
Accept __syscall() in NetBSD a.out emulation.
1999-02-23 06:47:05 +00:00
nisimura
d6715660b7
- Introduce the first cut of faster wsdisplay_emulops exploiting SFB
...
accelerator potential. Need more work to finish replacing rcons.
Premilinary tests were done with DECstation and TC Alpha.
1999-02-23 06:34:49 +00:00
thorpej
76e4555f2c
Now that we have the kthread mechanism, massively clean up the way
...
additional processors are spun up on multiprocessor Alpha systems.
Now, each processor gets its own idle thread (the primary processor
uses proc0). This idle thread is used in switch_exit(), rather than
explicitly referencing proc0.
Also, make `curproc', `fpcurproc', and `curpcb' per-cpu values. This
required some data structure rearrangement; cpu info is now statically
allocated in the BSS, rather than via malloc(), and cpu_softc is gone.
(Modeled somewhat after NetBSD/sparc's multiprocessor info structures.)
1999-02-23 03:20:00 +00:00
ross
6803dbddbb
Replace the recent scheduler mods with calls to scheduler_{fork,wait}_hook(),
...
(inlined) so scheduler functionality can be kept in a single .h/.c set.
Also, the wait hook has changed the way it clips the scheduler history.
1999-02-23 02:57:18 +00:00
ross
f39415fb66
Add sched.h.
1999-02-23 02:56:54 +00:00
ross
16204c31ac
Generate the new schedclk() call into the MI kernel. Set schedhz
...
here to indicate that.
1999-02-23 02:56:40 +00:00
ross
b4a33c4e60
Scheduler bug fixes and reorganization
...
* fix the ancient nice(1) bug, where nice +20 processes incorrectly
steal 10 - 20% of the CPU, (or even more depending on load average)
* provide a new schedclk() mechanism at a new clock at schedhz, so high
platform hz values don't cause nice +0 processes to look like they are
niced
* change the algorithm slightly, and reorganize the code a lot
* fix percent-CPU calculation bugs, and eliminate some no-op code
=== nice bug === Correctly divide the scheduler queues between niced and
compute-bound processes. The current nice weight of two (sort of, see
`algorithm change' below) neatly divides the USRPRI queues in half; this
should have been used to clip p_estcpu, instead of UCHAR_MAX. Besides
being the wrong amount, clipping an unsigned char to UCHAR_MAX is a no-op,
and it was done after decay_cpu() which can only _reduce_ the value. It
has to be kept <= NICE_WEIGHT * PRIO_MAX - PPQ or processes can
scheduler-penalize themselves onto the same queue as nice +20 processes.
(Or even a higher one.)
=== New schedclk() mechansism === Some platforms should be cutting down
stathz before hitting the scheduler, since the scheduler algorithm only
works right in the vicinity of 64 Hz. Rather than prescale hz, then scale
back and forth by 4 every time p_estcpu is touched (each occurance an
abstraction violation), use p_estcpu without scaling and require schedhz
to be generated directly at the right frequency. Use a default stathz (well,
actually, profhz) / 4, so nothing changes unless a platform defines schedhz
and a new clock. Define these for alpha, where hz==1024, and nice was
totally broke.
=== Algorithm change === The nice value used to be added to the
exponentially-decayed scheduler history value p_estcpu, in _addition_ to
be incorporated directly (with greater wieght) into the priority calculation.
At first glance, it appears to be a pointless increase of 1/8 the nice
effect (pri = p_estcpu/4 + nice*2), but it's actually at least 3x that
because it will ramp up linearly but be decayed only exponentially, thus
converging to an additional .75 nice for a loadaverage of one. I killed
this, it makes the behavior hard to control, almost impossible to analyze,
and the effect (~~nothing at for the first second, then somewhat increased
niceness after three seconds or more, depending on load average) pointless.
=== Other bugs === hz -> profhz in the p_pctcpu = f(p_cpticks) calcuation.
Collect scheduler functionality. Try to put each abstraction in just one
place.
1999-02-23 02:56:03 +00:00
jonathan
68a5ad19be
Fix off-by-one width: 220, not 221. confirmed against PROM setup.
1999-02-23 01:35:56 +00:00
simonb
381c553a53
Use -Os to reduce code size (from Krister Walfridsson).
1999-02-23 01:23:26 +00:00
thorpej
fbca0a78d7
Do all the fancy printf format checking.
1999-02-23 01:00:51 +00:00
is
e6da344c31
Update.
1999-02-22 22:07:37 +00:00
is
74ad0ecb0d
Generate the MIT-assembler-format files statically. They nearly never change,
...
and if so, should be generated via the new Makefile and committed, too.
1999-02-22 21:25:05 +00:00
tsubai
16442fd649
Add MESH SCSI driver.
...
Sort entries.
1999-02-22 20:25:43 +00:00
thorpej
ca42d26309
GENERIC already has DDB.
1999-02-22 19:14:46 +00:00
pk
372e76a3bb
Since V2 & V3 proms already pass us ihandles for stdin and stdout,
...
there's no need to open the device a second time. It suffices to
just convert the `ihandles' to `phandles'.
1999-02-22 17:15:30 +00:00
drochner
220b8d9add
PR kern/7033 (Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>): use
...
device minor to unit/partition macros from sys/disklabel.h
1999-02-22 16:00:01 +00:00
simonb
ffa92484e2
Update cpp defines to current reality.
1999-02-22 11:57:18 +00:00
simonb
74f2d414ef
Load the bootblocks at 0x8070000 so that ramdisk kernels don't
...
overwrite the beginning of the bootblocks.
1999-02-22 11:53:57 +00:00
simonb
69ba0d255c
Update list of source files to reflect reality.
1999-02-22 11:31:46 +00:00
simonb
c3baaf3ba5
Lightweight memset routine.
1999-02-22 11:26:15 +00:00
simonb
31f50e4868
Assembly stubs to PROM callback routines.
1999-02-22 11:22:40 +00:00
simonb
80ef484669
Use sys/lib/libsa/ routines now.
1999-02-22 11:21:21 +00:00
simonb
74df4f53e0
Allow code in sector zero (from Michael Hitch).
...
Also in start.S:
+ Removed unused printf routine.
+ Removed unused dummy __main for gcc.
+ s/bzero/memset/.
1999-02-22 11:01:43 +00:00
simonb
09cca9e076
Don't use the conf.c->bootconf.c guff, remove last tape support,
...
and actually install the bootblocks.
1999-02-22 10:53:13 +00:00
simonb
3d6a630813
Break single read and printf of text+data into two separate reads and
...
printfs. Better aesthetically, especially with a twiddle.
1999-02-22 10:23:53 +00:00
simonb
63e306cbe7
Use "#ifdef UFS_NOCLOSE/UFS_NOWRITE" instead of "#ifdef SMALL".
1999-02-22 10:18:40 +00:00
simonb
6932c61287
Use memset() instead of bzero().
1999-02-22 10:16:52 +00:00
bouyer
71036465a5
In cy693_setup_channel(), setup timings for IOR too (they were left to 0,
...
which is a way too higth timing for some devices). Thanks to Ken Wellsch
for trying the multiple debug kernels until the problem was located.
1999-02-22 10:12:00 +00:00
simonb
e7d831fa31
Define bzero()/bcopy() in terms of memset()/memcpy() if LIBSA_USE_MEMSET
...
or LIBSA_USE_MEMCPY is defined. Most everything pulls in stand.h so
this should cover ports that only use memset/memcpy but still want to
pull in as much as possible from sys/lib/libsa.
1999-02-22 10:08:42 +00:00
simonb
e87d6bf17e
More tape support not needed.
1999-02-22 09:25:16 +00:00
simonb
50ae7be229
Don't implicitly type the devopen() function.
...
Don't include machine/dec_prom.h.
1999-02-22 08:24:47 +00:00
simonb
2e4a4cb289
Revert to a simple memcpy implementation - a memcpy() PROM callback is not
...
available on all DECstation models.
1999-02-22 08:22:21 +00:00
simonb
2407241a09
Sync with sys/lib/libsa/ufs.c. Now the same except for the memset/memcpy
...
#defines at the top.
1999-02-22 08:16:57 +00:00
simonb
99c7714a77
Drop support for symlinks of UFS_NOSYMLINK is defined.
...
Don't compile in ufs_close/ufs_write if UFS_NOCLOSE/UFS_NOWRITE is defined.
Remove trailing whitespace.
1999-02-22 07:59:09 +00:00
simonb
f60844a657
Use printf() instead of putchar() if SA_NOPUTCHAR is defined (for the
...
pmax).
Also don't include stdarg.h/varargs.h - we don't use them here.
1999-02-22 07:53:52 +00:00
fvdl
f927176889
Add internal 3com PHYs for the ex driver.
1999-02-22 07:44:50 +00:00
simonb
ddf48f18a0
Remove traces of tape support - we're nowhere near handling it at the
...
moment.
1999-02-22 07:17:44 +00:00
mycroft
71eb5693e6
Use DMAMODE_DEMAND.
1999-02-22 03:24:33 +00:00
mycroft
0dbf3ab3ca
Use DMAMODE_DEMAND. Not tested, but presumed to work.
1999-02-22 02:56:13 +00:00
mycroft
0d22ee1396
Use DMAMODE_DEMAND. Tested on an AS200.
1999-02-22 02:52:24 +00:00
mycroft
10817df7f0
Oops; remove obsolete code.
1999-02-22 02:33:48 +00:00
mycroft
bd575a4ff6
Add support for demand mode with auto-init.
1999-02-22 02:32:43 +00:00
mycroft
529c6c50aa
Use DMAMODE_LOOPDEMAND. Tested on a CS4231 in a WSS clone.
1999-02-22 02:25:20 +00:00
mycroft
7da867ec93
Use DMAMODE_LOOPDEMAND. Tested on a ViBRA16.
1999-02-22 02:16:40 +00:00
mycroft
ea50d6f672
Use DMAMODE_LOOPDEMAND.
...
Fixes the audible glitches (due to FIFO underruns) when receiving network
packets on the Shark.
1999-02-22 01:57:33 +00:00
jonathan
8b01b985e7
Cannot do mcount() profiling in TLB exception-handler code.
1999-02-22 00:21:39 +00:00
cjs
d390501801
Safer use of printf.
1999-02-22 00:12:36 +00:00
scw
4a38a5de3a
Remove a comment of mine which no longer applies.
1999-02-21 18:10:10 +00:00
kleink
10a02a6706
Zero-sized arrays are a GNU C extension; from Dave Sainty in PR kern/6271.
1999-02-21 17:35:17 +00:00
drochner
918dfd95e1
-always do an RARP if revarpwhoarewe() is called, it might be for another
...
interface or the server's configuration has changed
-g/c revarpwhoami()
1999-02-21 15:17:14 +00:00
drochner
33ed457810
-call nfs_boot_cleanup() if mount failed
...
-g/c diskless swap initialization
1999-02-21 15:11:09 +00:00
drochner
27098b1199
restructure the diskless NFS boot code to keep track of the used
...
interface and the address allocated, to roll everything back if the
mount fails:
-put an interface pointer into "struct nfs_diskless" to have it
available for cleanup, don't pass it around anymore where the
"struct nfs_diskless" is already passed
-add a "cleanup" function which shuts the interface down
-in the protocol-specific parts, either return with "everything
ready" or "completely shut down"
-use common functions for interface initialization and shutdown
-add a function to delete all routes associate to an interface
(why is this necessary and not done by ~IFF_UP?)
g/c diskless swap stuff
general cleanup
1999-02-21 15:07:49 +00:00
scw
fc658e2d3e
Don't update the CORx registers unless they really have changed.
...
Also make console Tx handling wait until the Tx FIFO has drained and
the shift-register is empty before sending console characters.
1999-02-21 14:01:50 +00:00
scw
6312ec9ab7
Move scsi_nosync declaration into ncrsc_pcctwo since I've permanently
...
disabled sync negotiation in the 147's SBIC driver. (I could never make
it work). Also, don't enable bus-snooping with a 68060 based board.
1999-02-21 13:59:35 +00:00
abs
b86f85e1cc
wdcwait is called initially without any device on my thinkpad.
...
This breaks the first WDCDEBUG_PRINT. Handle this case.
1999-02-21 02:07:52 +00:00
hubertf
ed418e30a2
Only define WDCDEBUG if not already define (e.g. by kernel option)
1999-02-21 00:52:04 +00:00
hubertf
37a9e5bb67
Only define WDCDEBUG if not already defined (e.g. by some kernel option)
1999-02-21 00:15:42 +00:00
hubertf
99626f33a3
Only #define WDCDEBUG if it isn't already defined (e.g. by some options
...
in the kernel config file).
1999-02-20 23:47:52 +00:00
mycroft
b81ad0de61
Fix the halt_input and halt_output routines to actually disable the channel,
...
not just the DMA FIFO. Fixes problems with sample misalignment.
1999-02-20 23:28:37 +00:00
augustss
5113c5b9c0
Move the bus reset up. This makes the VIA chipset work. From FreeBSD.
1999-02-20 23:26:16 +00:00
thorpej
0f7073ded3
If we match, and we're COMPAT_AOUT, use the a.out compat syscall switch,
...
not the "stock" one.
1999-02-20 23:25:55 +00:00
drochner
bd047d30a0
complete mapping table for pcvt fonts, make dual-font selection work
...
as intended
1999-02-20 18:27:53 +00:00
drochner
9ad8930d16
complete mapping tables a bit so that ASCII (ie vt100) art looks better
...
even without extra fonts loaded
1999-02-20 18:26:13 +00:00
drochner
cc294f2cc5
complete the font tables for the DEC special fonts; assign some codes
...
from the private Unicode area (0xe000 ff.) to stuff I didn't find in
the Unicode database
1999-02-20 18:20:02 +00:00
scw
dfaaa08fb4
Include the GENERIC config. file instead of VME147.
1999-02-20 17:19:41 +00:00
scw
134a854765
Add some missing targets from sys/lib/libsa.
1999-02-20 16:26:57 +00:00
scw
9a7c49a33e
Add splserial().
1999-02-20 16:24:53 +00:00
scw
3a5b0d88ca
That #define splserial() really didn't want to be there...
1999-02-20 16:23:39 +00:00
scottr
cc6252b08b
Handle RB_POWEROFF appropriately.
1999-02-20 10:00:37 +00:00