Commit Graph

188709 Commits

Author SHA1 Message Date
pooka
c2efc59235 During bootstrap, process all modinfos in a DSO in one go. Get
rid of dependency tricks, since they are no longer necessary.
2010-03-05 18:47:49 +00:00
pooka
52672c7e21 regen for rump_module interface change 2010-03-05 18:43:58 +00:00
pooka
23f0cd6bfb Use improved kernel module interfaces: instead of adding + loading
modules in bootstrap, just add them.  Load them later the same way
as the kernel does: module_init_class().

Change the signature of rump_module_init() to take a vector instead
of just one module.  All modules in a DSO should be init'd at the
same time because they might depend on each other, and code outside
the rump kernel cannot know which way.  (binary kernel modules are
still loaded with rump_sys_modctl() the usual way).
2010-03-05 18:41:46 +00:00
skrll
df22db80ba Fix console attach. 2010-03-05 18:41:29 +00:00
pooka
ee7bfacd73 Move builtin modules to a list in init and load them from there
instead of using linksets directly.  This has two implications:

1) It is now possible to "unload" a builtin module provided it is
   not busy.  This is useful e.g. to disable a kernel feature as
   an immediate workaround to a security problem.  To re-initialize
   the module, modload -f <name> is required.
2) It is possible to use builtin modules which were linked at
   runtime with an external linker (dlopen + rump).
2010-03-05 18:35:01 +00:00
phx
ca79601180 Link the kernel with -q option to be able to relocate it with the boot loader. 2010-03-05 17:58:15 +00:00
phx
723e262213 A1200 (BPPC) BAT init. 2010-03-05 17:56:46 +00:00
phx
1239b0f909 Removed useless code. 2010-03-05 17:55:42 +00:00
skrll
8c84f0bdd3 Do not match on the elroy family. From OpenBSD. 2010-03-05 17:47:09 +00:00
jruoho
eb8716a0a5 Add missing license.
ok drochner@
2010-03-05 17:04:26 +00:00
pooka
934159ae4a Reset sendsig_sigcontext_vec at fini to avoid having it point at
garbage and to allow re-init of the module (if DIAGNOSTIC).
2010-03-05 16:55:56 +00:00
agc
62ab1e4abf clean up some lint that crept in. 2010-03-05 16:30:05 +00:00
agc
b15ec256c0 Update netpgp to version 1.99.20/20100304 - portability improvements, and bug fixes:
Changes to 1.99.20/20100304

	+ move args to some functions around to be consistent
	+ use uint*_t where appropriate
	+ fix bug in verify memory
	+ add documentation to manual pages to show how to do combined
	  signing/encryption and decryption/verification
	+ make verification of ascii-armoured memory work the same as binary
	+ eliminate use of strdup(3), strcasecmp(3), and strptime(3). NetBSD/pkgsrc
	  PR 42922 applies - need to define _XOPEN_SOURCE and _BSD_SOURCE for
	  newer linux platforms with glibc 2.10.1. solved a bit differently, by
	  implementing strdup(3) and strcasecmp(3) independently, and using regexps
	  to avoid calling strptime(3).
2010-03-05 16:01:09 +00:00
jruoho
5a425210a3 Remove <dev/acpi/acpica.h> from all files. It is included from
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.

Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.

