Commit Graph

51111 Commits

Author SHA1 Message Date
peter
b77a95e8cc Clean up some low level bootstrap code:
- stop using the evil 'struct trapframe' argument for mi_startup()
  (formerly main()).  There are much better ways of doing it.
- do not use prepare_usermode() - setregs() in execve() will do it
  all for us as long as the p_md.md_regs pointer is set.  (which is
  now done in machdep.c rather than init_main.c.  The Alpha port did it
  this way all along and is much cleaner).
- collect all the magic %cr0 etc register settings into one place and
  have the AP's call that instead of using magic numbers (!!) that keep
  changing over and over again.
- Make it safe to call kthread_create() earlier, including during the
  device probe sequence.  It doesn't need the callback mechanism that
  NetBSD's version uses.
- kthreads created this way are root-less as they exist before the root
  filesystem is mounted.  init(1) is set up so that it aquires the root
  pointers prior to running.  If other kthreads want filesystem acccess
  we can make this code more generic.
- set all threads start times once we have decided what time it is.
- init uses a trampoline rather than the evil prepare_usermode() hack.
- kern_descrip.c has a couple of tweaks to deal with forking when there
  is no rootdir or cwd etc.
- adjust the early SYSINIT() sequence so that a few prereqisites are in
  place. eg: make sure the run queue is initialized before doing forks.

With this, the USB code can easily create a kthread to do the device
tree discovery.  (I have tested it, it works nicely).

There are still some open issues before this is truely useful.
- tsleep() does not like working before the clock is running.  It
  sort-of tries to spin wait, but it can do more useful things now.
- stopping a kthread in kld code at unload time is "interesting" but
  we have a solution for that.

The Alpha code needs no changes for this.  It already uses pretty much the
same strategies, but a little cleaner.
2000-08-11 09:05:12 +00:00
sheldonh
8e7c62e449 While we're in here:
Remove extraneous arguments to the Nm macro.
Mark up cross-references properly.
Use proper block displays (Bd).
Use proper mark-up for author names (An).
Remove the bogus ARGUMENTS section.
Raname EXAMPLE -> EXAMPLES.
Spell ``S/Key'' consistently.
2000-08-11 08:40:10 +00:00
ps
b6bc6cd6fe Add support to send the string 'PXEClient' as the Vendor class
identifier to the DHCP server.  Now you can check for this string
in your dhcp configuration to decide whether you will hand out a
lease to the client or not.
2000-08-11 08:36:17 +00:00
sheldonh
c8a4db1c03 (null commit)
Reflect that the update to routed-2.22 addresses a problem discussed
in PR bin/16941.  The updated release also incorporates our local
buffer overflow fix (implemented differently) and puts us in a
position where we are completely synchronized with the master
distribution, apart from the stupid spammage of the #ident
definitions, which are supposed to indicate the release version,
not individual source file revisions.

This distribution was not moved into contrib because of objections
from wollman.  He feels that the software is original Berkeley
code that shouldn't be imported into contrib just because it
has an external maintainer.
2000-08-11 08:24:39 +00:00
sheldonh
e01b14c799 Add $FreeBSD$. 2000-08-11 08:23:26 +00:00
sheldonh
46861a3421 Fix hard sentence break and inappropriate use of the Pa macro in
the previous delta.
2000-08-11 08:12:44 +00:00
ps
a9406c60b9 Pass along the interesting variables we were given from DHCP so we
can utilize them in the kernel and with kenv.
2000-08-11 05:31:59 +00:00
jdp
0cb80b368d Describe ldconfig_insecure. 2000-08-11 04:20:30 +00:00
jdp
739a635080 Add an rc.conf knob "ldconfig_insecure" to disable ldconfig's
security checks.  Set the default to NO, i.e., secure.

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>
2000-08-11 03:26:30 +00:00
imp
c84680fe73 Add stuff:
o BUILD_SUIDPERL replaces NOSUIDPERL
o New /etc/rc.conf settings for secure networking may require changes
  to those upgrading.
