thorpej
9c784e07c1
Fix the integer overflow problem in pmap_init() when the user PT map is
...
allocated, as noticed by Chuck Cranor. In addition to re-arranging
the assignment as suggested by Niklas Hallqvist, check to see if maxproc
is higher than the number of available user PTs. If it is, lower maxproc
to that value, the rationale being that it's much more desirable to have
fork() return EAGAIN than to have your system wedge.
XXX note that root can still raise maxproc with sysctl(2) later. It's
probably worth having further discussion about this issue, but until
everyone has time to think about it, this seems like an acceptable solution
for the time being.
1995-12-05 20:01:54 +00:00
jtc
c94210debc
sync with termcap 9.11.5
1995-12-05 04:03:29 +00:00
jtc
0076a482bb
fix typo
1995-12-05 03:33:39 +00:00
christos
e159767fed
Repeating my mistakes twice... I used sc-> in the pci probe routine
...
again, and it turned NetBSD in ostype[] to N^CtBSD... Thanks Charles (again)
Also call epstop() in the attach routine to make sure that the pci card
gets reset properly.
1995-12-05 03:30:15 +00:00
jtc
955f6c4af4
Changed to unconditionally include <sys/types.h> as required by X/Open XPG4.2.
1995-12-05 03:09:19 +00:00
jtc
7439a63b22
Rename uuencode.format(5) to uuencode(5) as recommended by PR #1786
1995-12-05 03:02:31 +00:00
jtc
aa84d55d99
environmental -> environment
1995-12-05 02:55:55 +00:00
jtc
9a3ca97f12
ENVIRONMENTAL -> ENVIRONMENT
1995-12-05 02:41:35 +00:00
ragge
31f199d4e6
Added earlier forgotten MACHINE_ARCH, pointed out by Arne Henrik Juul.
...
Cleaned up a bit.
1995-12-04 22:32:53 +00:00
ragge
c6813ecb89
Didn't take care of errors when return parameter was long long.
...
Bug pointed out by Arne Henrik Juul.
1995-12-04 21:52:44 +00:00
tls
fff3137419
this probably needs to be a syscall to work with our new core format, per pk
1995-12-04 09:57:13 +00:00
briggs
76b94759a1
Fix from Paul Goyette (paul@pgoyette.bdt.com) for drives that don't grok
...
linked commands.
1995-12-04 02:10:44 +00:00
phil
f5d344126b
Have the ns32k architecure use gcc instead of gcc2.
1995-12-03 21:13:18 +00:00
leo
fc587cf917
Something forgotten in the namespace changes.
1995-12-03 14:34:24 +00:00
leo
70875fa68f
Return a more sensible errno when someone is trying to set the unsupported
...
mdmbuf option.
1995-12-03 14:32:39 +00:00
briggs
99e494a984
Fix from Niklas Hallqvist / Chuck Cranor / Michael Hitch / OpenBSD to avoid
...
integer overflow in initial pmap setup. Triggerred by high values for
maxusers.
1995-12-03 13:52:50 +00:00
thorpej
52ec09e420
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting the drivers ready for new config.
1995-12-02 18:21:49 +00:00
thorpej
deb00c27b3
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting the drivers ready for new config.
Clean up namespace, remove several instances of global arrays. Instead,
use a softc to carry state around. Where possible, pass a pointer to
the softc rather than a unit number.
Pointers to hardware and software constructs are now stored per port
in each instance of the softc (one softc per board) rather than indexed
by minor number.
1995-12-02 18:18:50 +00:00
thorpej
41cf6f071f
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting the drivers ready for new config.
Clean up namespace, remove several instances of global arrays. Instead,
use a softc to carry state around. Where possible, pass a pointer to the
softc rather than a unit number.
1995-12-02 18:15:50 +00:00
thorpej
3ac76475ea
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting drivers prepared for new config.
1995-12-02 18:11:21 +00:00
thorpej
de5ce5f48c
Change "hilloop" to "hilsoftc" and make slightly more new config-friendly.
...
Remove all uses of curproc.
1995-12-02 02:48:47 +00:00
thorpej
b618522128
Make the DMA controller driver a little more new config-friendly. Still
...
more work to do, but this is a step in the right direction.
1995-12-02 02:46:45 +00:00
chopps
9b64dd253e
update trunk with recent change that fixes mount_ados mistake.
1995-12-01 21:09:54 +00:00
leo
5f2ab2109f
Use files.fpe
1995-12-01 19:53:07 +00:00
leo
ca1cc64e20
Remove forgotten #endif
1995-12-01 19:51:53 +00:00
ragge
45d824de05
DELUA/DENUA & DELQA/DEQNA Ethernet adapters converted to new config.
1995-12-01 19:37:55 +00:00
ragge
2e654caa73
UBA converted to new config. (uba's now can be *'ed). Bug causing
...
DMA writes to nonexistent memory pages fixed. Code for old config
of non-mass-storage devices removed. (they now must use new config).
1995-12-01 19:22:56 +00:00
phil
34527405c3
Import gcc-2.7.2. Since it is in the gcc directory instead of the gcc2
...
directory, this is being done now. We will live with two trees until
the "formal" switch over by changing src/gnu/usr.bin/Makefile.
1995-12-01 17:58:53 +00:00
briggs
1b03745209
cmdlen-2 is right for the last byte of the command. Ifdef out for right now,
...
though, as some devices apparently don't support linked commands and will
reject commands that have the link bit set in them.
1995-12-01 15:14:11 +00:00
neil
b488cc87de
Added World AIDS Day. Which is today.
...
12/01 World AIDS Day
1995-12-01 09:42:09 +00:00
mycroft
3fbc1f7e9b
Enable flock(2).
1995-12-01 07:26:58 +00:00
pk
8a1606d530
Don't return `XS_DRIVER_STUFFUP' too easily; this can hose buffer cache
...
writes. Say XS_TIMEOUT in stead so the scsi code will retry.
1995-12-01 01:00:55 +00:00
pk
fe934606c7
NBPG may not be computable by the preprocessor. Make "do clustered io"
...
a run-time decision. Note: the compiler can optimize it away.
1995-12-01 00:47:33 +00:00
pk
c9f22dd6ec
Undo bogus directory mode.
1995-11-30 23:57:58 +00:00
pk
b760357314
Fix pasto.
1995-11-30 23:46:57 +00:00
leo
e267646321
KNF-ify
1995-11-30 21:55:01 +00:00
leo
291d8cbf3a
Add kernel option for separate {stat,prof}clock
1995-11-30 21:52:46 +00:00
ws
10ebaa7036
Don't overwrite dirclust, it's needed later on
1995-11-30 19:00:57 +00:00
ws
9dd5549e5d
Fix thinko with block boundaries in directories
1995-11-30 17:50:26 +00:00
pk
c069674663
Handle PRU_CONTROL (David Maltz; PR#1664).
1995-11-30 16:42:18 +00:00
pk
9c90327339
Make consistent with `make install' (from Arne Juul; PR#1665).
1995-11-30 16:34:26 +00:00
briggs
d416ec2cc9
Put the link flag in the right place.
...
Pointed out by Paul@pgoyette.bdt.com (Paul Goyette).
1995-11-30 14:25:40 +00:00
pk
7a7ca00077
Add quirk for Exabyte 8200/rev. 263H (from Paul Goyette; PR#1797).
1995-11-30 10:12:04 +00:00
jtc
0cd793449e
merge in changes from 1.1 release branch
1995-11-30 00:56:23 +00:00
pk
f7826d21d9
Merge changes from 1.1 branch.
1995-11-29 23:51:24 +00:00
pk
a2a4da4874
Merge changes from sun3 port; per Gordon.
1995-11-29 23:43:42 +00:00
pk
ee08e9085b
Extend the size of the "soft" FIFOs which reportedly reduces the number
...
of FIFO overflows on high baud rates.
However, doing so on all 4 ports would cost a whopping 64KB (at 4096 entries
per FIFO) of kernel memory. So, the FIFOs are now allocated at attach time
allowing the size for the keyboard and mouse ports to be reduced (to 128)
which should be adequate for the 1200 baud they use.
1995-11-29 23:41:31 +00:00
pk
3b2862c858
Make it work on little-endian monochrome buffers; per Ted.
1995-11-29 22:12:58 +00:00
pk
12bfe2e68e
Must change `u_long' to `u_int32_t' as Jason pointed out.
1995-11-29 22:03:53 +00:00
ws
f4d1bdb04f
Fix thinko in last
1995-11-29 18:28:51 +00:00