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
Bruce Evans
ab36c3d3e7
Really finish supporting compiling with `gcc -ansi'.
1998-04-17 04:53:44 +00:00
KATO Takenori
e86160672a
Sync with sys/i386/isa/syscons.c revision 1.259.
1998-04-16 16:35:23 +00:00
KATO Takenori
e6fb658c24
Sync with sys/i386/isa/npx.c revision 1.59.
1998-04-16 16:34:46 +00:00
KATO Takenori
3755fd6d2d
Sync with sys/i386/conf/Makefile.i386 revision 1.108.
1998-04-16 16:34:09 +00:00
KATO Takenori
5b24b4a0a4
Sync with sys/i386/isa/pcaudio.c revision 1.40.
1998-04-16 16:33:21 +00:00
KATO Takenori
0739f338b1
Sync with sys/i386/isa/lpt.c revision 1.68.
1998-04-16 16:32:49 +00:00
KATO Takenori
aff756e77f
Sync with sys/i386/isa/if_ed.c revision 1.139.
1998-04-16 16:32:15 +00:00
KATO Takenori
adf97e2edc
Sync with sys/i386/i386/trap.c revision 1.126.
1998-04-16 16:31:36 +00:00
Peter Wemm
0c78c3b02a
Attempt to fix BOUNCE_BUFFERS. I cannot test these drivers, but they
...
seem to compile OK with the bounce buffer mods. I have only visually
checked for missing bounce buffer support, I could have missed some.
1998-04-16 12:28:31 +00:00
Peter Wemm
692fa3916a
Attempt to get bounce_buffers working again for per-process kernel stack
...
data targets. At least st0 works for me again....
Also, scsi_scsi_cmd() looks like it's been exiting without a biodone() on
an attached buffer in a number of error cases, leading to locked buffers.
1998-04-16 11:15:23 +00:00
Peter Wemm
2e347f41f6
fix an obvious broken BOUNCE_BUFFER case.
1998-04-16 10:35:50 +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
Peter Wemm
efdc5523c0
When the softdep conversion took place, the periodic vfs_msync() from
...
update got lost. This is responsible for ensuring that dirty mmap() pages
get periodically written to disk. Without it, long time mmap's might not
have their dirty pages written out at all of the system crashes or isn't
cleanly shut down. This could be nasty if you've got a long-running
writing via mmap(), dirty pages used to get written to disk within 30
seconds or so.
1998-04-16 03:31:26 +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
Tor Egge
71033a8c50
Unlock mountlist_slock if the mount point was busy (unmount in progress)
...
during the attempt at lazy fsync.
1998-04-15 18:37:49 +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
37223939f0
Fixed bitrot in the non-softdep case of ufs_dirremove():
...
- restored async mount support. The first entry in a block is still
always written synchronously, although it probably shouldn't be in
the async case.
- restored use of BWRITE() instead of bowrite() for the DOWHITEOUT
case, although bowrite() is probably better.
Broken by: merge of softdep changes (rev.1.22).
Found by: lmbench2 delete-file benchmarks.
1998-04-15 12:27:31 +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
Dmitrij Tejblum
206faeeef7
Add a missing LK_RETRY.
...
Noticed by: Bruce (almost 2 monts ago)
Remove a debugging printf.
1998-04-15 11:04:53 +00:00
KATO Takenori
ecbb31cda2
Fix page fault panic by probing NE200 compatible PCI card.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
1998-04-14 13:51:19 +00:00
Poul-Henning Kamp
115facb29d
Fix a minor mbuf leak created by the previous change.
...
Reviewed by: phk
Submitted by: pb@fasterix.freenix.org (Pierre Beyssac)
1998-04-14 06:24:43 +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
Søren Schmidt
add212bf7e
Add EIDRM errno (PR 176), ENOMSG errno (myself) for prober sysv_ipc.
1998-04-13 17:45:00 +00:00
Poul-Henning Kamp
81aee63d19
Wrong header length used for certain reassembled IP packets.
...
PR: 6177
Reviewed by: phk, wollman
Submitted by: Eric Sprinkle <eric@ennovatenetworks.com>
1998-04-13 17:27:08 +00:00
Semen Ustimenko
72a43c1b0a
Fixed autonegotiation. Card registers are now accessed via memory
...
not i/o space.
1998-04-13 14:15:40 +00:00
KATO Takenori
625c217460
Sync with sys/i386/isa/wd.c revision 1.156.
1998-04-13 08:35:37 +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
KATO Takenori
44ed0f3748
Sync with sys/i386/isa/wd.c revision 1.155.
1998-04-12 05:05:19 +00:00
KATO Takenori
66cc72d13d
Fix the problem when SCSI ID is not contiguous.
...
Submitted by: URATA Shuichiro <s-urata@nmit.tmg.nec.co.jp>
1998-04-12 04:48:11 +00:00
John Dyson
71af8fba17
Add aio_error decl.
1998-04-12 03:09:43 +00:00
Poul-Henning Kamp
aba558930b
setsockopt() transports user option data in an mbuf. if the user
...
data is greater than MLEN, setsockopt is unable to pass it onto
the protocol handler. Allocate a cluster in such case.
PR: 2575
Reviewed by: phk
Submitted by: Julian Assange proff@iq.org
1998-04-11 20:31:46 +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
Poul-Henning Kamp
a2481bbe8e
When pmap_pinit0() allocates a page for proc0's page directory,
...
kernal page table may need to be extended. But while growing the
kernel page table (pmap_growkernel()), newly allocated kernel page
table pages are entered into every process' page directory. For
proc0, the page directory is not allocated yet, and results in a
page fault. Eventually, the machine panics with "lockmgr: not
holding exclusive lock".
PR: 5458
Reviewed by: phk
Submitted by: Luoqi Chen <luoqi@luoqi.watermarkgroup.com>
1998-04-11 17:24:06 +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
Alexander Langer
7c2e3d329a
Grammar police.
1998-04-10 00:09:04 +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
Nate Williams
c839c3ace3
- Whoops, better have the structure created before trying to use it in
...
the patch I just submitted.
Noticed by: phk
1998-04-09 14:01:13 +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
Wolfram Schneider
5ddc8ded1d
New mount option nosymfollow. If enabled, the kernel lookup()
...
function will not follow symbolic links on the mounted
file system and return EACCES (Permission denied).
1998-04-08 18:31:59 +00:00
Nate Williams
9d24fe0e45
- Fix bug I introduced a few months ago. If a driver fails the probe,
...
correctly unregister the interrupt from the system.
[ My fix is much simpler than the one provided in the PR ]
PR: 6249
1998-04-08 15:00:02 +00:00
Poul-Henning Kamp
5f88ec3625
Minor adjustments to the timecounting and proc0.
...
Mostly Submitted by: bde
1998-04-08 09:01:53 +00:00
KATO Takenori
216949b446
Sync with sys/i386/boot/biosboot/README.serial revision 1.9.
1998-04-07 15:33:47 +00:00
KATO Takenori
7b0e2080ab
Sync with sys/i386/isa/npx.c revision 1.58.
1998-04-07 09:09:41 +00:00
KATO Takenori
74a64e52c9
Sync with sys/i386/conf/files.i386 revision 1.196.
1998-04-07 09:08:27 +00:00
KATO Takenori
130eeca5d6
Sync with sys/i386/i386/machdep.c revision 1.294.
1998-04-07 09:07:53 +00:00
Peter Wemm
100ceca222
Today is not my lucky day. Fix missing brace and I got a request
...
to use EMLINK instead.
1998-04-06 19:32:37 +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
193afe0189
Use a different errno (ELOOP (as sef mentioned) since the text that goes
...
with the error sounds ok for the condition) if O_NOFOLLOW gets a link.
1998-04-06 18:43:28 +00:00
Peter Wemm
0fdc628b41
Rather than let users get fd's to symlink files, make O_NOFOLLOW cause
...
an error if it gets a link (like it does if it gets a socket). The
implications of letting users try and do file operations on symlinks
themselves were too worrying.
1998-04-06 18:25:21 +00:00
Peter Wemm
a66ae6f438
Back this out, allowing users to get a fd connected to a symlink is
...
just too dangerous.
1998-04-06 18:18:50 +00:00
Peter Wemm
b587fd008d
Don't panic if a VOP_READ() gets through on a short link, Just Do It
...
(because we can :-). This means you can open a link file (or pseudo-file
in the case of short links where the data is stored in the inode rather
than disk blocks) and read the contents.
However, trap any writes from the user as it's difficult to do the right
thing in all cases. A link may be short and the user may be trying to
extend it beyond the limit and so on. Although.. being able to re-target
a symlink without deleting it first might have been nice.
This stuff is a bit perverse since symlink() and readlink() calls can
end up actually being implemented as read/write vnode ops.
Reviewed by: phk
1998-04-06 17:44:40 +00:00
Peter Wemm
7e3426aa1f
Implement a new open(2) flag: O_NOFOLLOW. This will instruct open
...
to not follow symlinks, but to open a handle on the link itself(!).
As strange as this might sound, it has several useful applications
safe race-free ways of opening files in hostile areas (eg: /tmp, a mode
1777 /var/mail, etc). It also would allow things like fchown() to work
on the link rather than having to implement a new syscall specifically for
that task.
Reviewed by: phk
1998-04-06 17:38:43 +00:00
Peter Wemm
aacdc613e5
curproc is initialized in locore at the same time for both SMP and UP now.
1998-04-06 15:51:22 +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
98b9590ef3
Use getmicrotime() for if_lastchange, 10msec is plenty precision.
1998-04-06 11:43:12 +00:00
Poul-Henning Kamp
2f5f6b74ca
Use random() to find our initial xid.
1998-04-06 11:41:07 +00:00
Poul-Henning Kamp
9f7d4611b3
Use read_random()
1998-04-06 11:40:42 +00:00
Poul-Henning Kamp
33b0bb6af7
Use random() for seq numbers and read_random for CHAP challenge.
1998-04-06 11:40:17 +00:00
Poul-Henning Kamp
7cd5051bec
Use random() rather then than homegrown stuff.
1998-04-06 11:39:04 +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
Amancio Hasty
e248ae96af
take out opt_bktr.h from brooktree848.c
1998-04-06 07:57:55 +00:00
Poul-Henning Kamp
8e5db87cdb
Remove the last traces of TUBA.
...
Inspired by: PR kern/3317
1998-04-06 06:52:47 +00:00
Peter Wemm
a7017d7f9e
Really make this compile..
...
Pointed out by: bde
1998-04-06 05:11:42 +00:00
KATO Takenori
237d5c328a
Sync with sys/i386/isa/clock.c revision 1.119.
1998-04-06 03:38:18 +00:00
KATO Takenori
c8e4433596
Sync with sys/i386/isa/syscons.c revision 1.258.
1998-04-06 03:37:55 +00:00
Amancio Hasty
f7c015e72e
Reviewed by: Amancio
...
Submitted by: Frank Nobis <fn@Radio-do.de>
Mods to view german cable tv and minor fix to correctly identify bt849.
1998-04-05 20:57:46 +00:00
Poul-Henning Kamp
9018b53439
Commit a much more functional version of this driver.
1998-04-05 19:26:08 +00:00
Andrey A. Chernov
aaf0bb1961
Print explanation diagnostics when mount is impossible
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1998-04-05 13:10:11 +00:00
Poul-Henning Kamp
5704ba6a06
More fixes for the iterative case of nanosleep1 from bruce.
...
I hate the 2-arg time{spec|val}{add|sub} functions!
1998-04-05 12:10:41 +00:00
Poul-Henning Kamp
bfe6c9fabf
Make the dummy timecounter run at 1 MHz rather than 100kHz (noticed by bde)
...
fix the itimer(REAL) handling.
1998-04-05 11:49:36 +00:00
Peter Wemm
d59fbbf6c8
If there is no error code, don't copyout the remaining time. (As
...
documented in the man page and the standards). (and besides, nanosleep1
isn't setting it in this case at present anyway, so we'd be copying junk).
1998-04-05 11:17:19 +00:00
Poul-Henning Kamp
338418263d
Fix nanosleep1 based on Bruces suggestion.
1998-04-05 10:28:01 +00:00
Andrey A. Chernov
80a39463c9
Remove unused atv.tv_usec = 0; from select/poll code
1998-04-05 10:03:52 +00:00
Peter Wemm
2257b488b9
tsleep() returns EWOULDBLOCK if the timeout expired. Don't return this
...
to usermode, otherwise sleep(3) fails, cron doesn't work, etc etc etc.
1998-04-05 07:31:44 +00:00
Peter Wemm
48e88c192e
Maybe fix netkey. I am not sure how to test this..
1998-04-05 05:19:00 +00:00
Peter Wemm
b90dcc0c5d
Fix previous commit. Don't people read compiler messages or something??
1998-04-05 02:59:10 +00:00
Tor Egge
c547ef5cd4
Remove some unneeded statements that enabled interrupts.
1998-04-05 01:04:48 +00:00