o nullfs in loader.conf.
2000-08-10 23:16:32 +00:00
archie
2a80433335 Oops, previous commit fixed a bug that was already fixed before.
Back it out.
2000-08-10 23:04:46 +00:00
imp
77b3d32648 Don't build suidperl by default. Make users specifically enable its
building.
2000-08-10 22:59:53 +00:00
imp
e7a46e1a88 Change NOSUIDPERL to BUILD_SUIDPERL. One must now explicitly enable
building suidperl.
2000-08-10 22:55:58 +00:00
imp
120f207f23 Eliminate the only setuid perl script in the tree.
Original 'C' progam submitted by Juriy Goloveshkin.
A different 'C' program also submitted by dima.

I merged and rewrote them to include error handling, use getlogin for
user name and only the BSD boilerplate license remained from the
original code.  We also only allow root to get other user's keys.

Review, bikeshed and bdelint(1): myself, kris, dima, markm
2000-08-10 22:53:49 +00:00
archie
e468b87d91 Add new control message to atomically get and clear statistics. 2000-08-10 22:52:40 +00:00
archie
6a4c08bdfb Increase the maximum allowable datagram length. 2000-08-10 22:51:57 +00:00
archie
5e2c181f23 "u_int32_t" should have been "int32_t". 2000-08-10 22:51:26 +00:00
archie
6119100c13 Use a bigger buffer for NGM_BINARY2ASCII conversion, to handle really
long ASCII control messages.
2000-08-10 22:50:38 +00:00
archie
5187133877 - Add new control message NGM_VJC_GET_CONFIG
- Implement control message ASCII'fication for all control messages
2000-08-10 22:48:03 +00:00
archie
96ac86461c Take advantage of the new unsigned and hex integer types. 2000-08-10 22:45:54 +00:00
archie
4b583b7cec - Make statistics unsigned.
- Add new control message to atomically get and clear statistics.
2000-08-10 22:44:41 +00:00
archie
4b45b46df3 - Add new unsigned and hex integer parse types
- Fix bug in commented example code
2000-08-10 22:43:38 +00:00
archie
5fc907de16 - Add new unsigned and hex integer parse types; this allows simplifying
the bytearray parse type.
- Allocate (larger) temporary work buffer dynamically instead of on the
  stack when comparing to the default value.
2000-08-10 22:42:25 +00:00
ume
f42236b6b4 Make ip6fw zero work.
PR:		bin/20522
2000-08-10 20:41:33 +00:00
archie
0bf4e5c4ff RFC 1661 requires that all LCP packets are sent with no address and
control field compression. The ng_ppp(4) node correctly follows this
rule. However, PPPoE is an exception: when doing PPPoE *all* frames
are sent with address and control field compression.

Alter this node's behavior so that when an outgoing frame is received,
any leading address and control field bytes are removed. This makes
this node compatible with ng_ppp(4).
2000-08-10 20:05:12 +00:00
billf
2efc0be3d2 make sshd follow the pattern of enable, program, flags like every
other entry does.
2000-08-10 19:52:06 +00:00
billf
4b7ae9e455 1000bassT -> 1000baseT 2000-08-10 19:47:32 +00:00
wollman
3a13c2bcae Merge from vendor branch. Also move FreeBSD Ids away from vendor Id
to make future merges easier.
2000-08-10 19:36:46 +00:00
wollman
33582b087a This commit was generated by cvs2svn to compensate for changes in r64496,
which included commits to RCS files with non-trunk default branches.
2000-08-10 19:20:14 +00:00
wollman
95dfd9ea28 Latest timezone updates from Arthur Olson. This update reflects changes
in Israel, Lithuania, Mexico, and Argentina.

