deraadt
930c2dade2
fix CS[5678] code
1994-10-31 05:18:10 +00:00
briggs
65c76f071d
Fixup a couple of missed fixes when updating to hp300/amiga
...
interpretation of mmutype. Thanks to Lawrence Kesteloot for
catching the first of these.
1994-10-31 01:15:53 +00:00
mycroft
1c76bf7aa1
Add a nullcnpollc(), for people who don't want to deal.
1994-10-30 22:16:37 +00:00
mycroft
7c29d675ec
Change argument list of ttioctl() to match other ioctl functions.
1994-10-30 22:11:05 +00:00
cgd
6ac2bbfc35
be more careful with types, also pull in headers where necessary.
1994-10-30 21:43:03 +00:00
cgd
f02d90ac83
code is u_long for sendsig()
1994-10-30 19:18:44 +00:00
cgd
4eaa98b365
cleanliness, type sizes, casts.
1994-10-30 19:15:46 +00:00
cgd
e4f7454791
code is an unsigned long, not an unsigned int.
1994-10-30 19:11:55 +00:00
cgd
0a930e5ce6
redo that last change, correctly. (suggested by mycroft.)
1994-10-30 19:11:09 +00:00
cgd
d5152f35d7
DTRT with thread id.
1994-10-30 19:09:45 +00:00
cgd
d7b077da74
use unsigned ac_flag
1994-10-30 19:09:08 +00:00
cgd
514f89832e
minor clean, and kill some unnecessary paranoia
1994-10-30 19:08:35 +00:00
mycroft
1e951824c4
Clean up deleted files.
1994-10-30 18:43:27 +00:00
deraadt
89a7412206
KNF
1994-10-30 18:43:21 +00:00
briggs
815a0b9aca
Fix a buglet in computation of fbsize. Pointed out by monroe@cs.pdx.edu.
1994-10-30 13:34:31 +00:00
cgd
a91a509292
add NFS server functionality
1994-10-29 08:34:06 +00:00
cgd
cdf24ccd37
clean up types usage.
1994-10-29 08:20:12 +00:00
cgd
e6c493ce00
compensate for stupitdities in the use of b_pfcent.
1994-10-29 08:02:22 +00:00
cgd
f704435aa1
light clean; make sure headers are properly included, types are OK, etc.
...
use UNALINGNED_ACCESS macro, to determine how to get at fields.
1994-10-29 07:59:27 +00:00
cgd
be8c7b9d80
light clean; make sure headers are properly included, types are OK, etc.
1994-10-29 07:58:24 +00:00
cgd
aa151f86b3
change some strategic casts to (*long) from (*int).
1994-10-29 07:35:04 +00:00
cgd
58604c58ca
fix a couple of obvious, painful endianness bugs introduced in last commit.
1994-10-29 06:38:11 +00:00
christos
f46f498d53
Changed code to KNF, removed global variable per cgd's request.
1994-10-29 00:43:14 +00:00
mycroft
9769a6a6f7
Various:
...
* Forget all cached info when opening a new disc.
* If the disc is removed, flush the buffer queue rather than stalling it.
* Set the default label after getting the disc size, and fill in the info
for RAW_PART also.
* Change another use of the unit number to a softc pointer.
* Use a dkdevice to hold the label and open partition masks.
* Force the partition offset to 0 for RAW_PART, regardless of the label.
* Nuke MCDPHYS() and MCDREADRAW; they had a silly bug that caused the code
to not work, and they aren't useful anyway.
Some other minor cleanup.
1994-10-28 23:39:59 +00:00
cgd
63da4ca156
kill space
1994-10-28 23:18:04 +00:00
cgd
64d07daf4f
kill space.
1994-10-28 23:17:22 +00:00
cgd
cf92049b53
minor cleanup; get output format right.
1994-10-28 23:14:46 +00:00
cgd
17e2c106af
oopps! how did an Id sneak in...
1994-10-28 23:06:09 +00:00
mycroft
429c7771d3
Correct padding in 3.3 boot sector structure, per Mike Hartman.
1994-10-28 22:40:46 +00:00
mycroft
ed0f09279e
Reran makesyscalls.sh, to update SYS_* constants and fix truncated line.
1994-10-28 20:46:17 +00:00
mycroft
4c7eedf0b8
This is not my day.
1994-10-28 20:20:18 +00:00
mycroft
c0fd0f67f1
Fix typo.
1994-10-28 20:16:10 +00:00
mycroft
0badb64371
For now, limit the maxfilesize to 2^31*bsize-1 in core. This is temporary.
1994-10-28 20:15:09 +00:00
mycroft
f62b376067
Fix a couple of types in the compatibility code.
1994-10-28 19:59:21 +00:00
briggs
c184327c57
Make this work. Kludge from grantham.
1994-10-28 19:55:37 +00:00
mycroft
f5720d1edd
Don't allow truncating past maxfilesize.
1994-10-28 19:31:07 +00:00
mycroft
46ba25f017
Add vnode_if.[ch] to the clean target.
1994-10-28 17:05:29 +00:00
deraadt
58f5cef745
repair a type
1994-10-28 16:50:59 +00:00
cgd
022ee8f7fe
new RCS ID format.
1994-10-27 04:14:23 +00:00
andrew
5a13863a4b
Default to decent performance.
1994-10-27 02:04:18 +00:00
andrew
fc67924047
Merge changes from Wolfgang Stanglmeier's 941012 release.
1994-10-27 02:02:00 +00:00
cgd
a63beafc2b
new RCS ID format.
1994-10-26 21:08:38 +00:00
gwr
87ce99227c
Move sun3_round_up_seg() here from param.h as a temporary measure.
...
Eventually, it should be eliminated from these two files as well.
1994-10-26 19:04:36 +00:00
gwr
6bc6879e46
Remove some unnecessary junk.
1994-10-26 18:56:02 +00:00
mycroft
7269ce27cc
We don't need to clear the nested trap bit.
1994-10-26 18:45:40 +00:00
mycroft
e75cb9b517
Oops; need spltty() around call to print().
1994-10-26 18:13:24 +00:00
mycroft
556a119342
Implement *cnpollc().
1994-10-26 18:06:30 +00:00
briggs
a43a6e9bdf
Use u_int32_t and friends. Comment a tiny bit...
1994-10-26 18:05:48 +00:00
mycroft
6371cf2364
Add pccnpollc() and comcnpollc().
1994-10-26 18:00:13 +00:00
mycroft
f77d6c1435
Remove bogus definition of cnpollc().
1994-10-26 17:57:50 +00:00
mycroft
511d2732a3
Implement cnpollc().
1994-10-26 17:56:53 +00:00
mycroft
fa0bf2b51a
Add a comment.
1994-10-26 17:52:22 +00:00
mycroft
e65f99d726
Use pcb_onfault only in the specific cases of protection, alignment, and
...
page faults. For all other kernel-mode faults and traps, ignore it. For
user-mode faults and traps, always ignore it.
Some other minor cleanup.
1994-10-26 17:38:44 +00:00
mycroft
4e9c2720e2
Clean up deleted files.
1994-10-26 11:58:32 +00:00
christos
afffe1aaf8
Fixed Charles suggestions:
...
1. always do the stackgap_init()/CHECKALT first in syscalls that need it.
2. svr4_emul_find() uses malloc for the buf, does not use copyoutstr, but
copyout().
Removed makesyscalls.sh; it was really old and we don't need a separate copy.
1994-10-26 11:58:24 +00:00
cgd
20af809ca2
new RCS ID format.
1994-10-26 09:07:55 +00:00
cgd
4fdae7a0ae
new RCS ID format.
1994-10-26 08:45:48 +00:00
cgd
dafacba9d5
new RCS ID format.
1994-10-26 08:23:50 +00:00
cgd
b20f78e63f
new RCS ID format.
1994-10-26 08:06:10 +00:00
cgd
d62187c043
new RCS ID format.
1994-10-26 08:01:33 +00:00
cgd
57fb77a14e
new RCS ID format.
1994-10-26 07:48:18 +00:00
cgd
132b41434c
new RCS ID format.
1994-10-26 07:22:45 +00:00
deraadt
6d9927894a
vme interrupt support
1994-10-26 07:16:34 +00:00
deraadt
62b9ec5645
rearrangement
1994-10-26 07:16:22 +00:00
deraadt
62b99b6414
vme, and cleanup some messy #ifdef stuff
1994-10-26 07:15:09 +00:00
deraadt
ef07868ebe
sunos compat changes
1994-10-26 07:13:56 +00:00
deraadt
2036bd665c
updates
1994-10-26 07:12:38 +00:00
deraadt
a4323e6911
changed sunos_compat, if_ie
1994-10-26 07:12:18 +00:00
deraadt
f3299b1470
obio/vme16 Intel Ethernet driver by Chuck Cranor. works on vme16.
1994-10-26 07:11:16 +00:00
deraadt
9773a7aa40
working vme16/32 support
1994-10-26 07:09:41 +00:00
cgd
aa9eacdd59
new RCS ID format.
1994-10-26 06:39:02 +00:00
cgd
6668f51c96
new RCS ID format.
1994-10-26 05:44:32 +00:00
cgd
69d2deb545
new RCS ID format.
1994-10-26 05:27:43 +00:00
cgd
0974859697
new RCS ID format.
1994-10-26 02:57:08 +00:00
cgd
6b7c260753
new RCS ID format.
1994-10-26 02:45:11 +00:00
cgd
582d43b33b
new RCS ID format.
1994-10-26 02:31:56 +00:00
cgd
ec77f0b327
new RCS ID format.
1994-10-26 02:01:24 +00:00
mycroft
4178f44192
Add a missing item to trap_types[].
1994-10-26 01:32:51 +00:00
mycroft
7be5732f87
Implement new system call entry method. Clean up all of the IDT frobnication
...
code.
1994-10-26 01:30:59 +00:00
deraadt
734a6bf4d5
update
1994-10-26 01:04:28 +00:00
deraadt
63d1852163
whoops
1994-10-26 01:03:43 +00:00
deraadt
c4fba0ee57
and we update these
1994-10-25 23:05:28 +00:00
deraadt
1784f27584
and these
1994-10-25 23:04:53 +00:00
mycroft
e5877200d7
Clean up deleted files.
1994-10-25 23:03:35 +00:00
deraadt
019f48332c
rename, new syscall interface, etc.
1994-10-25 23:03:22 +00:00
cgd
3f7c5d3d59
add COMPAT_10
1994-10-25 21:31:32 +00:00
mycroft
0ec2e0b85c
Attempt to deal with trace exceptions from single-stepping a trap instruction.
1994-10-25 15:33:40 +00:00
mycroft
7594210178
Slight optimization to remrq(); no need to use/save %esi.
1994-10-25 15:13:44 +00:00
mycroft
0b827ee8ee
Add some #defines for the offsets into the bootstrap tables.
1994-10-25 14:46:50 +00:00
mycroft
9f00060fdf
Map the kernel text read-only if !DDB. Also, shorten many parts of the page
...
table startup by judicious application of lea.
1994-10-25 14:31:24 +00:00
deraadt
dca2741d28
make SYS_* macros unique
1994-10-24 23:26:02 +00:00
mycroft
f3c9ca2e05
Make the termios convul^H^Hersion a little less ugly, and convert CSIZE correctly.
1994-10-24 22:01:35 +00:00
deraadt
b415eb1d1d
new from christos
1994-10-24 17:37:34 +00:00
mycroft
4bad1511b7
Fix a bug I introduced in the last commit, regarding a VTIME timeout causing
...
EWOULDBLOCK to be returned rather than looping again to see if any characters
are pending. Also, fix another bug in the original code; if someone changed
VMIN behind our back, last_cc might be uninitialized when we reference it.
1994-10-24 09:09:06 +00:00
deraadt
dc7de949e9
change exec_setup_fcn() to be more useful (from christos)
1994-10-24 05:32:19 +00:00
mycroft
260ddbefb7
Rearrange ed_init() slightly, to better correspond to the National manual.
...
Optimize ed_rint() slightly in the case of multiple packets. (Avoid an outb
and an inb for each packet).
1994-10-23 23:24:56 +00:00
cgd
2623b287e6
fix for numerous cut & paste errors in the last changes, from Christos.
1994-10-23 23:11:27 +00:00
cgd
a6426e2b27
oops; went overboard, and did the user_ldt calls the wrong way.
1994-10-23 21:57:12 +00:00
mycroft
603fe7b5a6
Slight optimization.
1994-10-23 21:38:00 +00:00
mycroft
0114159848
Fix the packet length correction for buggy chips so that it actually works,
...
and always use it (otherwise short packets could still be corrupted). Also
produce a diagnostic message if DIAGNOSTIC, since it *is* a hardware bug.
Add an ED_PAGE_SHIFT constant, and use it, to avoid GCC doing horrendous
things with divides and multiplies.
1994-10-23 21:22:13 +00:00
mycroft
28cbceeec7
Make this more likely to work.
1994-10-23 19:24:01 +00:00
phil
97ad3ec4b8
fixes from Matthias. splimp and other stuff.
1994-10-21 07:03:57 +00:00
mycroft
abc582b6d2
Return ppid and euid for COMPAT_IBCS2, too.
1994-10-21 01:12:13 +00:00
mycroft
f19afe34cb
Reran makesyscalls.sh.
1994-10-21 00:15:36 +00:00
mycroft
452508f874
Fix typos.
1994-10-21 00:14:36 +00:00
mycroft
a9ef20740a
Make this compile with USER_LDT again.
1994-10-20 23:48:21 +00:00
mycroft
425e5f67f0
Reran makesyscalls.h.
1994-10-20 23:23:46 +00:00
mycroft
be01ae1904
Fix typo in description of syscallarg.h.
1994-10-20 23:22:38 +00:00
mycroft
97c2b52714
Minor change; use proc_reparent().
1994-10-20 22:54:35 +00:00
mycroft
be18e790ff
Get the label sector right if there is no NetBSD partition in the MBR.
1994-10-20 22:44:37 +00:00
mycroft
79e18619fb
Add a cpu_cleanup() function, to support some experimental code.
1994-10-20 22:43:23 +00:00
briggs
a509897f98
Before I forget...
1994-10-20 21:21:02 +00:00
mycroft
d2b4ef0319
Don't try to load p_priority from the run queue head.
1994-10-20 20:47:53 +00:00
mycroft
e5d974c51f
First cut at making user-level SCSI commands work. This is untested.
...
Partly from John Brezak.
1994-10-20 20:31:23 +00:00
mycroft
3e30a415ae
Be careful not to stack multiple timeouts.
1994-10-20 19:22:01 +00:00
mycroft
4d072c5435
Remove the local timeout mechanism, and just use explicit timeout()/untimeout()
...
calls.
1994-10-20 18:37:45 +00:00
mycroft
c11a06cbc2
Always set d_secsize to 512 for now.
1994-10-20 17:03:09 +00:00
mycroft
b8ab5f65d1
Back out change to print geometry from label at boot; can't do this reliably.
1994-10-20 16:54:44 +00:00
mycroft
0862d07daf
Don't switch to single-sector mode just because we got a corrected error.
1994-10-20 16:36:21 +00:00
mycroft
d4153fff4d
Rearrange wdcstart() in a more logical fashion, and eliminate many redundant
...
calculations. Also, speed up bad block searching a little.
1994-10-20 16:19:08 +00:00
mycroft
7d391c250d
Fix minor omission.
1994-10-20 14:10:18 +00:00
mycroft
cd66683989
openpart -> openmask
1994-10-20 14:08:07 +00:00
mycroft
bb12b9c8a2
Trivial stylistic changes.
1994-10-20 14:05:08 +00:00
mycroft
caaeda044b
Similar changes to sd.c.
1994-10-20 14:03:38 +00:00
mycroft
b1568d887e
Use the block size in the label in most cases.
1994-10-20 13:50:38 +00:00
mycroft
cae71ba91d
Various changes:
...
* Add a dkdevice; move sc_*openpart, sc_label, and sc_cpulabel into it.
* Turn sc_wlabel into a flag, and don't set it automatically in DIOCWLABEL.
* If there is no label, disallow all I/O except to the raw partition.
* Don't allow I/O to `unused' partitions.
* Beginnings of support for block sizes other than 512 bytes.
Other minor changes.
1994-10-20 13:44:46 +00:00
mycroft
d5b3572f5c
Various changes:
...
* Get rid of unused `partflags'.
* Use dk_openpart, and remove `openparts'. Also, allow an open on both
the block and characters devices at the same time.
* If there was a label, print the geometry from the label at boot time.
* Turn `wlabel' into a flag, and *don't* set it automatically in
DIOCWLABEL; disklabel(8) does that.
Other minor changes.
1994-10-20 13:33:36 +00:00
cgd
70d91988ab
update for new syscall args description mechanism
1994-10-20 05:34:04 +00:00
cgd
d4bf824ec2
update for new syscall args description mechanism
1994-10-20 05:17:21 +00:00
cgd
fdc5c13d94
update for new syscall args description mechanism
1994-10-20 05:02:13 +00:00
cgd
74d7436a91
pay a small amount of lip service to the new syscall args mechanism.
...
In reality, none of these will compile.
1994-10-20 04:47:31 +00:00
cgd
5aea0d3fd2
update for new syscall args description mechanism
1994-10-20 04:46:23 +00:00
mycroft
cb4e5ecaa5
Print a single `soft error' message when an operation was retried and
...
eventually completed successfully. Also fix fsbn numbers in diskerr() calls.
1994-10-20 04:46:17 +00:00
cgd
77e4fe47ef
update for new syscall args description mechanism
1994-10-20 04:43:21 +00:00
deraadt
3c8b6feab0
better #ifdef's
1994-10-20 04:40:58 +00:00
cgd
9da8a598cd
update for new syscall args description mechanism
1994-10-20 04:38:33 +00:00
cgd
f59b086d9c
one minor mod...
1994-10-20 04:37:09 +00:00
cgd
0da612d076
update rcsid
1994-10-20 04:32:39 +00:00
mycroft
b7c9fb174f
Clean up deleted files.
1994-10-20 04:29:36 +00:00
cgd
6f353db960
update for new syscall args description mechanism
1994-10-20 04:28:10 +00:00
cgd
fa90479d67
update for new syscall args description mechanismcd
1994-10-20 04:27:44 +00:00
cgd
6b86130410
update for new syscall args description mechanism
1994-10-20 04:22:35 +00:00
cgd
f0c1138373
update for new syscall args description mechanism, and deal safely
...
with wider types.
1994-10-20 04:20:55 +00:00
mycroft
b2d8a64ebd
Make another printf() #ifdef FD_DEBUG.
1994-10-20 03:38:13 +00:00
mycroft
872999d392
Make the verbose diagnostics #ifdef FD_DEBUG.
1994-10-20 00:52:23 +00:00
cgd
36ac18735f
fix pr 528; don't define struct if_data inside another structure.
1994-10-19 20:57:56 +00:00
phil
20cb927177
add timezone support to inittodr (thanks to Phil Budne)
...
add a working resettodr (ditto)
rcs header
1994-10-19 17:15:16 +00:00
mycroft
70e27da16b
Fix up some printfs and make them consistent.
1994-10-18 18:24:35 +00:00
mycroft
8ae8b4ab29
Bug fixes from Rafal Boni:
...
* Set promiscuous mode flag before configuring card, so it actually works.
* Handle failed TDR commands correctly.
* Remove some apparently defunct and bogus code.
(This driver needs more work.)
1994-10-18 13:40:30 +00:00
cgd
4eb752cd51
make the "wait on swbuf" message SDB_IO -- it's I/O related, and it's
...
not at all anomalous (and bloody annoying!) on 4M machines.
1994-10-18 06:42:28 +00:00