Commit Graph

24559 Commits

Author SHA1 Message Date
gibbs
50a7dce995 Convert to use the new bufq* functions for dealing with buffer
queues.
1997-09-21 22:03:22 +00:00
gibbs
30cd24efde Update for new callout interface. 1997-09-21 22:02:25 +00:00
gibbs
ed8b81bbf5 init_main.c subr_autoconf.c:
Add support for "interrupt driven configuration hooks".
	A component of the kernel can register a hook, most likely
	during auto-configuration, and receive a callback once
	interrupt services are available.  This callback will occur before
	the root and dump devices are configured, so the configuration
	task can affect the selection of those two devices or complete
	any tasks that need to be performed prior to launching init.
	System boot is posponed so long as a hook is registered.  The
	hook owner is responsible for removing the hook once their task
	is complete or the system boot can continue.

kern_acct.c kern_clock.c kern_exit.c kern_synch.c kern_time.c:
	Change the interface and implementation for the kernel callout
	service.  The new implemntaion is based on the work of
	Adam M. Costello and George Varghese, published in a technical
	report entitled "Redesigning the BSD Callout and Timer Facilities".
	The interface used in FreeBSD is a little different than the one
	outlined in the paper.  The new function prototypes are:

	struct callout_handle timeout(void (*func)(void *),
				      void *arg, int ticks);

	void untimeout(void (*func)(void *), void *arg,
		       struct callout_handle handle);

	If a client wishes to remove a timeout, it must store the
	callout_handle returned by timeout and pass it to untimeout.

	The new implementation gives 0(1) insert and removal of callouts
	making this interface scale well even for applications that
	keep 100s of callouts outstanding.

	See the updated timeout.9 man page for more details.
1997-09-21 22:00:25 +00:00
gibbs
55680d2617 Update for changes in the callout interface. 1997-09-21 21:43:54 +00:00
gibbs
e79833771f soundcard.c:
Update for changes in the callout interface.

sequencer.c:
	Add a paren that seems to have gone missing.
1997-09-21 21:43:35 +00:00
gibbs
36f31a4448 aha1542.c aic6360.c cy.c fd.c ft.c
if_ie.c if_wl.c if_zp.c isa.c isa_device.h
labpc.c mcd.c ncr5380.c scd.c seagate.c si.c
sio.c tw.c ultra14f.c wcd.c wd.c:

	Update for changes in the callout interface.

apic_vector.s icu_vector.s ipl.s ipl_funcs.c:

	Add CAM software/hardware interrupt support.
1997-09-21 21:41:49 +00:00
gibbs
bd4ff1d3c7 ipl.h:
Add CAM software/hardware interrupt support.

si.h:
	Update for changes in the callout interface.
1997-09-21 21:38:54 +00:00
gibbs
21174c6321 autoconf.c:
Add cpu_rootconf and cpu_dumpconf so that configuring these
	two devices can be better controlled by the MI configuration
	code.

machdep.c:
	MD initialization code for the new callout interface.

trap.c:
	Add support for printing out whether cam interrupts are masked
	during a panic.
1997-09-21 21:38:05 +00:00
gibbs
5b3cc11c7d Add shared EISA interrupt support.
Clean up the match routines so that they return const char *
1997-09-21 21:35:24 +00:00
gibbs
c88c859fdd Move the rules for aicasm to the MI conf file. 1997-09-21 21:34:31 +00:00
gibbs
10ed382dc3 Convert to the new callout interface. 1997-09-21 21:33:10 +00:00
gibbs
943b365d47 Convert to the new callout interface.
Guard against scheduling more than one callout.
1997-09-21 21:33:01 +00:00
gibbs
182634f9a2 Move the rules for aicasm to the MI conf file.
Add kern/subr_autoconf.c as a standard file as it contains the bulk of
the code for performing interrupt driven configuration.
1997-09-21 21:32:04 +00:00
brian
a3705cc47f It turns out that the following:
close(1);
  close(2);
  x = open(ctermid(NULL), O_RDWR|O_NONBLOCK);
  close(0)
