explorer
729bfc4dd7
undo commit made in error
1999-02-28 19:03:11 +00:00
explorer
c1ab1c57fb
don't collect or estimate on network devices by default
1999-02-28 19:01:30 +00:00
pk
523f9ad292
Don't try to translate the mount point, to avoid e.g. mounting
...
the /usr filesystem on /emul/aout/usr.
1999-02-28 18:46:13 +00:00
ross
e47e3c9f45
schedclk() -> schedclock(), for consistency with hardclock(), statclock(), ...
...
update comments for recent scheduler mods
1999-02-28 18:14:57 +00:00
explorer
6b24c4b0fd
Cleanup (in preparation for using gzip to estimate entropy)
...
(1) remove unused and probably bad (from an API POV) ioctls,
(2) split tyfl into type and flags,
(3) collect an array of samples, and add them all at once. Soon, this
will be using gzip to estimate the entropy, but for now the original
estimation methods are still used.
(4) kill rnd_add_data() -- it compliated the API for little benefit
1999-02-28 17:18:42 +00:00
explorer
3ebb419571
Update to slightly altered rnd_attach_source() api
1999-02-28 17:08:05 +00:00
pk
87ae97e3f0
Fix what is probably a past-o.
1999-02-28 17:01:49 +00:00
scw
5a1959a811
Push 'curproc' on the stack, not 'cachectl'. (I own Ignatios one brick :)
1999-02-28 16:49:04 +00:00
drochner
0d46b0d0fd
Make "1" an acceptable result in port tests.
...
This is a workaround for crappy hardware, normal keyboard controllers
return a "0".
Should fix PR port-i386/6636 by Krister Walfridsson and problems
reported by chopps and fvdl.
1999-02-28 14:26:38 +00:00
fvdl
c0fb2ab4f2
Use a SETRECURSE lock before calling VFS_MOUNT in the mount() system call,
...
since the lock may be taken again. This was the intention of the CANRECURSE
lock already there, but didn't work.
Only fill in the vnode<->mountpoint links (mountedhere and vnodecovered)
after VFS_MOUNT returned succesfully. It might happen that something called
from VFS_MOUNT mistook the vnode for an already successfully mounted on
one because of this.
1999-02-28 14:12:54 +00:00
fvdl
09469c565c
Define LK_SETRECURSE.
1999-02-28 14:09:45 +00:00
fvdl
080ad305ff
Recursive locks were previously only available with LK_CANRECURSE. This
...
could be done in one of 2 ways:
* call lk_init with LK_CANRECURSE, resulting in a lock that
always can be used recursively.
* call lockmgr with LK_CANRECURSE, meaning that it's ok if this
lock is already held by us.
Sometimes we need a locking type that says: take this lock now, exclusively,
but while I am holding it, I may go through a code path which could attempt
to get the lock again, and which is unaware that the lock might already
be taken. Implement LK_SETRECURSE for this purpose. Assume that locks and
unlocks come in matching pairs (they should), and check for this 'level'
using SETRECURSE locks.
1999-02-28 14:09:15 +00:00
explorer
cff4c9630b
Don't mix in data just to stir the rnd pool. Extracting data will do that,
...
any network packets received might, too, so this is already taken care of.
1999-02-28 13:41:24 +00:00
drochner
d57c7b76ca
replace ENTRY() label in data segment which broke the code completely
1999-02-28 11:45:44 +00:00
augustss
9929e72099
Fix some buglets pointed out by "Brett D. Slager" <bds@snarf.thnet.com>
1999-02-28 10:05:00 +00:00
mark
3aca0028f1
Fix else ambiguity.
1999-02-28 10:01:08 +00:00
mark
8b41c31868
Fix compiler warning.
1999-02-28 09:59:33 +00:00
is
04e9e604aa
Regenerate.
1999-02-28 07:45:13 +00:00
is
c3f462a037
Alas, Melody boards don't configure in a DraCo.
1999-02-28 07:42:47 +00:00
scottr
e640c5d7cc
Move all IPL setup to intr.c, and do some sanity checking.
1999-02-28 04:52:07 +00:00
mark
b8ca758af8
Implement pmap_procwr() the arm32 part of fix for pr 6152.
1999-02-28 01:49:25 +00:00
kim
cc6ca72465
Made this compile:
...
- fifth arg to recvtftp should be size_t (not ssize_t)
- the path is passed tftp_makereq as a part of the handle structure
1999-02-28 00:57:07 +00:00
eeh
89c4b1c360
Let's try to make prom_cnget() work.
1999-02-28 00:29:24 +00:00
eeh
b6bf56be36
Use block load/store in pmap_zero_page()/pmap_copy_page().
1999-02-28 00:26:46 +00:00
eeh
1f9186e111
Teach it some VIS instructions.
1999-02-28 00:23:58 +00:00
eeh
4ffa956fbb
Fix up alignment issues dumping physical memory.
1999-02-28 00:22:32 +00:00
pk
5c062abb64
Fix the bus print function.
1999-02-27 22:21:13 +00:00
is
27fc050f1d
Oops.
...
Forgot to commit this LONG ago.
1999-02-27 20:46:56 +00:00
is
0fe440926c
Correct type of 3rd argument.
1999-02-27 19:31:58 +00:00
tsubai
78665b6502
Increase default data size to compile libbfd without `virtual memory
...
exhausted'. Suggested by Scott Reynolds.
1999-02-27 18:32:31 +00:00
sommerfe
fb74cf8d8e
Finish fix for PR7059: rename fields in mbstat we no longer maintain
...
to _m_spareN; add a comment explaining where to get comparable info.
1999-02-27 18:20:37 +00:00
pk
f008a1bbd0
Missing `break'.
1999-02-27 16:13:59 +00:00
pk
331694119a
Our device name differs from the PROMs node name.
1999-02-27 13:17:08 +00:00
pk
49035b27c8
Do not call printf() from a CPU that is spinning up; defer the probe
...
messages to cpu_attach() where the boot processor takes care of them.
This also necessitates a slight change in the way the FPU name is stored.
1999-02-27 13:11:21 +00:00
mark
d6f8b575ea
Add PCI-PCI bridge device.
...
Up maxusers to 32.
1999-02-27 11:19:25 +00:00
mark
bbd7276407
Add PCI-PCI bridge devices.
1999-02-27 11:18:27 +00:00
mark
54e053627e
Implement bus_space_{read,write}_region_2().
...
Make bus_space_copy_region_2() work correctly for overlapping regions.
1999-02-27 11:14:27 +00:00
mark
77d06b9612
Remove a debug hack.
1999-02-27 11:12:44 +00:00
scottr
d32ed292af
defopt BUFCACHE and BUFPAGES.
1999-02-27 06:39:34 +00:00
scottr
21c8d6ed43
Fix tyop in last.
1999-02-27 05:28:35 +00:00
oster
ee9187f136
After a vn_close(), set the vnode * to NULL so we don't try closing it
...
again later.
1999-02-27 03:43:20 +00:00
scottr
c1037ea51f
Support the BUFCACHE option.
1999-02-27 03:26:09 +00:00
jonathan
63deecd7e6
Define C structures (struct kernframe, struct trapframe)
...
for kernel-to-user trapframe. Use C structs in genassym.cf.
1999-02-27 02:54:05 +00:00
oster
a76f56098c
Do the VOP_UNLOCK() on an initialized vp, rather than random garbage.
1999-02-27 01:48:13 +00:00
wrstuden
bc94ad4c5e
Rationalize the vfs_checkexp macro to be VFS_CHECKEXP.
1999-02-27 00:47:34 +00:00
wrstuden
b68336a42b
Bump version to 1.3J to reflect changes to vfsops and VOP_CLOSE locking.
1999-02-26 23:59:24 +00:00
wrstuden
862a56e88b
Modify vfsops to seperate vfs_fhtovp() into two routines. vfs_fhtovp() now
...
only handles the file handle to vnode conversion, and a new call,
vfs_checkexp(), performs the export verification.
1999-02-26 23:44:43 +00:00
wrstuden
0078fc50dc
Modify VOP_CLOSE vnode op to always take a locked vnode. Change vn_close
...
to pass down a locked node. Modify union_copyup() to call VOP_CLOSE
locked nodes.
Also fix a bug in union_copyup() where a lock on the lower vnode would
only be released if VOP_OPEN didn't fail.
1999-02-26 23:38:55 +00:00
is
19d0a457aa
oops. void->int
1999-02-26 22:55:33 +00:00
christos
dd247aa44e
Add missing prototypes for static functions.
1999-02-26 22:46:32 +00:00
is
f71d843a65
synchronize types, and s/curproc/p/ in one forgotten place
1999-02-26 22:37:57 +00:00
is
8474ed8a1e
MVME68K specific part of fix for PR 6152
1999-02-26 22:16:35 +00:00
is
d04273bac7
sun3 part of fix for PR 6152
1999-02-26 22:03:28 +00:00
is
0f5ed05445
next68k specific part of PR 6152 fix
1999-02-26 21:34:38 +00:00
is
5e073f4807
MIPS part of fix for PR 6152, sligtly changed from M.Hitch's version
1999-02-26 19:03:39 +00:00
tsubai
b10dbdb37a
Initialize BAT registers in the first place.
1999-02-26 18:36:15 +00:00
is
bce0bda05c
x68k specific part of fix for PR 6152
1999-02-26 16:07:07 +00:00
tsubai
01614b7217
Implement pmap_procwr().
...
(Not tested. gdb doesn't work on powerpc yet.)
1999-02-26 14:40:45 +00:00
is
d93a991a48
Make cpu_model big enough to hold the DNARD cpu's identification, and a bit
...
more.
1999-02-26 12:05:49 +00:00
mrg
b3d5e1889f
pull across patches from warner losh <imp@freebsd.org> (freebsd ufs_vnops.c
...
versions 1.109&1.110), adjusted for our ext2fs support, and also commited
there also. this avoids overflowing the link count.
1999-02-26 07:30:00 +00:00
thorpej
3dfa044911
Move declaration of prom_slock.
1999-02-26 03:59:14 +00:00
thorpej
2b5175cd53
Fix printf formats.
1999-02-26 03:57:10 +00:00
nathanw
ea0550413c
Make these compile on the alpha when AUDIO_DEBUG is defined.
1999-02-26 01:18:09 +00:00
is
84971e3a6f
mac68k part of pr 6152 fix, and missing bits for the others
1999-02-25 23:13:39 +00:00
is
7cf63be6cb
Atari part of fix for pr 6152
1999-02-25 22:47:18 +00:00
is
75469a775e
hp300 part of the fix for pr 6152
1999-02-25 22:34:41 +00:00
is
fde637530e
Machine independent part of fix for PR 6152 (gdb doesn't work on machines
...
with UVM and seperate I&D-Cache). Mostly by Michael Hitch, but pass struct
proc * instead of the pmap. Reason: said machine will need a method to do
the syncing operation for "curproc", too; this way more code can be shared.
1999-02-25 21:54:53 +00:00
dante
198f1f5c48
Fix AdvanSys Narrow driver to work on Alpha
1999-02-25 20:21:33 +00:00
ross
91d91ef1b2
XXX include libkern.h for strlen() XXX
1999-02-25 20:21:08 +00:00
dante
ceef7fa3d7
Fix AdvanSys Narrow driver to work on Alpha
1999-02-25 20:20:30 +00:00
is
435f80f928
prepare for gdb fix
1999-02-25 19:51:22 +00:00
ross
321c6be8de
Enable eap (Ensoniq AudioPCI), sb (SoundBlaster), and sv (S3 SonicVibes).
1999-02-25 12:37:39 +00:00
is
06420a5af7
So... after all, the ATA878.2 copy I had was buggy. The newer revision has
...
this fixed in the figures (but still not in the text); anyway, the intention
of the ATA is that this is identical to the PHDS specification.
Remove the ...EXC_8782 constant, and change the _EXC_1201 constant to be
a simple ...EXC.
1999-02-25 11:20:34 +00:00
christos
e13149e632
Don't need to stick the interpreter at 0 anymore, it relocates itself.
1999-02-25 10:18:04 +00:00
thorpej
07304bd858
On multiprocessor systems, it is possible that a lev1map might be in use
...
by two processors concurrently. This means that we cannot modify the
lev1map in use by the processor which wishes to use the PROM.
Fix this by creating a separate lev1map for PROM users. This lev1map
is a copy of the kernel_lev1map, with the exception of the necessary
PROM mapping. When a processor wishes to use the PROM, it switches
its PTBR to point at the prom_lev1map, performs the PROM operation,
and switches back to its previous lev1map.
Note that kernels without multiprocessor support use the old method
of modifying the current lev1map.
Also, serialize access to the PROM via a spin lock.
1999-02-25 03:43:14 +00:00
thorpej
45a5ad4153
Fix an uninitialized variable.
1999-02-24 23:35:25 +00:00
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
scottr
66477a6be5
Rename via_shutdown() to via_powerdown() for clarity and consistency.
1999-02-20 09:57:35 +00:00
ross
ea05c3b739
Fix typo.
1999-02-20 07:07:07 +00:00
scw
f94ac542ec
Forgot to commit this one; added SCSI and VME drivers.
1999-02-20 00:44:31 +00:00
kristerw
871ac39c21
The recent simplification of the lint version of the va_arg macro broke
...
linting of vfprintf.c, where va_arg is used as
*va_arg(ap, quad_t *) = ret;
Make the macro slightly more complicated...
1999-02-20 00:33:55 +00:00
scw
0ed9dc11d7
Delay serial port parameter changes until the Tx FIFO has emptied.
1999-02-20 00:27:29 +00:00
scw
42058284c1
Config file with support for both '147 and '167.
1999-02-20 00:18:49 +00:00
scw
38a327cafe
Add entries for SCSI and VME. While I'm here, bump maxusers to 16,
...
and enable a couple of other things which weren't useful in the
early days of development.
1999-02-20 00:16:38 +00:00
scw
0c1ed3ce56
Add NFS_BOOT_BOOTPARAMS option.
1999-02-20 00:13:43 +00:00
scw
4f53e52d8a
Add support for the VMEchip2 and the ncr53c710 SCSI IOP.
...
VMEchip2 support work is ongoing. SCSI is complete.
1999-02-20 00:11:59 +00:00
mycroft
45e082f472
Fix thinko.
1999-02-19 22:32:21 +00:00
mycroft
7d0a7c6abf
Do the pcb_onfault test earlier, so that the DIAGNOSTIC code doesn't trip.
1999-02-19 22:15:09 +00:00
leo
10d94b3a1c
STANDALONE -> _STANDALONE per recent discussion.
1999-02-19 21:51:20 +00:00
abs
ab9ab83d05
Add ID for IBM 'PCMCIA Portable CD-ROM Drive'. We only have one of these and it
...
may be broken (it choked under Windows), but it at least now probes.
1999-02-19 21:49:43 +00:00
leo
10cf345ed4
Fix type lossage reported by Julian Coleman.
1999-02-19 21:04:06 +00:00
leo
2426418d47
More work on Tseng support. Now both my et6000 _and_ the et6100 work. I just
...
whish that programming MDRAM latency values came out of the BlackMagic(tm)
domain :-(
1999-02-19 21:03:00 +00:00
leo
e54f78017e
This one needs <machine/bswap.h> too.
1999-02-19 20:58:51 +00:00
leo
89347a3159
Add <machine/bswap.h> in the list of include-files.
1999-02-19 20:57:03 +00:00
drochner
eac4e51111
redirect the linker's stderr to the protocol file too
1999-02-19 19:53:01 +00:00
drochner
cb2e02af94
Make this compile and work again after the assembler update.
...
The new assembler doesn't allow 16-bit relocations involving arithmetics
with 32-bit variables. (The old one did silently truncate, which was
the right thing in our case.) Further, the new assembler uses to scatter
size prefixes around if the size of the operation is not explicitely
specified, even if the result is nonsense, eg for moves to segment
registers or control registers.
Add some debugging code (generating printouts) and comments.
Remove the !BOOTROM code which was intended for a DOS harness but isn't
that useful anymore.
Some cleanup and formatting to make it more similar to the other
startup code variants.
1999-02-19 19:48:06 +00:00
drochner
fd3ad59373
make the ethernet address an unsigned char array to avoid sign extension
...
when it is printed
1999-02-19 19:30:46 +00:00
drochner
0ce9e35aae
add boot ROM support for the DMA-only 3com network adapters, tested with
...
3c900b-Combo only for now
1999-02-19 19:22:52 +00:00
thorpej
598b05da47
Regen.
1999-02-19 19:12:09 +00:00
thorpej
d9c29083d4
Improve descriptions for DEC Ethernet chips.
1999-02-19 19:11:33 +00:00
mycroft
59e2f9373d
Indicate which IRQ is being used for compatibility interrupts.
1999-02-19 18:01:27 +00:00