Commit Graph

7721 Commits

Author SHA1 Message Date
peter
636b864a6f Bandaid old register offset code after md_regs changed type..
Submitted by: Eivind Eklund <perhaps@yes.no>
1997-05-09 04:02:58 +00:00
peter
4f8efb8b8e 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.
1997-05-08 14:16:25 +00:00
peter
63a62fd811 regenerate 1997-05-08 14:08:49 +00:00
peter
b4c14229bf oops. NODIDE -> NOHIDE 1997-05-08 14:07:11 +00:00
peter
74665b766b 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.
1997-05-08 14:04:37 +00:00
peter
4d85edad1b Add posix-style clock and timer types (clockid_t and timer_t) 1997-05-08 13:50:36 +00:00
peter
5ae0e5556a Add posix clock and timer definitions
Obtained from: NetBSD
1997-05-08 13:48:47 +00:00
peter
91c71dd5c7 Add _BSD_CLOCKID_T_ and _BSD_TIMER_T_ for posix clock/timer support
Obtained from: NetBSD
1997-05-08 13:45:43 +00:00
kato
c5c6641be0 Synchronize with sys/i386/i386/machdep.c revision 1.240. 1997-05-08 09:34:16 +00:00
kato
8b9d114186 Synchronize with sys/i386/i386/trap.c revision 1.95. 1997-05-08 09:31:08 +00:00
kato
940205370f Synchronize with sys/i386/isa/syscons.c revision 1.215. 1997-05-08 09:22:32 +00:00
kato
675b5b260e Synchronize with sys/i386/isa/npx.c revision 1.43. 1997-05-08 09:19:56 +00:00
kato
b0d810278a Synchronize with sys/i386/conf/options.i386 revision 1.44. 1997-05-08 09:18:11 +00:00
kato
36415ad209 Synchronize with sys/i386/conf/Makefile.pc98 revision 1.96. 1997-05-08 09:13:40 +00:00
fsmp
09e059405a fix bug in get_isa_apic_mask() where EISA bus was ignored.
Submitted by:	 Peter Wemm <peter@spinner.DIALix.COM>
1997-05-07 22:25:27 +00:00
peter
9d89eb4a5f 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.
1997-05-07 20:32:41 +00:00
peter
95d8f20aba 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.
1997-05-07 20:19:18 +00:00
peter
31ae3c21c9 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.
1997-05-07 20:12:47 +00:00
peter
30fd9d0b5a md_regs is now a struct trapframe * 1997-05-07 20:08:53 +00:00
peter
94cc25dbbb forgotten comment 1997-05-07 20:07:25 +00:00
peter
02d04bd29b md_regs is a struct trapframe * now, not int [] 1997-05-07 20:05:45 +00:00
peter
57e77cca8c simplify IOPL gain/remove privs code. It's easier with md_regs
being a trapframe.
1997-05-07 20:02:38 +00:00
eivind
68be876952 Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
peter
e8676d9384 remove now redundant (struct trapframe *) cast 1997-05-07 19:58:13 +00:00
peter
f5f5a0d1d4 Convert md_regs from an int[] to a struct trapframe *. It simplifies
some code.
1997-05-07 19:55:13 +00:00
peter
7d495d3946 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.
1997-05-07 19:53:20 +00:00
peter
ba00c8d792 remove #include "opt_smp.h" and <machine/smp.h>. Slightly elaborate on
a comment.
1997-05-07 19:51:59 +00:00
peter
0bf9f7fb03 remove #include "opt_smp.h" 1997-05-07 19:50:31 +00:00
peter
576f3f5661 remove #include opt_smp.h
declare SMPcurpcb[] next to #define and uniprocessor counterpart
1997-05-07 19:49:32 +00:00
peter
736c896bf0 remove opt_smp.h
move declaration of SMPruntime[] to here next to the #define and the
uniprocessor counterpart
1997-05-07 19:43:28 +00:00
peter
6c93e12314 remove #include "opt_smp.h"
declaration of SMPcurproc[] moved to here next to it's uniprocessor
counterpart
1997-05-07 19:41:37 +00:00
peter
a1b28699b1 Round 1 of a long series of commits..
Move SMP and APIC_IO from opt_smp.h to opt_global.h
1997-05-07 19:39:16 +00:00
dfr
b0e8461f06 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.
1997-05-07 16:05:47 +00:00
dfr
8cd5e0c637 Add accessors for STAILQ.
Reviewed by:	phk
1997-05-07 14:38:11 +00:00
kato
6d01a1befe 1. Added cast and parenthesis in block size calculaion in
union_statfs().
2. staticized union vops.

Submitted by:	Doug Rabson <dfr@nlsystems.com>
1997-05-07 14:37:32 +00:00
kato
7d3e3aa712 Synchronize with sys/i386/isa/syscons.c revision 1.214. 1997-05-07 14:17:38 +00:00
kato
7fa5c228c5 Synchronize with sys/i386/isa/isa.c revision 1.84. 1997-05-07 14:15:11 +00:00
joerg
4e9d193f50 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.
1997-05-07 13:23:04 +00:00
yokota
a41ee117b0 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
1997-05-07 10:42:06 +00:00
eivind
1da58ff8ab Make a lot of include-files self-contained. I excluded the patches changing
int's to gid_t and uid_t - should I commit these, too?

Closes PR misc/2625.

Submitted by:	Julian Assange <proff@iq.org>
1997-05-07 02:27:18 +00:00
fsmp
459577c10e Force user to config SMP kernel with "options APIC_IO".
Reviewed by:	Peter Wemm <peter@spinner.DIALix.COM>
1997-05-06 21:29:57 +00:00
fenner
37f6c94e3b 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.

PR:		kern/3410
1997-05-06 21:22:04 +00:00
fsmp
24af8da4a0 Make ident equal file name, ie SMP-GENERIC. 1997-05-06 20:40:52 +00:00
fsmp
b4d9e1d64e A *little* more descriptive test for options. 1997-05-06 18:24:17 +00:00
fsmp
ba217bdb73 Added a generic config file for SMP kernels. 1997-05-06 18:18:51 +00:00
phk
54bdf00508 Fix a race condition that did, after all, exist.
Reviewed by:	phk
Submitted by:	dfr
1997-05-06 15:19:38 +00:00
dfr
7d5fda0dc2 Add SMPHDRS to CLEANFILES instead of replacing its current value. 1997-05-06 14:29:56 +00:00
fsmp
9780459b28 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....
1997-05-06 07:10:06 +00:00
alex
0c3ec12c4b Create the default rule with flags IP_FW_F_IN | IP_FW_F_OUT.
Closes PR#3100.
1997-05-06 02:12:18 +00:00
fsmp
8fa23a534b Code to handle SMP/APIC_IO mapping of ISA INTs to APIC pins above IRQ15.
- doesn't break my system.
 - NOT yet verified on the affected motherboard.

Submitted by:	"John S. Dyson" <toor@dyson.iquest.net>
1997-05-05 22:56:37 +00:00