Commit Graph

190495 Commits

Author SHA1 Message Date
pooka
199d07fe55 fix field initializers 2010-05-01 23:40:21 +00:00
pooka
78e2a9f5d1 Add a test/example program for using audio/pad in a rump kernel.
It stuffs some nice sounds into the virtual kernel's /dev/audio,
reads the PCM from /dev/pad, and writes the data to stdout from
where it can be piped to audioplay to test that things actually
work.

If you want to know the secret message, you'll just have to run
this program ;)
2010-05-01 23:31:01 +00:00
pooka
df12c73c8f is it absurd? is it a pain? no, it's setlistman! 2010-05-01 23:27:22 +00:00
pooka
811310d0d4 remember to add audio to the list of device components 2010-05-01 23:24:40 +00:00
pooka
3a2dd9aab6 support pad(4) 2010-05-01 23:21:24 +00:00
pooka
f60e2f41a7 add audio(4) support 2010-05-01 23:19:56 +00:00
pooka
7d2b64974c forward-declare struct uio (required by rumpvnode_if.h) 2010-05-01 23:16:31 +00:00
pooka
194e1c80bc Support interface attributes as pseudoroots. This makes things like
"pseudo-root audiobus*" possible.
2010-05-01 22:17:58 +00:00
reinoud
bb702d3252 As per change in NiLFS2 spec, select the superblocks on highest checksum
number and not on their timestamp since one of the timestamps could be wrong when the
clock was set wrong for whatever reason.
2010-05-01 21:21:27 +00:00
reinoud
ae745f2c6a Initialise error variable to zero. If all the if's fail it exists the function
sdmmc_init returning the then still uninitialised variable.

gcc can't know if one of the if's is bound to happen.

Detected with -DDEBUG -DDIAGNOSTIC -DKGDB - ...
2010-05-01 21:14:39 +00:00
christos
3f874b5444 reflect reality. 2010-05-01 19:51:33 +00:00
pooka
2bb0e81bf1 cleanup non-used code (superceded by rump_printevcnts) 2010-05-01 14:46:32 +00:00
pooka
d16346a23e If P2K_DEBUG is given, also dump rump kernel event counters when
file system is unmounted.
2010-05-01 14:44:48 +00:00
pooka
b367c26e41 Add rump_printevcnts() which dumps values from all event counters.
(NOTE! it is run unscheduled for various experimentation etcetc. reasons)
2010-05-01 14:40:36 +00:00
pooka
dd87051350 Adjust event counter names to be less redundant. 2010-05-01 14:37:53 +00:00
pooka
3b42318585 Remove "EXPERIMENTAL" from puffs + some rewording. 2010-05-01 13:07:34 +00:00
tsutsui
72cbad7b42 Remove mount_kernfs(8) and use dmesg(8) directly. 2010-05-01 12:59:26 +00:00
tsutsui
f9907fc49e Remove mount_kernfs(8) and use dmesg(8) directly. 2010-05-01 12:18:44 +00:00
tsutsui
436ddfdc83 Remove fsck_ext2fs(8) and mount_ext2fs(8).
(no file-system EXT2FS in kernels)
Add fsck_msdos(8) and newfs_msdos(8) instead for bootstrap from WinCE.
2010-05-01 12:18:02 +00:00
tsutsui
ab5207040e Remove mount_kernfs(8) and use dmesg(8) directly. 2010-05-01 12:14:11 +00:00
pooka
90512ff195 convert to ifdef USE_ATF 2010-05-01 12:11:53 +00:00
tsutsui
3445db8c2d Remove fsck_ext2fs(8) and mount_ext2fs(8).
(no file-system EXT2FS in kernels)
Add fsck_msdos(8) and newfs_msdos(8) instead for bootstrap from WinCE.
2010-05-01 12:08:58 +00:00
tsutsui
1a61dc7fca Explicitly specify "options HZ=64" in kernel config files so that
hz(9) is initialized properly in conf/param.c even before
cpu_initclocks(9) is called and timecounter(9) will take
a correct frequency for the clockinterrupt.
2010-05-01 11:35:41 +00:00
tsutsui
c9568b7a17 Enable file-system MFS. sysinst(8) assumes it's default. 2010-05-01 11:28:40 +00:00
pooka
cdf297bb01 Disable module autoload so that it won't foil our module unload test. 2010-05-01 11:20:21 +00:00
tsutsui
6dda4ee2ed Fix pasto in comment. 2010-05-01 11:13:01 +00:00
pooka
0714e24da4 fix !USE_ATF 2010-05-01 10:46:29 +00:00
pooka
eb097b1b96 Return correct value from union_islocked.
(XXX: anything asserting LK_SHARED will fail because union doesn't
support shared locks)
2010-05-01 10:44:59 +00:00
pooka
ebcc5a9913 fix !USE_ATF case 2010-05-01 10:43:31 +00:00
pooka
53d420f9a2 Now that we have a big devsw_conv0, need at least as many entries
in devsw as the highest device number in the conv table.  Do a
"good for a hundred years" guess now, fix properly later.
2010-05-01 09:00:06 +00:00
jruoho
280488d6bc Note that the return type sould arguably be intmax_t instead of long long. 2010-05-01 08:35:52 +00:00
jruoho
061351141b Remove the (incorrect) note about inconsistent return values. Name the exit
code as EXIT_FAILURE instead of integer 1.
2010-05-01 08:30:00 +00:00
jruoho
413ef23a32 Add more bugs. Namely, besides the return values that are confusing, no
function in a modern standard C library, exposed by <stdlib.h>, should be as
easy to (buffer) overflow as strsuftollx(3).

