Julian Elischer
c0bab11dfe
Make the devfs SLICE option a standard type option.
...
(hopefully it will go away eventually anyhow)
1998-04-20 03:57:41 +00:00
Julian Elischer
3e425b968d
Add changes and code to implement a functional DEVFS.
...
This code will be turned on with the TWO options
DEVFS and SLICE. (see LINT)
Two labels PRE_DEVFS_SLICE and POST_DEVFS_SLICE will deliniate these changes.
/dev will be automatically mounted by init (thanks phk)
on bootup. See /sys/dev/slice/slice.4 for more info.
All code should act the same without these options enabled.
Mike Smith, Poul Henning Kamp, Soeren, and a few dozen others
This code does not support the following:
bad144 handling.
Persistance. (My head is still hurting from the last time we discussed this)
ATAPI flopies are not handled by the SLICE code yet.
When this code is running, all major numbers are arbitrary and COULD
be dynamically assigned. (this is not done, for POLA only)
Minor numbers for disk slices ARE arbitray and dynamically assigned.
1998-04-19 23:32:49 +00:00
Tor Egge
9d66d1d696
Disregard the values for polarity and trigger mode in the MP config table
...
for ISA interrupts where the IOAPIC interrupt pin number is the same as
the ISA interrupt number (i.e. partial backout of previous commit)
1998-04-19 23:19:20 +00:00
Bruce Evans
212b37ff18
Support compiling with `gcc -pedantic' (don't use hard newlines in
...
(asm) string constants).
1998-04-19 15:41:06 +00:00
Bruce Evans
1696756396
Support compiling with `gcc -pedantic' (don't use hard newlines in
...
(asm) string constants or hard long long constants).
1998-04-19 15:39:26 +00:00
Bruce Evans
721f74b7d3
Support compiling with `gcc-pedantic' (don't declare static arrays
...
with no size).
1998-04-19 15:36:12 +00:00
Bruce Evans
8c4a6d7452
Support compiling with `gcc-pedantic' (don't use hard newlines in
...
(asm) string constants or trailing commas in enum declarations).
1998-04-19 15:28:30 +00:00
Bruce Evans
78a8182665
Support compiling with gcc -pedantic (don't use a bogus, null cast).
1998-04-19 15:22:48 +00:00
Peter Wemm
823833f19d
Back out previous commit, obrien doesn't seem to be watching. The problem
...
is that the previous commit spammed a hacked 2.2-stable onto -current,
deleting the DMA support etc. (I guess that's one way of minimizing diffs
between -current and -stable.. :-] )
1998-04-19 03:26:05 +00:00
David E. O'Brien
cab9e31601
MFC (reduce diff w/-CUR, with hopes of getting DMA support into -STABLE)
...
1.128 (FUNCTIONAL: better sleep handling)
1.131 (STYLE: labels w/o stmt)
1.132 (STYLE: remove unused #includes)
1.141 (FUNCTIONAL: devfs bug, 2nd controler not showing)
1.144 (STYLE: dont shadow other vars)
1.150 (FUNCTIONAL: fix search bug)
1998-04-18 13:25:49 +00:00
KATO Takenori
c243867df2
Support compiling with `gcc -ansi'.
1998-04-18 05:01:24 +00:00
Amancio Hasty
9ff07e3256
Reviewed by: Amancio
...
Submitted by: Roger Hardiman <roger@cs.strath.ac.uk>
Roger Hardiman <roger@cs.strath.ac.uk> :
Revised autodetection code to correctly handle both
old and new VideoLogic Captivator PCI cards.
Added tsleep of 2 seconds to initialistion code for PAL users.
Corrected clock selection code on format change.
--- Amancio
1998-04-18 04:58:33 +00:00
Dag-Erling Smørgrav
dc73342347
Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.
1998-04-17 22:37:19 +00:00
Julian Elischer
2720a2efd6
Reserve a number for the ALTQ control devices (96)
1998-04-17 20:26:43 +00:00
Dag-Erling Smørgrav
cc88e287a6
Stop the screensaver before switching consoles.
1998-04-17 10:03:11 +00:00
Dima Ruban
8b78465c27
Undo my last change.
1998-04-17 07:51:36 +00:00
Dag-Erling Smørgrav
604d46b6e5
Swapped "should we just return" and "should we stop the screensaver"
...
in scrn_timer() to avoid deadlock with graphical screensavers.
1998-04-16 09:41:55 +00:00
Bruce Evans
1d37f051c1
Finish supporting compiling with gcc -ansi'. Fix missing
volatile's
...
in __asm() statements while I'm here.
1998-04-15 18:58:09 +00:00
Dima Ruban
d3b8e3673e
Use 0440 root.kmem kermissions on kernel instead of
...
0555 root.wheel.
Reviewed by: freebsd-security
1998-04-15 17:53:32 +00:00
Bruce Evans
c1087c1324
Support compiling with `gcc -ansi'.
1998-04-15 17:47:40 +00:00
Bruce Evans
7e07ce2225
Support compiling with gcc -ansi'. Fix missing
volatile's in __asm()
...
statements while I'm here.
1998-04-15 17:26:17 +00:00
Poul-Henning Kamp
9c2fa4dbce
In pre-devfs days, /dev/psm0 had always been a non-blocking
...
device. But with devfs, currently, /dev/psm0 is the blocking device
and /dev/npsm0 is the non-blocking one.
DEVFS must stay consistent with the older behaviour.
PR: 6260
Reviewed by: phk
Submitted by: Kapil Chowksey <kchowksey@hss.hns.com>
1998-04-15 17:06:52 +00:00
Bruce Evans
dcfe005838
Fixed breakage of fork accounting in previous commit. A fork benchmark
...
reported about 15 times as much sys time as real time. getmicroruntime()
is confusing name.
1998-04-15 11:10:28 +00:00
Søren Schmidt
0c7843d922
Added EIDRM & ENOMSG errno in translation table.
1998-04-13 17:52:41 +00:00
Søren Schmidt
958a082931
Added EIDRM & ENOMSG to errno translation table.
1998-04-13 17:49:51 +00:00
Mike Smith
a470e6686d
Don't use INTR when only one device supports it.
...
Submitted by: Satoh Junichi <junichi@astec.co.jp>
1998-04-13 17:45:56 +00:00
Poul-Henning Kamp
81aba7a19d
Aic APM driver support for e.g. Toshiba T2400 notebook with internal
...
Adaptec SCSI (aic6360/aha152x) controller.
PR: 5382
Reviewed by: phk
Submitted by: Oliver Breuninger <ob@seicom.NET>
1998-04-12 12:11:31 +00:00
John Dyson
17d925335f
Minor typo in the wd driver. The manifestation of this bug
...
is a tremendous perf decrease due to the disabling of advanced
features such as DMA, Ultra DMA, and 32bit mode. This patch
might have been reported by someone else (I seem to remember
it.)
1998-04-11 20:09:39 +00:00
Søren Schmidt
eea22fdf01
Do not clobber "heads" by &= in wdcommand use only &.
...
Spotted by: bde
1998-04-10 08:00:24 +00:00
Søren Schmidt
f559a836a2
Add the new LBA mode support in the wd? config examples.
1998-04-09 22:28:57 +00:00
Søren Schmidt
44779c5a1c
Try to use the "right" CHS translations of a LBA device.
...
Drives bigger than 8.4G is still in question until I get a drive
to test on...
1998-04-09 17:46:45 +00:00
Søren Schmidt
2a42fd0952
Add LBA mode support for large drives.
...
Use config flags 0x1000 to enable LBA mode. It should be enabled in
the BIOS too to avoid geometry confusion.
One catch though, I'm not sure all BIOS's uses the 64head/63secs
translation, all mine does but....
1998-04-08 20:04:39 +00:00
Søren Schmidt
40a2ce6ee5
Fix a minor bug (|| instead of |)
1998-04-08 20:00:03 +00:00
Peter Wemm
514bc6cb56
Fix VM86 compiles. a #include "opt_vm86.h" was missing, and the my_tr
...
variable was needed in the non-SMP case.
Submitted by: Jonathan Lemon <jlemon@americantv.com>
1998-04-06 18:59:15 +00:00
Peter Wemm
fa1ef19485
remove #ifdef declaration of npxproc, use globals.s and the extern always.
1998-04-06 15:50:29 +00:00
Peter Wemm
e8b4f186cd
add globals.s for data that is treated differently on SMP.
1998-04-06 15:49:35 +00:00
Peter Wemm
cf34ef61ee
Use real types for the SMP pages being allocated rather than arrays of
...
ints. Remove some no longer needed casts. Initialize the per-cpu
global data area using the structs rather than knowing too much about
layout, alignment, etc.
1998-04-06 15:48:30 +00:00
Peter Wemm
0c8df3b4c5
clean up #ifdefs, define the variables that have to be per-cpu on SMP
...
in globals.s only and use externs always.
1998-04-06 15:46:17 +00:00
Peter Wemm
741643627f
_curpcb is always defined in globals.s instead of here in #ifdefs
1998-04-06 15:44:31 +00:00
Peter Wemm
55caa497cb
Bogus casts
1998-04-06 15:43:29 +00:00
Peter Wemm
56a5021bad
Defunct, now part of globals.s
1998-04-06 15:42:54 +00:00
Peter Wemm
858118ef47
Rather than filling this file up with SMP .sets, use those from
...
globals.s instead.
Initialize curproc in the same place for both UP and SMP.
1998-04-06 15:42:26 +00:00
Peter Wemm
e3f5516d18
Generate #defines that the asm code can access for the per-cpu data
...
structures.
1998-04-06 15:40:10 +00:00
Peter Wemm
60392aa674
generate .sets for variables used in asm and C that are stored in per-cpu
...
space under SMP.
1998-04-06 15:39:09 +00:00
Peter Wemm
937288c5bb
A pair of C structures used for laying out the SMP per-cpu data space.
1998-04-06 15:37:21 +00:00
Peter Wemm
5d0ef2fd65
some missing symbols
1998-04-06 15:33:02 +00:00
Poul-Henning Kamp
8184a0a4d1
Remove stuff related to microtime.s, which is gone.
1998-04-06 11:38:18 +00:00
Poul-Henning Kamp
9729e74321
Use getmicrotime insted of microtime, we only use the second part.
1998-04-06 11:37:17 +00:00
Poul-Henning Kamp
2eeb0e2ea0
Make read_random() take a (void *) argument instead of (char *)
1998-04-06 09:30:42 +00:00
Poul-Henning Kamp
4cf41af3d4
Make a kernel version of the timer* functions called timerval* to be
...
more consistent.
OK'ed by: bde
1998-04-06 08:26:08 +00:00