Commit Graph

51868 Commits

Author SHA1 Message Date
dcs
3bb38f9a1e Add the infrastructure necessary to handle PnP from a Forth script.
Also, export the file_findfile() function. Again, this is taken from
work in progress but frozen for the time being. Since it works, I'd
rather commit and remove any uglyness later than hide it on my tree.
2000-09-08 17:03:53 +00:00
dcs
617197845d Fix an error message which was using the wrong variable to get the
kernel name from.
2000-09-08 16:58:31 +00:00
dcs
8fd2c66297 Add constructors to crude structure support. Rework some of the
code into a more modular interface, with hidden vocabularies and
such. Remove the need to a lot of ugly initialization.

Also, add a few structure definitions, from stuff used on the C
part of loader. Some of this will disappear, and the crude structure
support will most likely be replaced by full-blown OOP support
already present on FICL, but not installed by default. But it was
getting increasingly inconvenient to keep this separate on my tree,
and I already lost lots of work once because of the hurdles, so
commit this.

Anyway, it makes support.4th more structured, and I'm not proceeding
with the work on it any time soon, unfortunately.
2000-09-08 16:57:28 +00:00
dcs
74e4aec36c Make the pnp structure a global variable, so it can be used elsewhere. 2000-09-08 16:51:29 +00:00
dcs
3b5d17878d Fix autoboot. Now autoboot *always* show the correct kernel name. It
gets the name from the environment variable kernelname, which is set
when a kernel is loaded. For this reason, autoboot will _first_ try
to load a kernel, and only proceed with the wait prompt after that
succeeds. If it fails, it will abort immediately.

While I understand some may think this behavior undesirable, I think
it is, overall, the best thing to do, even if we do not consider the
aesthetic issue. Notice that anyone using the default loader.rc
already has the kernel loaded before autoboot.

On unload, unset kernelname.

Separate the code that tries to load a kernel from the list of options
to the function loadakernel(). It is used by both boot() and
autoboot().
2000-09-08 16:47:05 +00:00
kato
0da719f6b0 Fixed the softintr macro which directly accessed ipending.
Suggested by:	jasone
2000-09-08 11:58:25 +00:00
kato
b98c57ee40 Merged from sys/isa/sio.c revisions 1.309 - 1.311. 2000-09-08 11:54:13 +00:00
ache
bd9818f450 Prevent buffer overflow if NLSPATH is too long 2000-09-08 11:42:37 +00:00
kato
cd47904f02 Merged from sys/i386/i386/machdep.c revision 1.407. 2000-09-08 11:20:04 +00:00
kato
90c0e8a539 Merged from sys/boot/i386/loader/Makefile revision 1.47. 2000-09-08 11:18:40 +00:00
jasone
342efe03cf Only call kdb_trap() if the DDB config option is specified. 2000-09-08 09:51:16 +00:00
jhb
d6d836acdd Back out my previous commit as well as some SMPng changes to revert the
siosetwater() function to its previous behavior of always disabling
interrupts and obtaining the com_lock before returning.

Requested by:	bde (in principle)
2000-09-08 08:50:25 +00:00
kris
70970229b5 Disallow '/' characters in LC_* environment variables which might
be used to point to a bad locale file. This is only believed to be a
minor security risk - the only risk is if some program uses the result
of a localized string as a format specifier in a vulnerable function
like sprintf(). No such code is believed to exist in the FreeBSD base
system, although it is possible that badly written third party code
would do that.

Submitted by:	imp
Approved by:	ache
2000-09-08 07:29:48 +00:00
grog
893e66132f siointr1: Schedule soft interrupt when needed. This fixes the "no
interrupt" problem people had seen with SMPng.

Approved by:       jasone
Tested by:         bp
2000-09-08 06:58:58 +00:00
imp
388f0464a6 Add a mild warning for people to expect problems in -current after the
SMPng merge.  Suggest 4.x-stable for a while for those people that are
unable or unwilling to cope with problems.

After 6 hours of use tonight, my gut tells me that we're going to have
lots of problems crop up in the coming weeks.
2000-09-08 06:41:47 +00:00
bmah
0b5b458c7b New relnotes: SMPng, clarification to nsswitch.conf(5)
that hosts.conf(5) is gone, perl 5.6.0.  First two items inspired by
recent commits to UPDATING.
2000-09-08 05:58:18 +00:00
imp
5c8d1cf586 Look for libstand in the built tree rather than in /usr/lib. This
likely could be done better, but the tree is broken and I wanted to
get a fix into the tree.

