Merge the en version changes made in 1.237 -> 1.240.
While at it, did some tabs <-> spaces conversion to match the JP version
to the EN version so that patch generated by cvs diff handbook/contrib.sgml
can be often reused to update the JP version.
Peter Wemm [Thu, 8 May 1997 14:16:25 +0000 (14:16 +0000)]
Implementation of posix-style clock_* and nanosleep syscalls as implemented
in NetBSD. The core of settimeofday() is moved to a seperate static
function settime() which both clock_settime() and settimeofday() call.
Note that I picked up the securelevel > 1 check from NetBSD that prevents
the clock being set backwards in high securelevel mode (this was a hole
that allowed resetting of inode access timestamps to arbitary values)
Obtained from: mostly from NetBSD, but the settime() function is from
our gettimeofday(), some tweaks by me.
Peter Wemm [Thu, 8 May 1997 14:04:37 +0000 (14:04 +0000)]
Define entries for the posix-style clock/timer syscalls including
nanosleep(). Also, note some syscall conflicts with other systems and
indicate slots tagged for use with other syscalls some day.
Peter Wemm [Wed, 7 May 1997 20:32:41 +0000 (20:32 +0000)]
Don't allow access to illegal addresses in /dev/kmem to panic kernel
(eg: above 0xffc00000). Programs using /dev/kmem are implicitly racing
the kernel, and can get right up high in memory. I've been running
these for some time now, but with printfs. It's saved two panics at
least that I can remember.
Peter Wemm [Wed, 7 May 1997 20:19:18 +0000 (20:19 +0000)]
clean up forked child creation. This is simplified also by having
md_regs being struct trapframe *. Do a npxsave() if needed and copy the
pcb rather than use the increasingly defunct savectx(). Copy %edi and
%ebp explicitly.
Submitted by: bde
XXX npxproc could be declared in npx.h so the externs with smp fruit
are not needed.
Peter Wemm [Wed, 7 May 1997 20:12:47 +0000 (20:12 +0000)]
md_regs is struct trapframe * now, rather than int []
Remove TF_REGP() macro and use. The original reason (address space
problems due to having UPAGES in mapped into user space) is gone. It
looks cleaner without it.
Peter Wemm [Wed, 7 May 1997 19:53:20 +0000 (19:53 +0000)]
remove #include "opt_smp.h"
remove declarations for the SMPcurproc[NCPU] etc arrays. There was no
need to mention NCPU there, and they've been moved to their normal home.
Eivind Eklund [Wed, 7 May 1997 19:10:49 +0000 (19:10 +0000)]
Back out part of yesterdays changes. They were obviously not tested well
enough :-( (With backout on this file, libc compiles. 'make world' isn't
finished yet.)
Doug Rabson [Wed, 7 May 1997 16:05:47 +0000 (16:05 +0000)]
This is the kernel linker. To use it, you will first need to apply
the patches in freefall:/home/dfr/ld.diffs to your ld sources and set
BINFORMAT to aoutkld when linking the kernel.
Library changes and userland utilities will appear in a later commit.
Joerg Wunsch [Wed, 7 May 1997 13:23:04 +0000 (13:23 +0000)]
Hide the kernel-only stuff inside #ifdef KERNEL.
XXX should be #ifdef _KERNEL
XXX^2 the !KERNEL part should probably be moved out into a publically
visible header file anyway.
Kazutaka YOKOTA [Wed, 7 May 1997 10:42:06 +0000 (10:42 +0000)]
Now that we have replaced video-related block copy calls with
sc_bcopy(), which is generic_bcopy() in reality, there is no point in
retaining bcopyw() calls in the source code.
OKed by : sos
Peter Wemm [Wed, 7 May 1997 04:28:26 +0000 (04:28 +0000)]
Restore unintentially lost backwards compat behavior of defaulting to
family inet if not specified. (eg: "ifconfig ed0" down would fail because
no family was specified, even though the up/down status is not per family)
Pointed out by: Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
Brian Somers [Tue, 6 May 1997 23:11:06 +0000 (23:11 +0000)]
Allow a '-' flag as a placeholder so that path_to_pid_file
can be specified without the flags field.
Fix bogus "trail" left in parse routine where the code jumps
past the end of the line and wanders into oblivion.
Bill Fenner [Tue, 6 May 1997 21:22:04 +0000 (21:22 +0000)]
Pull up the IP header in ip_mloopback(). This makes sure that the
operations on the header inside ip_mloopback() are performed on
a private copy instead of a shared cluster.
Joerg Wunsch [Tue, 6 May 1997 20:52:28 +0000 (20:52 +0000)]
Fix a long-standing bug with dump not treating errors correctly. They
were mishandled as an EOF, which became fatal if your first tape was
accidentally write-protected.
PR: bin/850 dump treats write-protect as an EOT...
Steve Passe [Tue, 6 May 1997 07:10:06 +0000 (07:10 +0000)]
removed the "#error ..." line preventing casual invokation of SMP_AUTOSTART.
autostart appears to be working now, at least on my dual P6.
I have no explanation why....
Joerg Wunsch [Mon, 5 May 1997 13:35:01 +0000 (13:35 +0000)]
Duplicate the TOC handling ioctls from the cd(4) driver. Duplicating
the work is silly, and all this will be a moot point with Justin's CAM
driver, and there are still many ioctls missing -- but i need these
right now. It's silly to need to move the CD-R back to the other
drive in order to determine the session start info when burning multi-
session CD-Rs.