In addition, improvements to wording and markup.
2010-05-01 08:12:30 +00:00
jruoho
4519228649 Improvements to wording and markup.
In addition, list more bugs and caveats. Namely, the NetBSD implementation
(like the FreeBSD one where this was ported to) requires that the comparison
keys are allocated dynamically, and that hdestroy() will try to free(3) each
key. This obviously severely limits the portability, given that other
implementations (for example, the Linux one) make no such assumptions. Both
approaches are legitimate, and thus the real bug is in the ambiguity of the
standard.
2010-05-01 06:18:03 +00:00
uebayasi
2c8d921b3f Update uebayasi-xip's base. 2010-05-01 01:36:25 +00:00
jakllsch
de738b7431 Following precedent in the i386 GENERIC kernel and in similar amd64
kernels, comment a few *VERBOSE options that have questionable value.

In follow up to PR 38579 and PR 38581.
2010-04-30 23:55:24 +00:00
dyoung
b875f6ccc8 IPL_VM is the highest interrupt priority where alldevs is read/written,
and acquiring alldevs_mtx already blocks those interrupts, so delete the
splhigh()/splx() in config_alldevs_lock()/_unlock().

Release alldevs_mtx while freeing memory with kmem_free(9); according to
new documentation, kmem_free(9) can sleep! :-) Thanks to rmind@ for the
tip.

Next step: use finer-grained locking, probably by adding a mutex to
    cfdriver_t.

And after that: make sure that all threads of execution are out of the
    device_t and/or softc before releasing their memory.
2010-04-30 21:17:22 +00:00
hubertf
bf9fcf989a silence "boot -z" 2010-04-30 21:17:19 +00:00
pooka
99d0de7a5e Remove bpf modload code. With the current state of affairs, the
kernel module either be autoloaded from the host or the kernel
module ABI is not supported on the given arch.
2010-04-30 21:05:52 +00:00
dyoung
327fd4b29c Add an exponential back-off to the loop that tries to lock the
PCI configuration-access registers, to avoid excessive cacheline
ping-ponging.  Thanks to rmind@ for the tip.
2010-04-30 21:05:27 +00:00
pooka
66708c492e Autogenerate /dev nodes. Use (recreate) the naming policy in
MAKEDEV. -- Not the famous irrational file system devfs, but an
incredible simulation.
2010-04-30 21:02:36 +00:00
pooka
f6d46ec2d9 Include devsw_conv0 from an i386 kernel compilation (no, we don't
care about the arch as long as all the devices we care about are
present).  The file should be autogenerated, but that requires some
more changes to config(1).
2010-04-30 20:54:17 +00:00
pooka
3da3ab250b For the simple cases, augment device-major with information on how
a driver expects /dev/node -> minor mappings to go and include that
information in devsw_conv.
(no, I didn't plow through all the MD majors files)
2010-04-30 20:47:17 +00:00
pooka
a6795f6ae1 compress whitespace. no functional change. 2010-04-30 20:28:13 +00:00
pooka
9572163398 genfs_eopnotsuppify symlink, otherwise unlocky things happen! 2010-04-30 20:05:29 +00:00
njoly
ea02939c73 Add per process cache values to the total name translations count. 2010-04-30 16:21:05 +00:00
skrll
e0500f1dd9 Enable PA2.0 CPUs, elroy, astro, ssio and attachments. 2010-04-30 15:51:27 +00:00
skrll
d931234868 Note the PA of pages when allocated.
Simplify mapping of pages by traversing segs rather than the pageq and
calling VM_PAGE_TO_PHYS.

Only use PMAP_NOCACHE when hppa_cpu_hastlbu_p.
2010-04-30 15:49:40 +00:00
skrll
8155d2b816 Add two DPRINTFs 2010-04-30 15:39:02 +00:00
skrll
34eccc83de Add HPPA_FTRS_TLBU to 7100LC and 7300LC CPUs. 2010-04-30 15:36:45 +00:00