Commit Graph

22664 Commits

Author SHA1 Message Date
tegge
eb76b5ea48 Eliminate some bitrot (nonexisting member variable names).
Don't use curproc when a proc pointer is available.
2000-10-24 23:33:01 +00:00
tegge
e22e759f6f Style fixes. 2000-10-24 22:40:18 +00:00
wpaul
aba642d961 Convert the USB ethernet drivers to use mutexes. Also convert
usb_ethersubr.c. This module maintains two queues for packets which
are each protected with one mutex. These are all the changes I can
do for now. Removing the USBD_NO_TSLEEP flag doesn't work yet: when
I tried it, the system would usually freeze up after a NIC had been
operating for a while. The usb_ethersubr module itself ought to
go away; this is the next thing I need to test.
2000-10-24 22:38:54 +00:00
tegge
a75932293a Make RPC timeout message more readable.
Supply proc pointer to sosend.
2000-10-24 22:37:55 +00:00
dfr
11c5efcde9 * Various fixes to breakage introduced by the atomic and mutex reorgs.
* Fixes to the signal delivery code. Not quite right yet.

I would have preferred to wait until I have signal delivery actually
working but the current kernel in CVS doesn't build.
2000-10-24 19:54:38 +00:00
julian
7e01249585 Since neither archie nor I work at Whistle any more, change our email
addresses to be the more usefu @freebsd.org ones
so we can keep getting bug-reports.
- man pages to follow..
2000-10-24 17:32:45 +00:00
sos
283943941f Fix the problem with DMA mode not working on Aladdin chips.
Amasing in how many ways Acer has screwed up that chip.
2000-10-24 13:50:22 +00:00
obrien
535eb47841 Adjust comments
Submitted by:	bde

Add ISO C99's long long type limits.
Reviewed by:	bde
2000-10-24 10:49:56 +00:00
obrien
b1c82066dd * Update comments
* convert decimal constants to hex
Submitted by:	bde

* Add ISO-C99 long long limits
2000-10-24 10:48:50 +00:00
dwmalone
604e688433 Problem to avoid processes getting stuck in "vmopar". From Ian's
mail:

	The problem seems to originate with NFS's postop_attr
	information that is returned with a read or write RPC.
	Within a vm_fault context, the code cannot deal with
	vnode_pager_setsize() shrinking a vnode.

	The workaround in the patch below stops the nfsm_postop_attr()
	macro from ever shrinking a vnode. If the new size in the
	postop_attr information is smaller, then it just sets the
	nfsnode n_attrstamp to 0 to stop the wrong size getting
	used in the future. This change only affects postop_attr
	attributes; the nfsm_loadattr() macro works as normal.

	The change is implemented by adding a new argument to
	nfs_loadattrcache() called 'dontshrink'. When this is
	non-zero, nfs_loadattrcache() will never reduce the
	vnode/nfsnode size; instead it zeros n_attrstamp.

There remain other was processes can get stuck in vmopar.

Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by:	dillon
Tested by:	Vadim Belman <voland@lflat.org>
2000-10-24 10:13:36 +00:00
babkin
181e55c216 Added the CAM-ified wds driver for the ancient WD7000 SCSI card.
Last time it was present in FreeBSD 3.x, before CAM.

Reviewed by:	gibbs
Approved by:	gibbs
2000-10-24 03:44:31 +00:00
babkin
15eb041cb4 Added lines for the wds driver.
Approved by:	gibbs
2000-10-24 03:38:28 +00:00
jhb
8e917a73ea Don't dink with interrupts in vm_page_zero_idle(). This code assumed it
was being called with interrupts disabled, when it was actually being called
with them enabled.

Pointed out by:	tegge
2000-10-23 23:32:36 +00:00
mjacob
28046d02ab CURTHD now defines in globals.h 2000-10-23 18:39:30 +00:00
mjacob
d7e1064cb6 Move bogus proc reference stuff into <machine/globals.h>. There is no
more include file including <sys/proc.h>, but there still is this wonky
and (causes warnings on i386) reference in globals.h.

CURTHD is now defined in <machine/globals.h> as well. The correct thing
to do is provide a platform function for this.
2000-10-23 18:36:03 +00:00
mjacob
e001484933 Put back inclusion of proc.h so that alpha kernels (at the very least)
will compile again. I can't quite see where this was a recursive inclusion.
We probably need to do something to fix the alpha, but let's not break it
in the interim- it's broken enough.
2000-10-23 15:34:44 +00:00
non
f467d17e2a Add PC-Card/ISA SCSI host adpater drivers from NetBSD/pc98
(a NetBSD port for NEC PC-98x1 machines). They are ncv for NCR 53C500,
nsp for Workbit Ninja SCSI-3, and stg for TMC 18C30 and 18C50.

I thank NetBSD/pc98 and bsd-nomads people.

