Commit Graph

59359 Commits

Author SHA1 Message Date
cg
1021a9005e be more specific in identifying the chip type 2001-04-27 22:26:36 +00:00
bmah
7cb1d1c1b0 New release note: SMPng on alpha.
MFC noted:  wx(4) hardware support.
2001-04-27 22:25:15 +00:00
alfred
3abca35872 Address a number of problems with sysctl_vm_zone().
The zone allocator's locks should be leaflocks, meaning that they
should never be held when entering into another subsystem, however
the sysctl grabs the zone global mutex and individual zone mutexes
while holding the lock it calls SYSCTL_OUT which recurses into the
VM subsystem in order to wire user memory to do a safe copy.  This
can block and cause lock order reversals.

To fix this:
  lock zone global.
  get a count of the number of zones.
  unlock global.
  allocate temporary storage.
  format and SYSCTL_OUT the banner.
  lock global.
  traverse list.
    make sure we haven't looped more than the initial count taken
      to avoid overflowing the allocated buffer.
    lock each nodes.
    read values and format into buffer.
    unlock individual node.
  unlock global.
  format and SYSCTL_OUT the rest of the data.
  free storage.
  return.

Other problems included not checking for errors when doing sysctl out
of the column header.  Fixed.

Inconsistant termination of the copied string. Fixed.

Objected to by: des (for not using sbuf)

Since the output is not variable length and I'm actually over
allocating signifigantly and I'd like to get this fixed now, I'll
work on the sbuf convertion at a later date.  I would not object
to someone else taking it upon themselves to convert it to sbuf.
I hold no MAINTIANER rights to this code (for now).
2001-04-27 22:24:45 +00:00
fenner
65d40dd90a Better handling of ioctl(SIOCSIFFLAGS) failing in ifpromisc():
- Don't print the "promiscuous mode (enabled|disabled)" on failure
- Restore the reference count on failure
2001-04-27 22:20:22 +00:00
bmah
0b059bcc42 First commit of RELNOTESng, the rewrite of the *.TXT documentation
files.

src/release/doc/README has additional information.

Reviewed by:	-current, -doc
2001-04-27 21:28:02 +00:00
olgeni
d1b5948b96 Some ports have been renamed after this script has been created.
A couple of renames are needed (disc 1):

  print/xpdf -> graphics/xpdf
  mail/pine -> mail/pine4
2001-04-27 20:43:57 +00:00
sos
036e63f67b Move the disklabel construction to the attach function instead of
in open. This prevent panics when a the disklabel is accessed on
an ATA-RAID subdisk.
2001-04-27 19:47:33 +00:00
jhb
cea5d733b2 Check the new kern.smp.active sysctl rather than the non-existent
smp.smp_active sysctl to determine if we are running on an SMP machine.
2001-04-27 19:33:50 +00:00
jhb
8bfdafc934 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
95c1741160 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
24f0bef968 Add getaddrinfo(3) to the "SEE ALSO" list. 2001-04-27 18:18:12 +00:00
alfred
c6739267c5 Actually show the values that tripped the assertion "receive 1" 2001-04-27 13:42:50 +00:00
ru
8f59c12a30 Removed reference to withdrawn secure-supfile. 2001-04-27 12:15:15 +00:00
ru
6a19f2af7e stable-supfile now covers 4.x-stable. 2001-04-27 12:08:34 +00:00
ru
15767fcc24 MFS: revision 1.19.2.4
Correct comments to fit current realities of exporting crypto.
2001-04-27 12:00:35 +00:00
ru
7e34350ffd mdoc(7) police: fix markup. 2001-04-27 10:32:48 +00:00
ru
29df93f297 mdoc(7) police: removed hard sentence breaks. 2001-04-27 10:27:06 +00:00
ru
ec40217132 mdoc(7) police: removed hard sentence break. 2001-04-27 10:22:17 +00:00
ru
12a2a13865 mdoc(7) police: Removed forgotten .Pp. 2001-04-27 10:18:22 +00:00
ru
e27059862d mdoc(7) police: fix markup.
(Shows how powerful new -mdoc is.)
2001-04-27 10:13:20 +00:00
ru
c1d6692466 mdoc(7) police: shrink list width by one character. 2001-04-27 09:06:50 +00:00
ru
ed79d3baab mdoc(7) police:
document date updated, removed history info from the .Os call, cosmetics.
2001-04-27 08:36:48 +00:00
ru
bbf732ba37 mdoc(7) police: update document date, sort xrefs, fix markup. 2001-04-27 08:28:44 +00:00
ru
c507c0ccd6 Grammar nit. 2001-04-27 08:16:57 +00:00
ru
3da5e6c90c Fixed a typo. 2001-04-27 08:12:45 +00:00
sobomax
376d2cec8e 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
f786f0e0e3 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
821062d797 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
8ffc16e891 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
043cc81847 Document acl_get_entry(3)
Obtained from:	TrustedBSD Project
2001-04-26 22:28:14 +00:00
bmah
7bfd90c703 New release notes: Advance Logic ALS4000 driver, S3 Sonicvibes driver,
ln -h/-n.
2001-04-26 21:33:08 +00:00
bmah
1309e4d0e9 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
161a28e738 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
bd78e7fc0a 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
c4851f977b Remove xlint from build-tools. This needs to be fixed in a different way. 2001-04-26 17:54:24 +00:00
jkh
d7b7c00e09 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
e76cced2fd Enable static IPv6 address assignment on PCMCIA NIC.
PR:		conf/26633
2001-04-26 17:33:37 +00:00
iedowse
cd1f3817de 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
cd85442a9c Previous commit should read:
style(9) Reviewed by:	bde
2001-04-26 17:22:48 +00:00
schweikh
89bf59e333 Fix a grammar bogon. 2001-04-26 17:16:59 +00:00
sobomax
d7706ae588 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
1b6f26ed7f 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
5bf6685581 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
13359ffde1 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
4a1ef867b2 "Portmapper" -> "Rpcbind" in a comment. 2001-04-26 13:43:02 +00:00
ru
12dcdbb249 -lposix1e is dead. 2001-04-26 13:33:00 +00:00
brian
aece142b9a 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
c598b2b858 Fix usage of GROFF_BIN_PATH. 2001-04-26 12:29:12 +00:00
ru
65e65d4a22 Added missing no's to the -o options list.
Fixed markup.
2001-04-26 12:05:23 +00:00
ru
5062e3a3a7 mdoc(7) police: fix markup. 2001-04-26 11:47:49 +00:00