Obtained from:	ftp://elsie.nci.nih.gov/pub/tzdata2000f.tar.gz
2000-08-10 19:20:14 +00:00
imp
3f186393a8 Add some infrastructure support for dealing with large attribute
memory space needed by the raylink driver (in progress, nearing
completion).

This is a minorly cleaned up diff from Duncan to help him reduce the
diffs from stock FreeBSD.

Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>
2000-08-10 17:35:11 +00:00
tegge
17a384d63d Don't skip IOAPIC id conflict detection when only one pci bus is present.
PR:		20312
Reviewed by:	Steve Roome <steve@sse0691.bri.hp.com>
2000-08-10 17:33:24 +00:00
ume
236344f734 Don't retry connecting via the same medium.
I changed to close to original code before merging IPv6 support.
It seems having delay before another try is useless.  However, I'm
not sure that delay means.  So, I leave it as-is.

PR:		bin/20515
2000-08-10 17:10:57 +00:00
nsayer
ba276606c9 Document support for the Solo 1.
Requested by: sheldonh
2000-08-10 15:01:01 +00:00
sanpei
3ac2aaba46 add Nokia Card Phone 2.0 (gsm900/dcs1800 HSCSD terminal)
PR:		conf/20037
2000-08-10 13:43:17 +00:00
brian
bd4b284259 Mention that pppoe requires netgraph(4) and without it, an external
pppoe program must be used (such as pppoe(8) on OpenBSD).
2000-08-10 13:26:01 +00:00
sanpei
e946e667da I tested Toshiba Modem/LAN card IPC5001B (as Modem) and enable it.
This card has `Network/LAN adapter' function ID(06 00),
not Serial port/modem.
2000-08-10 13:24:12 +00:00
brian
17f57d079e Correct dodgy wild card expansion
PR:	20514
2000-08-10 10:58:44 +00:00
sheldonh
77c06e3506 Remove hard sentence breaks introduced in the previous commit. 2000-08-10 09:01:10 +00:00
sheldonh
f70ee42bd0 Resolve conflicts. 2000-08-10 07:54:33 +00:00
sos
3b687fa575 Fix the ICH2 ATA100 support, and proberly downgrade the chip setup when
going to slower DMA modes on all Intel chips.
2000-08-10 07:34:49 +00:00
imp
ef781361a0 o Move to recommending the {build,install}kernel targets for updating from
older versions of FreeBSD.
o Continue to document the old way of doing it with a warning stating if that
  doesn't work, to do the {build,install}kernel thing.
o minor wordsmithing on what a make world really is.
2000-08-10 05:14:31 +00:00
imp
bfc19b50ed Add a reminder note to people to disable third party modules at the
right place in the upgrade proceedure so that they don't get burned by
a crash on reboot.
2000-08-10 05:03:49 +00:00
kbyanc
304ef8b3ec Fix an order-of-operations bug and properly shift page_control values for
comparison with SMS_PAGE_CTRL_* macros.
2000-08-10 01:20:43 +00:00
brian
5d4e26f27a Correct a typo
Spotted by: Jimmy Olgeni <olgeni@uli.it>
2000-08-10 00:26:50 +00:00
brian
f7946f7c73 Allow a ppp_user specification to run ppp at startup
PR:		20258
2000-08-10 00:13:02 +00:00
archie
7cffeeb59d In a struct sockaddr, sa->sa_len can be zero if uninitialized.
Make sure that this doesn't cause a problem when parsing.
2000-08-09 23:57:44 +00:00
itojun
5d68732fcd mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with kame)
s/.Os KAME/.Os/
comment From: Greg Thompson
2000-08-09 23:16:23 +00:00
kbyanc
d3c3ee785e Include new modepage list (-l) option in the verbose usage. 2000-08-09 21:29:22 +00:00
brian
8637c36c0a Be more careful about selecting a PAGER.
Improve the question asked when the PAGER is invalid.

Submitted by: Doug Barton <DougB@gorean.org>
2000-08-09 20:36:15 +00:00