Commit Graph

190241 Commits

Author SHA1 Message Date
jruoho
a87d51e681 Fix typo in XXX-comment. 2010-04-28 07:56:54 +00:00
jruoho
2da6d4a4d9 Only put the actual header for the .In line. 2010-04-28 07:47:09 +00:00
jruoho
494f19760f Reference ffs32(3). Also note POSIX compliance and the movement of the
header from <string.h> to <strings.h>.
2010-04-28 07:44:04 +00:00
pooka
c1cd247fa4 Make initial devsw a little more believable. Especially adjust
max_sys_devsw, since it was previously a bit too much, given that
the correct value is 0.
2010-04-28 07:42:55 +00:00
jruoho
53a157cb98 Document ffs32(), ffs64(), fls32(), and fls64() from <sys/bitops.h>. 2010-04-28 07:35:30 +00:00
plunky
366a13e705 additionally query the "PnP Information" service record to discover
any USB Forum vendor-id and product-id values and store them in the
property list if found.
2010-04-28 06:18:07 +00:00
plunky
0f7dbb350e allow for vendor-id and product-id properties, passing them
through to child devices
2010-04-28 06:13:51 +00:00
skrll
0b415f4e44 KNF 2010-04-28 06:06:11 +00:00
skrll
da760fe7ae Use DEV_MEM instead of magic constant. 2010-04-28 06:02:20 +00:00
pooka
1456f9b65f Make number of virtual CPUs match number of host CPUs on NetBSD/x86 hosts. 2010-04-28 00:43:16 +00:00
pooka
52e4f6355a Limit virtual CPUs to MAXCPUS for now. 2010-04-28 00:42:16 +00:00
pooka
f2e68164ab set first attached cpu as primary 2010-04-28 00:34:25 +00:00
pooka
db171f695e Add rumpuser interface to fetch number of host cpus. 2010-04-28 00:33:45 +00:00
pooka
a801fd0fcf Fix snafu which caused the clock to travel lightspeed. 2010-04-28 00:32:30 +00:00
dyoung
84db22a2e0 Make pci_conf_read(9) and pci_conf_write(9) re-entrant so that the
kernel can use them in an NMI trap handler.  Only one CPU can be
in _read() or _write() at once.  However, on any single CPU, more
than one thread of execution (LWP, interrupt handler, trap handler)
may be in _read() or _write() at once, because each thread saves
and restores the PCI configuration-access state.
2010-04-27 23:33:14 +00:00
pooka
651a6f7848 Fix multiple virtual cpu support.
... or at least on x86.  CPU_INFO_FOREACH() still isn't MI, and I
don't want to support 2^n different versions.
2010-04-27 23:30:29 +00:00
dyoung
c23dc9c098 For clarity of scsidevdetached(), rename some variables: sc ->
self, dev -> child, ssc -> sc.
2010-04-27 18:55:12 +00:00
dyoung
082ca23a21 For a couple of flags, use bool/true/false instead of int/1/0. 2010-04-27 18:52:45 +00:00
dyoung
df960cbef5 #include <machine/cpuvar.h> for CPU feature definitions. 2010-04-27 18:41:52 +00:00
drochner
fe64100e9e -Fix an old bug in the "pollard" code: it gets its argument passed
by reference, and changes the value behind the pointer under some
 circumstances (basically if it finds more than 2 different factors).
 It also calls itself if it finds a factor which is not considered prime
 (by openssl's miller-rabin check) and uses the call argument afterwards.
 This doesn't work -- we need to copy the argument into its own storage.
-Modify the code to do the "rho" algorithm as was initially announced.
 It takes somewhat longer in rare cases, but still works in cases where
 the "p-1" algorithm is unusable. This might fix PR misc/43192
 by Luiz Henrique de Figueiredo.
-Add some optional debug support, minor cleanup.
2010-04-27 18:11:19 +00:00
jruoho
fca63cde02 Note POSIX compliance. 2010-04-27 15:26:59 +00:00
jruoho
4efab6a05e Use .In for includes and .Va when listing the structure members. 2010-04-27 15:16:28 +00:00
lukem
68a8806fb6 Add usr/libdata/debug entries for shared libraries on i386 with Xorg 2010-04-27 14:33:19 +00:00
lukem
0aad54fe04 Support MKDEBUG for shared libraries. 2010-04-27 14:32:14 +00:00
jruoho
5430c65883 .Pp after .Ed. 2010-04-27 14:26:52 +00:00
pooka
7c5b388514 Fix off-by-atleast-1 error.
Note: etfs doesn't work if rumpfs is not mounted as root.  Given
that rumpfs_mount always return EOPNOTSUPP (except for mountroot),
this is not a pressible tragedy currently, but nevertheless
could/should be fixed in the future.
2010-04-27 13:26:12 +00:00
pooka
5ddf0d5711 regen: rump_enosys -> sys_nomodule for modular system calls 2010-04-27 10:58:55 +00:00
pooka
6ec71a1c75 Use sys_nomodule for modular rump system calls so that they can be
autoloaded.
2010-04-27 10:57:46 +00:00
jruoho
20524a61c1 Include the new prototype for acpi_enter_sleep_state(). 2010-04-27 08:37:07 +00:00
jruoho
cd8924253f Make acpi_enter_sleep_state() not to return. No one cared what it returned. 2010-04-27 08:36:06 +00:00
jruoho
e7c1114893 Be consistent with the returned exception codes. Check for NULL pointers. 2010-04-27 08:15:07 +00:00
jruoho
f04ee53053 Use ACPICA's standard notify values from <actypes.h> and move the
device-specific notify constants to the device-specific files.
2010-04-27 05:57:43 +00:00
lukem
a6b1868168 usr/libdata/debug directories for X11R7 2010-04-27 05:34:15 +00:00
jruoho
d5124a1812 Clean up <dev/acpi/acpireg.h>. While documenting the control methods is an
admirable goal, it is pretty much mission impossible; the specifications are
nearly thousand pages each and the amount of methods is counted in hundreds.

In addition, use ACPICA's native constants from <actypes.h> when possible.
Also move ACPI_STA_OK from "mpacpi.c" to <dev/acpi/acpireg.h> to simplify
the evaluation of device status.
2010-04-27 05:34:14 +00:00
kiyohara
cdc281e1d1 Use OHARE_NIRQ instead of NIRQ.
NIRQ defined in powerpc/intr.h sinse 'Support 64-bit imask for powerpc/pic.'
2010-04-27 05:27:59 +00:00
dyoung
064e864242 Describe in a comment what the emit_dist_file target is for.
Under some circumstances, ${TOOL_CAT} may refer to an executable
that does not exist.  As a stopgap fix, use cat(1) instead of
${TOOL_CAT} in emit_dist_file.
2010-04-27 03:01:25 +00:00
lukem
cea1219aca add usr/libdata/debug/usr/lib and usr/libdata/debug/usr/lib/i18n 2010-04-27 02:51:04 +00:00
pooka
964d1b0189 Apparently exec.h is needed at least for i386/xen. 2010-04-27 00:38:42 +00:00
pooka
c4e2577190 Undo infamous "mad \"scientist\"" experiment. There is no need
for complicated application frobbing to get a kernel module loaded
into rump -- it will be loaded from the host automatically now.
2010-04-26 23:47:25 +00:00
pooka
717accdd51 Register module_base as an etfs recursive subdirectory. This means
that rump will autoload kernel modules from the host
/stand/arch/vers/modules directory.
2010-04-26 23:43:36 +00:00
pooka
3ff8b6d009 Add directory support to etfs: host directories and their contents
will be mapped to rumpfs based on the given key.  The directory
can be mapped either for a single level or recursively down the
entire subtree.
2010-04-26 23:40:22 +00:00
pooka
c3d573c022 Allow everyone in the kernel to see module_base. 2010-04-26 23:18:51 +00:00
pooka
b468e56e8c Implement kobj_renamespace() for rump. Support for a few archs is
missing, but that doesn't really matter, since they are living in
their own "everything is a macro" happyland and don't support the
native kernel ABI anyway.
2010-04-26 23:17:13 +00:00
pooka
560d308a49 Give a cpp hint if the native kernel abi is supported. 2010-04-26 23:01:53 +00:00
pooka
da792af712 Add an optional hook for adjusting module string table after load.
Currently to be used for rump "SAOS" namespace trick.
2010-04-26 22:58:53 +00:00
pooka
445cf1a49a Change machine from "rump" to MACHINE so that module_base goes
right.

Now, any guesses on how many archs this seemingly trivial change
will break the principal metric, i.e. The Build(tm)?  Keep the bets
coming in.
2010-04-26 20:10:23 +00:00
rmind
3144d8ae3f Revert rev1.6, it shall return ETIMEDOUT for pthread calls. 2010-04-26 16:26:11 +00:00
skrll
3a97a3e13a Provide hppa_cpu_hastlbu_p 2010-04-26 15:25:24 +00:00
skrll
e8fbf7d64d SANITY output tweak. 2010-04-26 15:22:38 +00:00
tsutsui
9ce7892d8f lwp_uc_pool has been replaced with kmem(9)
so also replace <sys/pool.h> with <sys/kmem.h>.
2010-04-26 15:07:01 +00:00