Commit Graph

59351 Commits

Author SHA1 Message Date
jhb
556d6d4bc9 Overhaul of the SMP code. Several portions of the SMP kernel support have
been made machine independent and various other adjustments have been made
to support Alpha SMP.

- It splits the per-process portions of hardclock() and statclock() off
  into hardclock_process() and statclock_process() respectively.  hardclock()
  and statclock() call the *_process() functions for the current process so
  that UP systems will run as before.  For SMP systems, it is simply necessary
  to ensure that all other processors execute the *_process() functions when the
  main clock functions are triggered on one CPU by an interrupt.  For the alpha
  4100, clock interrupts are delievered in a staggered broadcast fashion, so
  we simply call hardclock/statclock on the boot CPU and call the *_process()
  functions on the secondaries.  For x86, we call statclock and hardclock as
  usual and then call forward_hardclock/statclock in the MD code to send an IPI
  to cause the AP's to execute forwared_hardclock/statclock which then call the
  *_process() functions.
- forward_signal() and forward_roundrobin() have been reworked to be MI and to
  involve less hackery.  Now the cpu doing the forward sets any flags, etc. and
  sends a very simple IPI_AST to the other cpu(s).  AST IPIs now just basically
  return so that they can execute ast() and don't bother with setting the
  astpending or needresched flags themselves.  This also removes the loop in
  forward_signal() as sched_lock closes the race condition that the loop worked
  around.
- need_resched(), resched_wanted() and clear_resched() have been changed to take
  a process to act on rather than assuming curproc so that they can be used to
  implement forward_roundrobin() as described above.
- Various other SMP variables have been moved to a MI subr_smp.c and a new
  header sys/smp.h declares MI SMP variables and API's.   The IPI API's from
  machine/ipl.h have moved to machine/smp.h which is included by sys/smp.h.
- The globaldata_register() and globaldata_find() functions as well as the
  SLIST of globaldata structures has become MI and moved into subr_smp.c.
  Also, the globaldata list is only available if SMP support is compiled in.

Reviewed by:	jake, peter
Looked over by:	eivind
2001-04-27 19:28:25 +00:00
gallatin
c97305e4f3 Make stathz match reality on platforms like the 4100 where hz!=1024
It might be more correct to make stathz as close as possible to 128,
but that would involve adding complexity to the clock intr path, which
I don't want to do.
2001-04-27 18:21:25 +00:00
archie
0d13a85094 Add getaddrinfo(3) to the "SEE ALSO" list. 2001-04-27 18:18:12 +00:00
alfred
4afeb84904 Actually show the values that tripped the assertion "receive 1" 2001-04-27 13:42:50 +00:00
ru
78a923a3f1 Removed reference to withdrawn secure-supfile. 2001-04-27 12:15:15 +00:00
ru
eb566244d5 stable-supfile now covers 4.x-stable. 2001-04-27 12:08:34 +00:00
ru
c3c3ed71b4 MFS: revision 1.19.2.4
Correct comments to fit current realities of exporting crypto.
2001-04-27 12:00:35 +00:00
ru
c04fc9d25f mdoc(7) police: fix markup. 2001-04-27 10:32:48 +00:00
ru
12491347c1 mdoc(7) police: removed hard sentence breaks. 2001-04-27 10:27:06 +00:00
ru
9b76e35c07 mdoc(7) police: removed hard sentence break. 2001-04-27 10:22:17 +00:00
ru
34d6481dd2 mdoc(7) police: Removed forgotten .Pp. 2001-04-27 10:18:22 +00:00
ru
b82c51dbbe mdoc(7) police: fix markup.
(Shows how powerful new -mdoc is.)
2001-04-27 10:13:20 +00:00
ru
c39eb9c6d3 mdoc(7) police: shrink list width by one character. 2001-04-27 09:06:50 +00:00
ru
365e117270 mdoc(7) police:
document date updated, removed history info from the .Os call, cosmetics.
2001-04-27 08:36:48 +00:00
ru
ba16d5f9a8 mdoc(7) police: update document date, sort xrefs, fix markup. 2001-04-27 08:28:44 +00:00
ru
884d29a1dc Grammar nit. 2001-04-27 08:16:57 +00:00
ru
b98bda4c5e Fixed a typo. 2001-04-27 08:12:45 +00:00
sobomax
c2111b9402 Put a note that -h' and -n' is non-standard and provided only for
compatibility purposes.

Prompted by:	ru
2001-04-27 08:00:19 +00:00
rwatson
eb7e14a6ed o Remove the disabled p_cansched() test cases that permitted users to
modify the scheduling properties of processes with a different real
  uid but the same effective uid (i.e., daemons, et al).  (note: these
  cases were previously commented out, so this does not change the
  compiled code at al)

Obtained from:	TrustedBSD Project
2001-04-27 01:56:32 +00:00
jhb
eeb1409fb1 Initiate the deorbit burn sequence for sys/ipl.h by moving the software
interrupt priorities over to sys/interrupt.h next to the software interrupt
API.
2001-04-27 00:29:45 +00:00
jhb
baa0669946 Initialize p_md.md_kernnest to 1 for newly fork'd processes since they
start off in the kernel.
2001-04-26 23:52:40 +00:00
jedgar
e367349845 Document acl_get_entry(3)
Obtained from:	TrustedBSD Project
2001-04-26 22:28:14 +00:00
bmah
63760c0e34 New release notes: Advance Logic ALS4000 driver, S3 Sonicvibes driver,
ln -h/-n.
2001-04-26 21:33:08 +00:00
bmah
4dd2a39f67 New release notes: smbfs, fsck(8) backgrounding, fmtcheck(3),
file 3.35