on a tty causes select() to return an exception for descriptor x !
This is the case in RELENG_2_2, but not in 2.2.2.  I'm not sure why.
Instead of doing the x=open() and close(0), we just do x=0 now.
Problem pointed out by: Greg Lehey <grog@lemis.com>
                        Tomi Vainio <tomppa@fidata.fi>
1997-09-21 20:26:47 +00:00
markm
6d93c0c4cb FreeBSD's original passwd helper is needed here. 1997-09-21 17:37:08 +00:00
joerg
a19b8652a8 Unspam rev 1.114 that got spammed when someone commited the rc.conf
changes: drop `savecore_enable' now that our savecore obeyes the
minfree file.
1997-09-21 16:09:48 +00:00
peter
da506e2d53 Implement the parts needed for VM86 under SMP. 1997-09-21 15:03:59 +00:00
brian
b67aa30e55 Typo police
Submitted by:	Mark Cammidge <mark@gmtunx.ee.uct.ac.za>
1997-09-21 13:08:00 +00:00
brian
f07c095974 Add a pppctl(8) xref.
Suggested by:	joerg
1997-09-21 13:06:43 +00:00
wosch
c38b558497 Add ypwhich(1) and yppoll(8) manual pages.
Obtained from: NetBSD, slightly modified
1997-09-21 11:49:18 +00:00
peter
7658f30c46 Fix some style(9) and formatting problems. tabsize 4 formatting doesn't
look too great with 'more' etc.

Approved by: dyson (with a minor grumble :-)
1997-09-21 11:41:12 +00:00
wosch
d2e18fbdd4 Chown(8) compiled with -DSUPPORT_DOT (backward compatibility) does
first check for a `.' and then for `:' as a delimiter.
Usernames with a dot will fail.

# chown r.r:bin /tmp/bla
chown: r:bin: illegal group name

Fix: first check for a `:' and then for a `.'
1997-09-21 09:13:57 +00:00
dyson
87c67f00d0 Add support for more than 1 page of idle process stack on SMP systems. 1997-09-21 05:50:02 +00:00
dyson
8cdcb94033 Re-institute a bugfix in allocation of anonymous buffer memory. 1997-09-21 04:49:30 +00:00
dyson
46d4489773 Change the M_NAMEI allocations to use the zone allocator. This change
plus the previous changes to use the zone allocator decrease the useage
of malloc by half.  The Zone allocator will be upgradeable to be able
to use per CPU-pools, and has more intelligent usage of SPLs.  Additionally,
it has reasonable stats gathering capabilities, while making most calls
inline.
1997-09-21 04:24:27 +00:00
peter
d4f1e06a96 Recognize the CS4326 on the Intel PR440FX motherboard. (It works just like
the normal CS4326 except that it's had it's ID's tweaked for some reason)
Also mark the device as alive in the attach routine so that the pnp system
doesn't think the attach failed.
1997-09-21 03:27:51 +00:00
peter
9c9280ef10 Fix a comment-within-a-comment 1997-09-21 03:21:34 +00:00
peter
fb89de83a5 Accept FIOASYNC (like the old sound driver) since it's generated by
kern_descrip.c when the user does an fcntl(.., F_SETFL, ...).
1997-09-21 03:20:36 +00:00
peter
f66c79d95f We were (I think) missing a vrele() on the vnode for the object loaded
via PT_INTERP (usually /usr/libexec/ld-elf.so.1).
1997-09-21 03:13:21 +00:00
brian
d196efac4b Add "delete 0" before "add 0 0..."
Suggested by:
1997-09-21 02:10:41 +00:00
wosch
3621c7a5fa Do not complain about non existing shell "/nonexistent"
Smarter error check if a uid is already in use.

Submitted by: "Eugene Radchenko" <genie@qsar.chem.msu.su>
1997-09-20 19:59:54 +00:00
wosch
718c314afd Do not accept empty user names. 1997-09-20 18:26:22 +00:00
joerg
99c3bcdfc0 Don't gratuitously drop termcap.db and vgrindefs.db from the installed
set of files.

Reviewed by:	jkh
1997-09-20 17:10:09 +00:00
joerg
b4405a2063 Perform a `make distrib-dirs distribution' inside the chroot tree
before trying to `make world', so to become less dependant from the
correctness of the environment hosting the `make release'.  The recent
addition of a group `network' made this problem apparent.
1997-09-20 15:40:55 +00:00
phk
933d4a785b For AMD chips, pick up the long description from the chip if
possible. (This is not really a typographical improvement in the
case of the K6 it seems, but AMD appearantly want it too look
that way).  Also if bootverbose, dump some more info about the
chip.
1997-09-20 13:18:48 +00:00
peter
b7c92b24f7 _G_VTABLE_LABLE_PREFIX is different between ELF and a.out
('_vt.' vs '__vt$')
1997-09-20 09:58:49 +00:00
dyson
9ab0a902f3 Addition of support of the slightly rogue Promise IDE interface(Dyson), support
of multiple PCI IDE controllers(Dyson), and some updates and cleanups from
John Hood, who originally made our IDE DMA stuff work :-).

