Commit Graph

53121 Commits

Author SHA1 Message Date
n_hibma
751772db95 Kill the correct dhclient on detach of the ethernet device.
Submitted by:	Josef Karthauser <joe@freebsd.org>
Submitted by:	Chris Dillon <cdillon@wolves.k12.mo.us>
2000-10-20 00:42:05 +00:00
n_hibma
a1227d6f63 Bugfix: The data is not stored only in the first cblock, calculate the
length of the data properly. This should be moved into a tty_subr
function.

Also, disanle the setting of the CDC_CM_OVER_DATA flag. It breaks some
modems. I don't think that ther actually is a modem that needs this.

Submitted by:		Brad Karp <bkarp@ICSI.Berkeley.EDU>
2000-10-20 00:35:52 +00:00
joe
31a4985805 Fixup a couple of ether card entries to use the new pccard_ether
calling convention.
2000-10-20 00:31:48 +00:00
n_hibma
ccf0db5457 Regen. 2000-10-20 00:30:01 +00:00
n_hibma
cf91979a1c Add the Sony MSC Memory Stick Adaptor (in the Sony PCS laptops) 2000-10-20 00:29:21 +00:00
n_hibma
14b45ee78f Correct the text on RETURN VALUES. 2000-10-20 00:27:56 +00:00
peter
579ec76de1 execsw_set hasn't been used for a while and does not exist. 2000-10-20 00:26:33 +00:00
joe
bd4a46d7e8 Augment the 'ifaddr' structure with a 'struct if_data' to keep
statistics on a per network address basis.

Teach the IPv4 and IPv6 input/output routines to log packets/bytes
against the network address connected to the flow.

Teach netstat to display the per-address stats for IP protocols
when 'netstat -i' is evoked, instead of displaying the per-interface
stats.
2000-10-19 23:15:54 +00:00
imp
dd5359a9a0 o Fix memory leak in ivars
o Change name of bus
o Change the panic on resource allocation failure to just a message.  We'll
  work out why this fails later in the pcic/pccbb code merge.