MFCs noted:  groff 1.17, ping -m
2001-04-26 20:57:25 +00:00
phk
26e4651eba vfs_subr.c is getting rather fat. The underlying repocopy and this
commit moves the filesystem export handling code to vfs_export.c
2001-04-26 20:47:14 +00:00
olgeni
1d8938d944 Document the "noError" variable.
"noError" is used to ignore errors while processing sysinstall scripts.

Approved by:	jkh
2001-04-26 20:10:01 +00:00
asmodai
93fca7def3 Remove xlint from build-tools. This needs to be fixed in a different way. 2001-04-26 17:54:24 +00:00
jkh
2e63a99db7 Change this from being alphabetically ordered to being more "practically"
ordered by most frequent preference.

Submitted by:	Adam <bsdx@looksharp.net>
2001-04-26 17:40:54 +00:00
ume
3d45306fd8 Enable static IPv6 address assignment on PCMCIA NIC.
PR:		conf/26633
2001-04-26 17:33:37 +00:00
iedowse
d6719988b7 The function __rpc_uaddr2taddr_af() converts an RPC "universal
address" string to a netbuf/sockaddr "transport address". In the
case of an AF_LOCAL address, it was missing the code to actually
point the netbuf at the newly allocated sockaddr_un, so the caller
ended up with a netbuf containing junk.

Submitted by:	 Martin Blapp <mb@imp.ch>
2001-04-26 17:24:05 +00:00
sobomax
05e13c8095 Previous commit should read:
style(9) Reviewed by:	bde
2001-04-26 17:22:48 +00:00
schweikh
20a90bbd83 Fix a grammar bogon. 2001-04-26 17:16:59 +00:00
sobomax
90eaa79d09 Bring in -h' compatability option and its alias -n' to match NetBSD and GNU
semantics.

style(9) Reviewed by:
Obtained from:	NetBSD
2001-04-26 17:15:57 +00:00
iedowse
ab9c3d3e9e Bring in some bugfixes from NetBSD. I'm going to make a more
extensive pass through the rpcbind code soon, but I might as well
bring these in now.

- (NetBSD util.c r1.5) Move the initialisation of `tbuf' to avoid
  a case where it could end up containing junk from the stack. This
  should address the issue in PR bin/26806.
- (NetBSD util.c r1.6) Don't `merge' AF_LOCAL addresses, fix a few
  memory leaks.

PR:		bin/26806
Submitted by:	Martin Blapp <mb@imp.ch>
Obtained from:	NetBSD
2001-04-26 17:05:55 +00:00
wpaul
8c5405e8c6 Fix the definitions for memory bank sizes, which I somehow got wrong.
The constant I was using was correct, but I mislabeled it as 256K when
it should have been 512K. This doesn't actually change the code, but
it clarifies things somewhat.

Submitted by:	Chuck Cranor <chuck@research.att.com>
2001-04-26 16:40:45 +00:00
jake
ee93da0977 Remove a leading underscore that prevented I386_CPU kernels from
compiling.

Submitted by:	Alexander N. Kabaev <ak03@gte.com>
PR:		kern/26858
2001-04-26 13:57:03 +00:00
alex
5d0712d5d3 "Portmapper" -> "Rpcbind" in a comment. 2001-04-26 13:43:02 +00:00
ru
5e1d6d7657 -lposix1e is dead. 2001-04-26 13:33:00 +00:00
brian
b9693e9d07 Fix some quotes and mention that it's usually necessary to train
your modem to the correct speed when setting up an incoming getty.
2001-04-26 13:10:59 +00:00
ru
3b0f266b3d Fix usage of GROFF_BIN_PATH. 2001-04-26 12:29:12 +00:00
ru
c086acc984 Added missing no's to the -o options list.
Fixed markup.
2001-04-26 12:05:23 +00:00
ru
d41bad5e28 mdoc(7) police: fix markup. 2001-04-26 11:47:49 +00:00
ru
f17d54f76c ... and do it make(1) way. 2001-04-26 11:14:50 +00:00
asmodai
24d1124088 Remove XXX_BROKEN_GCC from the Makefile.
This compiles just fine with recent gcc's.
2001-04-26 09:44:41 +00:00
kris
c0458b5dd9 Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes. 2001-04-26 09:22:28 +00:00
kris
b8bb442de2 Add back missing arguments to format strings.
Reviewed by:	hm
2001-04-26 08:40:35 +00:00
kris
d6b761d326 Reduce diffs with OpenBSD:
#if __STDC__ -> #ifdef __STDC__
  pax_warn() -> paxwarn()
  sys_warn() -> syswarn()
  (foo *)NULL -> NULL
  bcopy -> memmove()/memcpy()
  bzero -> memset()
  Typo fixes
  sprintf() -> snprintf()
  rindex() -> strrchr()
  index() -> strchr()
  sys_errlist[] -> strerror()

Obtained from:	OpenBSD
2001-04-26 08:37:00 +00:00
kris
9b6fb2f5f9 Use mkstemp() for secure tempfile creation instead of tempnam()
Obtained from:	OpenBSD
Reviewed by:	mikeh
2001-04-26 07:32:27 +00:00
ache
5239a1554a Fix typo in prev commit - add missing comma 2001-04-26 06:48:59 +00:00
dd
0e7423501b mdoc(7) police: remove hard sentence breaks. 2001-04-26 06:10:46 +00:00