I have run tests with 7 IDE drives connected to my system, all in DMA
mode, with no errors.  Modulo any bugs, this stuff makes IDE look
really good (within it's limitations.)

Submitted by:	John Hood <cgull@smoke.marlboro.vt.us>
1997-09-20 07:41:58 +00:00
peter
54eb6af2d6 Adjust the #ifdef KERNEL so that pnp_cinfo is available for sbin/dset.c
Other ways around this might be to #define KERNEL in dset.c for the
"i386/isa/pnp.h" include.
1997-09-20 06:26:28 +00:00
jkh
400eee4073 More label editor enhancements.
Submitted by:	Ed Gold <vegold01@starbase.spd.louisville.edu>
1997-09-20 06:24:17 +00:00
kato
adf00c9c19 Synchronize with sys/i386/isa/isa.c revision 1.104. 1997-09-20 05:29:03 +00:00
kato
52a31a62bf Synchronize with sys/i386/conf/options.i386 and sys/i386/isa/sio.c
revisions 1.60 and 1.182, respectively.
1997-09-20 05:28:02 +00:00
imp
1663688086 Add missing \ from previous rev to end of a line. 1997-09-20 04:58:08 +00:00
jkh
4871a19630 Fix conditional bogon in Label Editor [from Ed Gold]
Print info boxes without titles.
1997-09-20 02:48:48 +00:00
peter
c9fada5b8a ``oops''. I cut/pasted the original free()'s based on mark's suggestion
rather than extracting the diff from Mark's patch, but it turns out that
I was freeing one allocation twice due to a previous cut/paste braino.
My botch, not Mark's.

Pointed out by:  Mark Valentine <mv@pobox.com>
1997-09-20 02:29:56 +00:00
ache
b9c943b234 Describe all know capabilities now 1997-09-20 01:10:28 +00:00
brian
558e49db7e Use snprintf() instead of sprintf() most of the time.
Obtained from: OpenBSD

Make usage() consistent with man page.
1997-09-19 22:22:04 +00:00
wosch
3e62c3955f .Ox macro needs to support "OpenBSD 2.1"
PR: docs/4561
Submitted by: Norihiro Kumagai <kuma@slab.tnr.sharp.co.jp>
1997-09-19 21:37:05 +00:00
max
c19f6cc37e Typo. 1997-09-19 16:04:19 +00:00
jmg
0ab518992c bmake'd pnpinfo 1997-09-19 15:41:57 +00:00
jmg
ca173ef652 activate pnpinfo 1997-09-19 15:41:43 +00:00