Obtained from:	NetBSD/pc98
2000-10-23 12:55:51 +00:00
phk
94b0862455 Generate LOTS of warnings to remind the SMPng crew to fix the curproc
UP/SMP issue.
2000-10-23 09:22:18 +00:00
phk
c6979cb775 Do not recursively include <sys/proc.h> 2000-10-23 09:14:20 +00:00
obrien
3442ab179c Apply style(9). [best I could] 2000-10-23 08:46:25 +00:00
obrien
508ea78bf3 Apply style(9).
(best I could)
2000-10-23 08:36:59 +00:00
phk
b648a6f5df Get rid of the last traces of ACTUALLY_LKM_NOT_KERNEL 2000-10-23 08:35:41 +00:00
obrien
0e820d6be8 Sort the #define's. 2000-10-23 08:29:04 +00:00
obrien
ed6c5eae68 Minimal set of diffs from the i386 bits to the AlphaLinux. 2000-10-23 08:15:58 +00:00
obrien
7e4a890930 Re-order the #define's into a more logical one. 2000-10-23 08:13:19 +00:00
itojun
0b7223cb28 be careful on mbuf overrun on ctlinput.
short icmp6 packet may be able to panic the kernel.
sync with kame.
2000-10-23 07:11:01 +00:00
itojun
00f627fe96 kame 1.32 -> 1.33
in add_m6fc(), set interface list for all cases.
in response to a report from Hoerdt Mickael.

kame 1.31 -> 1.32
discard PIM register if the version of the inner packet is incorrect (i.e. IPv6)
(according to clarfication of recent discussion in the IETF pim ML)
2000-10-23 07:07:33 +00:00
obrien
a683df4891 We need to explicitly tell the args struct for COMPAT functions we use
that use the same args struct as their non-COMPAT counter parts.
2000-10-23 02:20:01 +00:00
obrien
addaf21e5e Somehow I left out sycall #98 2000-10-22 21:47:07 +00:00
obrien
947a094612 Minor whitespace cleanup. 2000-10-22 21:42:03 +00:00
obrien
8acb3d7a12 Minimal set of diffs from the i386 bits to the AlphaLinux.
Submitted by:	gallatin (content, minimization by me)
2000-10-22 21:36:27 +00:00
phk
448ff6e567 Don't bogusly include <struct.h>
Bogusly define our own versions of strbase() and fldoff() until we
have sorted out where they live in the kernel.
2000-10-22 19:43:01 +00:00
phk
e48eef18f5 Don't rely on <sys/queue.h> to bogusly include <struct.h>.
Bogusly include <struct.h> until we have a better place to get
fldoff() from.
2000-10-22 19:39:17 +00:00
nyan
e5bb6df427 Moved prototypes of isa_alloc_resourcev() and isa_load_resourcev() to
isa/isavar.h, and added needed includes.
2000-10-22 16:48:08 +00:00
bp
e7c0d40264 Rev 1.41 was committed from wrong diff, now do it right. 2000-10-22 16:15:12 +00:00
phk
dec28dea4d Make LINT compile again. 2000-10-22 16:09:12 +00:00
bp
d3507fbe83 Release and unlock vnode if resource deadlock detected. 2000-10-22 15:40:22 +00:00
bp
1840436251 Update stale comment.
PR:		kern/21805
2000-10-22 14:24:30 +00:00
bp
ae7a56b0bf Remove de_lock field from denode structure and make msdosfs PDIRUNLOCK aware. 2000-10-22 14:22:17 +00:00
sos
fd2d82a6b1 Clean up the raid code a bit, also allow disks on HPT controllers to
be swapped around and still be put in the correct order in a raid.
2000-10-22 12:17:57 +00:00
sos
596fb1d81d Fix warning in the ISA only case. 2000-10-22 12:17:38 +00:00
sos
57e22ac98f Get the prober error code instead of relying on scp->error to contain
the lastest greatest.
2000-10-22 12:16:51 +00:00
sos
5ee1b4dbb2 Up the reset pulse to 100ms in ata_reset, some drives especially
DVD drives need this to reset proberly.

Remove some verboseness..
2000-10-22 12:16:00 +00:00
scottl
80bf139704 First attempt at timeouts for bio commands sent to the controller. No retry is
attempted right now; the failure is merely passed up.  This may help with the
mysterious lockups seen by some with Pablano controllers.
2000-10-22 09:21:19 +00:00
imp
58dbf3b8df Make usual 1-line cardbus support modification.
I'm committing this over an Intel PRO-100 CardBus II card.
2000-10-22 06:41:46 +00:00
imp
2a2d2cee67 Cleanup the rman_make_alignment_flags function to be much clearer and shorter
than the prior version.
2000-10-22 04:48:11 +00:00
imp
63aa08dd3a o Remove lots of kludges with iospace and irq.
o Make sure that I/O space is aligned properly based on the length of the
  resource we're allocating.
o Add bootverbose message when we fail.
2000-10-22 04:46:56 +00:00
imp
959285ef14 Cleanup allocation of resources for 16-bits. We now do the right
thing in pccbb bridge (the pcic bridge will be updated as I merge the
two copies of the code that were in the original cardbus commit).
2000-10-22 04:37:57 +00:00
nyan
89f2a8f4c5 if_ed_cbus.c is required from PC-98 only, and if_ed_isa.c is not necessary
for PC-98.
2000-10-21 02:44:11 +00:00
nyan
52b8fdee1a Add '-DPC98' to CFLAGS if MACHINE == pc98. 2000-10-21 02:37:17 +00:00