Commit Graph

81362 Commits

Author SHA1 Message Date
yamt 67c564ace6 sa_upcall_userret: yield cpu on stack starvation so that it's
killable at least.  PR/28612 from ITOH Yasufumi.
2006-05-25 14:13:29 +00:00
blymn 1e545a5a2b Include kauth header for function prototypes
Whitespace cleanup.
2006-05-25 11:24:00 +00:00
blymn 3018e35533 Add kauth header for function prototypes
Whitespace clean up.
2006-05-25 11:23:11 +00:00
gdamore 60a298a64e Rename flash to athflash to reflect MD nature. Approved by simon@ and dyoung@ 2006-05-25 06:37:47 +00:00
gdamore fef1104692 Rename MD flash to athflash to avoid confusion. This only renames the major
number.  The driver itself still needs to be done as well. :-)
2006-05-25 06:29:21 +00:00
gdamore 473eede9de Add flash device support. 2006-05-25 03:19:43 +00:00
gdamore 0a959690d5 Add RBLE bit to flash enable. 2006-05-25 03:17:36 +00:00
gdamore 1f55482fd5 Add major number for flash device. 2006-05-25 03:16:29 +00:00
garbled c9e13db63a Implement partial support for the RS6K PCI Bridge found on 7025-F40
models.  This code was made possible by assistance from Cory Bajus.

Add code that asks the PCI bridge what it's config base address is, and
use that when wiring up an indirect bridge type.
Move prep's user segment register to 10, because the 7025's PCI config
address is at 11, where the user segment used to be.
Add a battable entry for 0xbf800000 for machines with RS6K bridges.

There is still probably work left to be done before a 7025-F40 is fully
supported.
2006-05-25 02:11:13 +00:00
wrstuden d6dd729f42 Add $NetBSD: ids, which work better than $netbsd: ones. 2006-05-25 01:37:08 +00:00
wrstuden b949192d0f Style changes from simonb at wasabisystems dot com:
Use config_stdsubmatch() instead of our own submatch function.
  Use "__inline" in header files and "inline" in .c files.
  Make some local function static.
2006-05-25 00:21:45 +00:00
wrstuden a4dd1e2635 3ware 9000 driver, contributed by Wasabi Systems and written
by Jordan Rhody (based on the FreeBSD driver).

Contributed in NetBSD PR 33364.
2006-05-24 23:44:28 +00:00
yamt a53726f2a7 kauth_cred_uucmp: fix inversed return code. PR/33546 from Juan RP. 2006-05-24 23:00:49 +00:00
mrg dca7185f31 rename the local 'devsw' to of_devsw - devsw is already defined in libsa
as an 'extern' but this one is static.
2006-05-24 21:24:25 +00:00
mrg 27fdcc3d32 'volatile' is not a valid return type qualifier - remove it. 2006-05-24 21:22:36 +00:00
perseant 402f3abc7a Read the inode version number fro a more reliable source, quelling a
diagnostic assertion panic.
2006-05-24 21:08:00 +00:00
garbled 1f280c6eaf Add a small convenience function 2006-05-24 16:10:18 +00:00
liamjfoy d8d9494bf9 Add a check for our own advertisements. This is due to non-simplex
interfaces which received the packets they have just sent.