Tested with GENERIC and ALL (i386). No functional change.
2010-03-05 14:00:16 +00:00
pgoyette
e1fc7f5215 As pointed out by Rhialto, "degrees Kelvin" is redundant. So fix a
couple of comments related to converstion between Kelvin and degC.
2010-03-05 12:44:16 +00:00
pooka
0299287e5f Use 8k buffer, since 4k is too short for the default list (might
save one round of modctl()).
2010-03-05 10:27:16 +00:00
pooka
694d83c90b regen (for lfs syscalls #ifdef removal). 2010-03-05 09:00:26 +00:00
jruoho
5c49307bc7 Protect all header files against multiple inclusions. 2010-03-05 08:30:48 +00:00
lukem
e451c67901 ftp 20100305: fix http date parsing 2010-03-05 07:45:40 +00:00
lukem
3f853671ff Back to using 'RFC xxxx' instead of 'RFCxxxx' 2010-03-05 07:41:10 +00:00
tteras
e3413574b5 From Stefan Bauer: Fix multiple typoes and manpage formatting errors. 2010-03-05 06:47:58 +00:00
darran
141a7ffa73 DTrace: add a dependency on the dtrace module. 2010-03-05 02:21:41 +00:00
darran
b50656c859 DTrace: fix the curthread and mutex data types. 2010-03-05 01:53:15 +00:00
darran
dc1214bcba DTrace: Explicitly check for OS X to decide if echo needs -e. 2010-03-05 01:34:35 +00:00
dyoung
7a5d03568b Simplify this a bit (and reduce differences with if_rtw_pci.c): we
don't have to save the base address or write it to the BAR.
2010-03-05 00:54:01 +00:00
dyoung
ccf94312cd This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

Make a few changes of this kind:

-	ih = cardbus_intr_establish(cc, cf, ...);
+	ih = Cardbus_intr_establish(ct, ...);

-	cardbus_intr_disestablish(cc, cf, ih);
+	Cardbus_intr_disestablish(ct, ih);

Tested by plugging a Syba CardBus to FireWire adapter into an HP
Pavilion N3270, adding an address (169.254.0.7/16) to fwip0, attaching
and pinging a MacBook Pro.
2010-03-05 00:36:06 +00:00
jruoho
6957e12144 Remove ACPI_BUT_DEBUG by using ACPI_DEBUG_PRINT(x) instead. 2010-03-04 23:25:07 +00:00
jruoho
a087b17c08 Add missing semicolon. 2010-03-04 23:06:36 +00:00
dyoung
797e51d63e Make cosmetic changes in order to reduce differences with
sys/dev/cardbus/if_rtw_cardbus.c: remove an unnecessary #include.
Change a few cut & paste instances of ADM8211 to RTL8180.  Make the
suspend & resume functions static, add declarations for them at the top
of the file, and move the functions themselves to the bottom.
2010-03-04 22:57:37 +00:00
dyoung
5980434120 Extract both instances of the code that prints the PCI Secondary Status
Register into a subroutine.  Use terminology similar to that which
PCI System Architecture (4th Edition) uses.  For comparison with PCI
reference books, specify flags and fields with __BIT(n) and __BITS(m, n)
instead of hexadecimal constants.
2010-03-04 22:55:20 +00:00
enami
3df6d33667 Fix race condition on reallocation of huge category.
We need to remove the old region before mremap() since if it relesae the
old region, other thread may map it for the same huge category allocation
and insert it to the tree before we acquire a lock after mremap().

Fixes PR/42876.
2010-03-04 22:48:31 +00:00
dyoung
7ff20f205b This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.
2010-03-04 22:42:22 +00:00
dyoung
6cff081e8d Get rid of the #if 1 surrounding #include <dev/cardbus/rbus.h>.
This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

ath, atw, and rtw work fine after this change.
2010-03-04 22:37:38 +00:00
dyoung
9b2935788e This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.
2010-03-04 22:34:37 +00:00
dyoung
3f128f06a2 Remove unnecessary #ifdef INET-enclosed #includes.
This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.
2010-03-04 22:33:12 +00:00
jruoho
34eaaa303c Remove ACPI_BUT_DEBUG. 2010-03-04 22:30:57 +00:00
jruoho
3c39e81041 Cleanup:
* Semantics.
  * No need for <dev/acpi/acpica.h>.
  * Reduce the amount of error reporting.
  * Remove ACPI_BUT_DEBUG and ACPIBUT_F_VERBOSE.

No functional change.
2010-03-04 22:29:47 +00:00
jruoho
efbab01eef VALD_ACPI_DEBUG is dead. 2010-03-04 21:55:32 +00:00
jruoho
e6067f77dd Remove VALD_ACPI_DEBUG and AVALD_F_VERBOSE. No functional change. 2010-03-04 21:54:35 +00:00
jruoho
5c82a1d019 Enable (uncomment) ACPI_DEBUG, ACPI_DEBUG_ALLOC, and ACPI_MUTEX_DEBUG. 2010-03-04 21:47:58 +00:00
lukem
cbd600cfd6 Parse HTTP 'Date' entries in the `C' locale rather than the user's.
Fix from [bin/42917] (with minor changes), from KAMADA Ken'ichi.
2010-03-04 21:40:53 +00:00
jruoho
029e3bd476 Fix two memory leaks. 2010-03-04 20:46:18 +00:00
jruoho
03b2d90825 Fix ACPI_DEBUG build failures reported by Greg A. Woods. 2010-03-04 20:17:30 +00:00
dyoung
55ce676397 It turns out that ppb at cardbus was not even in ALL. It has probably
not been compiled in a very long time.  With some minor changes, it was
possible to make it compile:

Use kmem_zalloc()/kmem_free() instead of alloca()/memset().

Use %zu and %zx for printf'ing bus_size_t.

Delete the declaration of an unused local variable.
2010-03-04 18:49:14 +00:00
dyoung
5a5c46dece Delete unfinished and unreachable code: ppb_cardbus_setup(),
ppb_cardbus_enable(), ppb_cardbus_disable().
2010-03-04 18:31:57 +00:00
wiz
a7fdaeb822 binutils-2.20.1 out. 2010-03-04 17:57:26 +00:00
dyoung
bee77fae60 Simplify interrupt (dis)establishment by two source transformations:
-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Tested by kiyohara@.
2010-03-04 16:40:54 +00:00
tsutsui
05eb771d14 Note about proper support for NE2000 8 bit mode. 2010-03-04 15:47:12 +00:00
roy
1f27d9b179 Convert padding for unknown capabilities as well. 2010-03-04 15:35:26 +00:00
roy
6855db0f30 Convert padding and give terminfo some default assumptions about termcap. 2010-03-04 15:16:39 +00:00