2000-10-19 22:36:41 +00:00
gshapiro
73928a7853 Make note of merged changes. 2000-10-19 21:54:37 +00:00
des
aa4611ef3c Understand the difference between an empty file and a non-existent file.
This has been sitting in my tree for ages...
2000-10-19 21:05:59 +00:00
dfr
cec0c905bb Don't force bootverbose anymore. 2000-10-19 20:39:48 +00:00
dfr
dfc4475867 Decrease the number of ticks between clock interrupts by a factor of ten
to place more pressure on the exception handling code.
2000-10-19 20:37:28 +00:00
dfr
2544266537 * Disable interrupts when restoring a trapframe.
* Make sure we reset ar.k6 (used to hold the kernel stack pointer when
  we are returning to user mode after a syscall.
2000-10-19 20:36:31 +00:00
jhb
1076772e76 Reparent a kernel thread to init during kthread_exit() so that the zombie
can be reaped.
2000-10-19 19:53:44 +00:00
jhb
1c582068f5 - Move the prototype for proc_reparent from sys/ptrace.h to sys/proc.h
- Fix the sorting of function prototypes in sys/proc.h
2000-10-19 18:55:22 +00:00
jhb
38d1c8db91 Quiet a silly warning.
Pointy-hat to:	ps
2000-10-19 18:52:20 +00:00
joe
6eb0c7db2a Scripts should contain a comment block describing what the script does. 2000-10-19 18:18:35 +00:00
ru
093cfc269a A failure to allocate memory for auxiliary TCP data is now fatal.
This fixes a null pointer dereference problem that is unlikely to
happen in normal circumstances.
2000-10-19 10:44:44 +00:00
jon
1ba46557a2 NEWCARD/Cardbus -
This commit adds support for Xircom X3201 based cardbus cards.
Support for the TDK 78Q2120 MII is also added.
IBM Etherjet, Intel and Xircom cards uses these chips.

Note that as a result of this commit, some Intel/DEC 21143 based cardbus
cards will also attach, but not get link.  That is being looked at.
2000-10-19 08:34:32 +00:00
jhb
18f874d5c5 Move init_clocks earlier in the system startup so that hardclock and clock
interrupts are started before the device probe.  This allows interrupt
threads to run during the device probe among other things.
2000-10-19 08:16:34 +00:00
msmith
703a356981 Write the routed interrupt back to PCI configuration space. 2000-10-19 08:07:23 +00:00
msmith
29922cc3b2 Call the BIOS to route the selected interrupt. Correctly calculate the
interrupt from the PCI routing table (ffs returns 1 for the rightmost
bit, not 0).
2000-10-19 08:06:50 +00:00
msmith
fabe339dd1 Add PCI BIOS function codes for IRQ routing fetch and route. 2000-10-19 08:02:46 +00:00
rwatson
be06217d29 o Introduce new VOP_ACCESS() flag VADMIN, allowing file systems to perform
"administrative" authorization checks.  In most cases, the VADMIN test
  checks to make sure the credential effective uid is the same as the file
  owner.
o Modify vaccess() to set VADMIN as an available right if the uid is
  appropriate.
o Modify references to uid-based access control operations such that they
  now always invoke VOP_ACCESS() instead of using hard-coded policy checks.
o This allows alternative UFS policies to be implemented by replacing only
  ufs_access() (such as mandatory system policies).
o VOP_ACCESS() requires the caller to hold an exclusive vnode lock on the
  vnode: I believe that new invocations of VOP_ACCESS() are always called
  with the lock held.
o Some direct checks of the uid remain, largely associated with the QUOTA
  and SUIDDIR code.

Reviewed by:	eivind
Obtained from:	TrustedBSD Project
2000-10-19 07:53:59 +00:00
jhb
03a08cfa61 Axe the idle_event eventhandler, and add a MD cpu_idle function used
for things such as halting CPU's, idling CPU's, etc.

Discussed with:	msmith
2000-10-19 07:47:16 +00:00
roger
bd09783654 Add Daniel's name and fix release data 2000-10-19 07:34:18 +00:00
roger
9905561893 Update to driver 2.17
Fixes bugs in devfs when unloading and reloading
Syncs with NetBSD changes

Submitted by:	Alexander Langer <alex@big.endian.de>
Submitted by:	Thomas Klausner <wiz@netbsd.org>
Submitted by:	Daniel O'Connor" <doconnor@gsoft.com.au>
2000-10-19 07:33:28 +00:00
bmah
b15f734c1f ObCommit from BSDCon: Update SMPng note and add an entry for devfs,
which hopefully reflect something of what grog and phk presented in their
talks.
2000-10-18 23:45:31 +00:00
joe
e7408712d4 Make these PICOBSD's compile... well, almost. Still some work to
do on PPP (atm problems.)
2000-10-18 22:02:33 +00:00
joe
13d94c16bd Reference Larry Wall's perlstyle man page, and recommend it's use where
entries in this guide don't override it.

Requested by:	markm

Comment on tabulation style.
2000-10-18 21:57:37 +00:00
des
dda07165ca Trim index lines down to 79 characters, not 80.
Approved by:	jkh
2000-10-18 20:16:26 +00:00
sos
173b42030e Minor changes to the ATA RAID support code, remove some verbosity
and put some under bootverbose..
2000-10-18 18:49:42 +00:00
joe
80592ae498 Use 'unless' instead of 'if (! ... )' where it improves readability. 2000-10-18 18:01:35 +00:00
peter
cdc5e446eb EVENTHANDLER_INVOKE() takes two arguments. 2000-10-18 17:56:06 +00:00
joe
33e1a18d8f Opening braces should be at the end of the controlling line. Else
and elsif belong on the same line as the closing brace for the
previous if or elsif block.

Suggested by:	des
2000-10-18 17:48:10 +00:00
peter
548f92e52d This didn't compile. Fix typo: s/rmang_get_start/rman_get_start/ 2000-10-18 17:45:29 +00:00
joe
b45e13d68b Contract a statement that's too verbose. 2000-10-18 17:34:43 +00:00
joe
542ba1fe32 There are enough examples of using 'my $var = ...' definitions, so remove
one.
2000-10-18 17:32:21 +00:00
joe
4c9afd32c6 All variables should be commented.
Local variables should be separated from function arguments by a
blank line.

Suggested by:	des
2000-10-18 17:25:59 +00:00
joe
af23edfcd0 Make subroutine prototypes mandatory.
The main code should be wrapped in a MAIN:{ ... } declaration.

Suggested by:	des
2000-10-18 17:21:54 +00:00
joe
8a5338b675 Fix the places that I missed last commit: 'vars' not 'var'. 2000-10-18 17:12:07 +00:00
kato
364f567078 Converted da' and wd' into rda' and rwd', respectively.
Submitted by:	MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>
2000-10-18 15:28:10 +00:00
ru
65e7901536 If we do not byte-swap the ip_id in the first place, don't do it in
the second.  NetBSD (from where I've taken this originally) needs
to fix this too.
2000-10-18 11:36:09 +00:00
peter
aff3298f1d Attempt to fix the random read blocking. The old code slept at
priority "0" and without PCATCH, so it was uninterruptable.  And
even when it did wake up after entropy arrived, it exited after the
wakeup without actually reading the freshly arrived entropy.  I
sent this to Mark before but it seems he is in transit.
Mark: feel free to replace this if it gets in your way.
2000-10-18 10:39:18 +00:00
jhb
c5a2ee8e05 Add in a simple API for memory barriers to machine/bus.h:
- barrier_read() enforces a memory read barrier
- barrier_write() enforces a memory write barrier
- barrier_rw() enforces a memory read/write barrier
2000-10-18 10:30:12 +00:00
imp
206b8e7135 Go ahead and disable the legacy mapping of the pcic registers on the
RF5C47x.  Before the code would only do this on the RF5C46x bridges.

Submitted by: Jonathan Chen
2000-10-18 09:55:39 +00:00
hm
dce11759a5 Add ifpnp driver to list of i4b hardware drivers. 2000-10-18 09:16:30 +00:00
kato
7df684211a Merged from sys/i386/i386/machdep.c revision 1.416. 2000-10-18 09:05:09 +00:00
hm
a0d9532dd8 Add a debug flag bit for a new driver. 2000-10-18 08:39:24 +00:00