Reviewed by: msmith
2000-09-08 04:26:55 +00:00
jake
cdabd4e5b1 Really fix USER_LDT. (Don't use currentldt as an L-value.) 2000-09-08 03:36:09 +00:00
jhb
ef00a47c1c Fix a problem where we would recursively try to get the com lock within
comparam when calling siosetwater().

Noticed by:	bp
2000-09-08 00:35:46 +00:00
mckusick
20521b65fe Cannot do MALLOC with M_WAITOK while holding ACQUIRE_LOCK
Obtained from:	Ethan Solomita <ethan@geocast.com>
2000-09-07 23:02:55 +00:00
imp
7840f7038f Add note about SMPNG commit. 2000-09-07 21:39:59 +00:00
bmah
51e4f267a4 Crypto-related release notes: sshd now has X11Forwarding on by default,
RSAREF no longer needed in the USA, sshd now enabled by default on
new installs.
2000-09-07 21:28:01 +00:00
imp
4fcd8856a5 Revamp boot message. Get the path names right.
Submitted by: "Dampure, Pierre Y." <pierre.dampure@alveley.org>
2000-09-07 21:04:39 +00:00
rwatson
f1f4a951bb o When pre-allocating attribute storage space, also allocate space for
attribute instance headers, or higher inode numbers will require
  additional disk blocks to be allocated later.

Obtained from:	TrustedBSD Project
2000-09-07 20:32:31 +00:00
mjacob
f3c88582db Per msmith's request, don't attach to Qlogic 12160 id'd cards that have
a certain SubVendorID.
2000-09-07 20:27:40 +00:00
jake
b4fa586c42 Don't use currentldt as an L-value.
This should fix options USER_LDT.

Reported-by:	John Hay <jhay@zibbi.mikom.csir.co.za>
		Nickolay Dudorov <nnd@mail.nsk.ru>
2000-09-07 20:12:12 +00:00
wpaul
c5ad82849f Special-case the LED twiddling code so that it doesn't do anything
on the NEC VersaPro NoteBook PC. This 21143 implementation has no LEDs,
and flipping the LED control bits somehow stops it from establishing
a link. We check the subsystem ID and don't flip the LED control
bits for the NEC NIC.
2000-09-07 18:51:04 +00:00
bmah
fcf6dfde82 Note that the asr(4) and mly(4) drivers are in -CURRENT.
Reviewed by:	msmith, "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
2000-09-07 18:47:55 +00:00
wpaul
41a8897cd6 Close PR #20963. Do not pass encryption keys back to the caller via
wi_ioctl() unless they're the superuser.
2000-09-07 17:05:12 +00:00
jhb
075c4a4a7c - Revert gratuitous reinstall -> install change in previous commit.
- Don't try to build modules when compiling a kernel during release.
2000-09-07 16:51:23 +00:00
des
89092e720a Pierre Beyssac originally derived linprocfs from procfs, and I've made (and
will keep making) significant modifications, so I'm adding both our copyrights
to the top of these files.
2000-09-07 16:44:26 +00:00
des
395b4ef537 Redeclare cp_time. It's no longer static, and linprocfs needs it. 2000-09-07 16:38:04 +00:00
jhb
e2a94e3657 Test for both SMP and I386_CPU being set before generating an error. 2000-09-07 16:10:02 +00:00
jkh
5856df84c0 MFS: sync with -stable by removing the now-vestigal X_AS_PKG stuff. 2000-09-07 16:05:52 +00:00
n_hibma
f62bdbe95f Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and
should be prefixed by YYPREFIX as well.

Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers
are used in executable.
2000-09-07 15:01:18 +00:00
nyan
2bc3c05561 Don't assume that address of I/O address table increase (PC-98 only).
Pointed out by:	Tomokazu HARADA <tkhara@osk4.3web.ne.jp>
2000-09-07 14:43:00 +00:00
kato
a5116318cf Merged from sys/i386/i386/machdep.c revision 1.406. 2000-09-07 13:35:44 +00:00
kato
a85942f77a Merged from sys/isa/sio.c revision 1.306, 1.307 and 1.308. 2000-09-07 13:34:45 +00:00
kato
1bfd220f6b Merged from sys/i386/isa/npx.c revision 1.84. 2000-09-07 13:33:48 +00:00
kato
256db962ea Merged from sys/i386/isa/clock.c revision 1.156. 2000-09-07 13:32:59 +00:00
kato
920cdc2ddc Merged from sys/conf/files.i386 revision 1.327 (adding synch_machdep.c
and ithread.c.)
2000-09-07 13:31:38 +00:00
des
8c1d8b8603 Fix comment to match previous commit, as per bde. 2000-09-07 07:03:11 +00:00
obrien
220104b9b3 Minimal set of diffs from the i386 bits to the AlphaLinux.
Submitted by:	gallatin (content, minimization by me)
2000-09-07 06:12:41 +00:00
obrien
364c222cbb The kernel is now known as `kernel.ko' and it and its matching modules
live in ``/boot/kernel/''.  So tweak the release build to match previous
assumptions and expectations.
2000-09-07 05:52:43 +00:00
obrien
9b918bb1da Create an "expert" mode where the device hints are not checked during
installation.  This is need for the release build.
2000-09-07 05:50:07 +00:00
ume
88aa2339d0 Make sure to accept RA. Some laptops run /etc/pccard_ether before
/etc/rc.network6.

PR:		bin/21062
2000-09-07 03:06:06 +00:00
nectar
d6e2db6301 Fix getipnodebyname(3) bug.
Submitted by:	ume
2000-09-07 02:18:22 +00:00
jasone
daa58ba7a4 Major update to the way synchronization is done in the kernel. Highlights
include:

* Mutual exclusion is used instead of spl*().  See mutex(9).  (Note: The
  alpha port is still in transition and currently uses both.)

* Per-CPU idle processes.

* Interrupts are run in their own separate kernel threads and can be
  preempted (i386 only).

Partially contributed by:	BSDi (BSD/OS)
Submissions by (at least):	cp, dfr, dillon, grog, jake, jhb, sheldonh
2000-09-07 01:33:02 +00:00
jasone
0cc8516584 Add KTR, a facility that logs kernel events in order to to facilitate
debugging.

Acquired from:	BSDi (BSD/OS)
Submitted by:	dfr, grog, jake, jhb
2000-09-07 01:29:44 +00:00
obrien
d3c868ec56 Remove superfluous `/'s before KODIR.
Acceptability explained by:	rgrimes
2000-09-07 00:26:33 +00:00