From: OpenBSD (rev. 1.124)
ok: christos@
2006-05-24 13:39:37 +00:00
peter a3fa0e8e3f Initialize h4 and h6 to NULL.
Fixes a panic reported by Mipam on -current-users.
2006-05-23 22:24:32 +00:00
bouyer b06932d37f Add a network backend driver for Xen3. This will appear as a xvif pseudo
device in kernel config files.
2006-05-23 21:10:42 +00:00
bouyer a4fe55530f Don't forget to softintr_disestablish() when destroying a xvif. 2006-05-23 21:09:37 +00:00
bouyer 237137c875 Add needed framework for backend drivers.
As we want some control on the name the backend driver will have we
can't use autoconf(9) here. Instead backend drivers registers to
xenbus, which will call a create callback when a new device is there.
Backend devices won't have a "struct device" in xenbus, use a void pointer
instead.
2006-05-23 21:07:56 +00:00
gdamore 86b54ed307 Increase size of embedded symbol table. 2006-05-23 20:28:05 +00:00
rpaulo ff3f0e34cc In ip6_savecontrol(), ignore IPv4 packets.
From JINMEI Tatuya (KAME). Should fix PR 33269.
2006-05-23 14:20:56 +00:00
pavel 8f6c91f9fd Enable the gsip driver. Worked when I (lightly) tested it.
No objections on port-sgipips@.
2006-05-23 08:18:35 +00:00
uwe 828f707790 Add more "static" so that only j6x0tp_ca (and j6x0tp_debug) are visible. 2006-05-23 01:34:49 +00:00
yamt be46b8e46c KNF. wrap a long line. 2006-05-23 00:43:30 +00:00
uwe 497c1ccc27 Provide __movmem* aliases to __movstr* functions.
Gcc4 uses movmem, older versions use movstr.
2006-05-22 21:34:08 +00:00
rpaulo 46ecc3073d First round at adapting to our net80211 stack. Unfinished work, but at least
won't make the machine panic.
2006-05-22 21:01:15 +00:00
uwe 9001bc2fd8 G/c #ifdef PIC we inherited from the userland. 2006-05-22 20:56:44 +00:00
uwe 24172f6f4d #include <dev/wscons/wsksymvar.h> as gcc4 doesn't like arrays,
pckbd_keydesctab[] in this case, with incomplete element types (older
versions of gcc allow them as long as you don't try to access them).
2006-05-22 20:40:07 +00:00
drochner 2f959928c8 make sure bswap64() returns an uint64_t, not an unsigned long long,
which is incompatible for gcc4 on alpha at least
2006-05-22 16:28:27 +00:00
yamt 7445825948 i386 and xen: move struct user to the highest address in uarea
and reduce UPAGES from 4 to 3 in the case of !NOREDZONE.
2006-05-22 13:44:53 +00:00
yamt 1075c99d89 introduce macros, UAREA_TO_USER and USER_TO_UAREA,
to convert uarea VA into a pointer to struct user and vice versa,
so that MD code can change the layout in uarea.
2006-05-22 13:43:54 +00:00
yamt b43dc97b09 use consistent order of function specifiers and type specifiers.
(int inline -> inline int)
2006-05-22 12:42:01 +00:00
mrg d6b63d330d use "j" instead of "ll" for intmax_t and friends.
XXX: we should probably use "j" for all(?) other platforms as well
(just for intmax_t and friends.)
2006-05-22 07:38:41 +00:00
mrg 13f78de634 add NULLFS and re(4) (both tested.) 2006-05-22 07:20:18 +00:00
christos 770d099190 add void casts. 2006-05-22 00:09:34 +00:00
christos 35c4405d50 void casts. 2006-05-22 00:09:08 +00:00
christos fe6055587f void casts to functions whose return values are ignored. 2006-05-21 23:56:09 +00:00
christos b0eb4bc8ee Remove packed attributes gcc-4 dislikes. 2006-05-21 23:55:22 +00:00
uwe 943edbd0d8 Nuke va-sh.h. stdarg.h and varargs.h now use __builtin_va_*. 2006-05-21 23:14:13 +00:00
cube d897e3cfdb Include <sys/kauth.h> because it's needed. 2006-05-21 22:51:27 +00:00
uwe 9458b164a6 New stdarg.h and varargs.h based on arm and i386 versions.
Use __builtin_va_* instead of hand written code in va-sh.h that uses
LHS casts.  Slightly worse code is generated by gcc 3.3.3, but LHS
casts are outlawed in gcc 3.3.6 and gcc 4.

Build-tested on hpcsh (le) and mmeye (be), run-tested on hpcsh.
2006-05-21 22:39:04 +00:00
cube 5536c0b46c Fix tyop reported by Yoshito Komatsu. 2006-05-21 11:39:27 +00:00
christos c03d07d01d Put the __insn_barrier() inside the spinloop for the DIAGNOSTIC case, so
that we have a barrier for the DIAGNOSTIC case too.
2006-05-21 06:17:12 +00:00
christos ce07c2d219 it is attributes no attribute 2006-05-21 05:49:54 +00:00
christos 2bea415e72 remove gcc4 stuff since it is done in bsd.kmod.mk 2006-05-21 05:43:49 +00:00
christos c52ff7f9d5 Fixes from David Boggs; in his words:
/sys/net/if_spppvar.h says:

	"Lower layer drivers that are always ready to communicate
	(like hardware HDLC) can shortcut pp_up from pp_tls,
	and pp_down from pp_tlf."

	When I follow those instructions, I get a kernel stack
	overflow as soon as I open the HDLC device.

	Here is the loop:
	 sppp_ioctl calls sppp_lcp_open
	 sppp_lcp_open calls sppp_open_event
	 sppp_open_event calls sppp_lcp_tls
	 sppp_lcp_tls calls pp_tls
	 pp_tls is the SHORTCUT to sppp_lcp_up
	 sppp_lcp_up calls spp_lcp_open
	 ...and around we go until the stack overflows.

	The fix is to reverse the order of the action (tls)
	and the state change (from INITIAL to STARTING) in
	sppp_open_event.

	There is a similar loop during closing:
	 sppp_ioctl calls sppp_lcp_close
	 sppp_lcp_close calls sppp_close_event
	 spp_close_event calls sppp_lcp_tlf
	 sppp_lcp_tlf calls pp_tlf
	 pp_tlf is the SHORTCUT to sppp_lcp_down
	 sppp_lcp_down calls sppp_lcp_close
	 ...and around we go until the stack overflows.

	The fix is to reverse the order of the action (tlf)
	and the state change (from STARTING to INITIAL) in
	sppp_close_event.

	Separately, while I was discovering this, I noticed
	that pp_tlf was being called unconditionally rather
	than first checking to see if it is NULL.  pp_tlf
	is a callout from sppp to the hdlc device driver.
	Elsewhere in sppp, this is always checked for NULL
	before calling it, and the comments in if_spppvar.h
	imply that filling it in is optional.

	From spppvar.h:
	"These functions need to be filled in by the lower layer
	(hardware) drivers if they request notification from the
	PPP layer whether the link is actually required."
	This clearly says that pp_tlf and pp_tls are optional
	and so sppp must check before calling them.
2006-05-21 05:09:13 +00:00
christos a4d71852e0 Put back -Wno-attribute for now since not all archs have been fixed. 2006-05-21 04:53:23 +00:00