Commit Graph

1067 Commits

Author SHA1 Message Date
elad 3313b745e3 allow rump to build 2009-12-25 01:56:43 +00:00
stacktic f3ec34d58f Fixed ukfs build on non-NetBSD system. 2009-12-23 17:17:59 +00:00
stacktic 5074dd48b8 Fixed build when using unreal allocators. 2009-12-23 17:16:40 +00:00
pooka e1bbdeb452 regen: INRENAME 2009-12-23 01:09:57 +00:00
pooka d18276c5b5 Fix block device open for non-REG backends. 2009-12-22 14:18:33 +00:00
pooka c5aba687b9 Create sashimi nodes too. 2009-12-22 13:34:35 +00:00
pooka a942008121 Include tty driver here for now to make this usable. Will disappear
from here later when I figure out the proper place.
(I'd commit it as a separate component, but I can't figure out how
to classify it, since it's logically none of vfs/net/dev)
2009-12-20 19:44:21 +00:00
pooka 70b07cba47 +libulpt 2009-12-20 15:43:57 +00:00
pooka fe1700b9bf Add ucom@usb support. This uses the uplcom hardware driver currently
(because that's the hardware I happen to have), but others can just
be plugged in if a need arises.
2009-12-20 15:43:13 +00:00
pooka 2960de1123 Improve bulk transfer implementation by adding more complete
support for short reads.

Ironically, in some cases this works *worse* than the previous
incorrect implementation which silently ignored short reads.
Namely, I can now probe my sd@umass USB stick only once without
having to replug it.  Some ugen "bus reset" is probably needed,
but what exactly is unknown, and manual handjobs will have to
suffice for now.
2009-12-20 15:32:46 +00:00
pooka 3a5d99a092 add comment about prospective perils to previous 2009-12-20 13:56:36 +00:00
pooka 3b2dd63c4d pthread_cond_timedwait (and therefore rumpuser_cv_timedwait) wants
an absolute time instead of a delta.  Fix bug which caused timed
tsleeps to always wake up immediately (unless the system clock was
around "0", which was not very probable ;).
2009-12-20 13:49:36 +00:00
pooka c3ed0371c2 Replace totally handwritten ioconf.c with only a semi handwritten
one, partially now generated with config(1).
2009-12-19 11:55:23 +00:00
pooka af0de61919 get rid of unnecessary headers 2009-12-19 11:48:30 +00:00
pooka 13d2acdf04 define USBVERBOSE 2009-12-19 11:48:17 +00:00
pooka b90ec0f9fd purge some stuff not used by this component anymore 2009-12-19 11:29:26 +00:00
pooka 33d0c9ec96 I got a report about this not compiling on mips64. While I could
not repeat the problem and while this should not be used at all on
mips64, the real fix is a little diablo in the details.  So hack
around it for now (yes, it results in only half of the locks being
used on 64bit platforms.  no biggie for a hack).
2009-12-18 22:37:18 +00:00
pooka e7951bb626 Add devnull.c to sources (forgot to do it yesterday).
Thanks to gson for the ping.
2009-12-17 12:49:22 +00:00
pooka f8bc172f73 * implement rump_vfs_makeonedevnode(), where the interface for creating
multiple nodes doesn't make sense: e.g. /dev/null would've had to
  be created with ("/dev/nul", 'l', 1)
* implement said /dev/null (just for show)
2009-12-17 00:29:46 +00:00
pooka 1ff647bdce update to newnewvers.sh usage 2009-12-16 21:25:55 +00:00
pooka 4304733e2c print spammy banner in spammy bootstrap 2009-12-16 20:59:04 +00:00
pooka 590ffe150c Generate vers.c and include it in the kernel component. 2009-12-16 20:57:15 +00:00
pooka bea06e393f If zeroing len == 0, return immediately.
(kmem_alloc() doesn't like being called with size == 0)
2009-12-16 16:50:49 +00:00
pooka aef2ecc09f add component for usb printers (ulpt driver) 2009-12-15 15:52:30 +00:00
pooka 5f20163f32 Support more stuff, e.g. mapping alternate interface setting to the
correct ugen ioctl.
2009-12-15 15:50:37 +00:00
matt 9ca0818a05 Make librump play with mips nicely. Define ARCH_ELFSIZE for mips to be 32.
This works for N64 kernels because objcopy them to be 32bit to the bootloaders
can handle them.
2009-12-14 21:19:23 +00:00
mrg f7f0bc40ae rename LD32DIR to MLIBDIR. 2009-12-13 08:25:20 +00:00
pooka fbc989bbef Use linker script to make __start/stop_link_set_modules be present
in libs built with binutils >=2.19.  This is a less error-prone
method than the previous where components had to be tagged in the
Makefile as modules (and if they weren't, things broke.  and vice
versa).
2009-12-12 17:10:19 +00:00
pooka eede817dfd Include component.c instead of dummy.c so that domain constructors
get properly called.
2009-12-11 16:34:50 +00:00
pooka 72a8c45e4b Since rumpfs is no longer a module, remove rump_module from the
list of sources.  This, in a rather curious twist of linker magic,
broke anything using rump file systems when librumpvfs was compiled
with LIBDPLIBS pointing to librump.

Thanks to the several people who reported the problem, and especially
Arnaud Ysmal for noticing the paramount symptom that components
compiled in src/lib did not work while ones compiled in sys/rump/librump
did work.
2009-12-09 15:38:07 +00:00
haad 303ed12957 Add RUMP_SYS_OPEN define to replace open calls with their RUMP version. 2009-12-09 00:23:28 +00:00
pooka 7f79b0fadd Get rid of useless stubs. 2009-12-09 00:11:21 +00:00
stacktic 4d23b928bc Whitespace. 2009-12-08 08:18:24 +00:00
stacktic f3098800b6 Fixed build without module bootstrap 2009-12-08 08:12:49 +00:00
pooka 32a3b13698 add comment 2009-12-07 17:38:16 +00:00
pooka 09aa8689fb Cast Oh Kath Ra once every second. 2009-12-05 22:44:08 +00:00
pooka 22d9f346a1 Remove now-empty rump_sleepers_init() 2009-12-05 13:01:31 +00:00
pooka 630dc3f64a KERNEL_UNLOCK_LAST in non-mpsafe kthread exit. 2009-12-05 12:54:11 +00:00
haad 1d798011f9 Add initial version of RUMP based device-mapper port. libdm compile whole
device-mapper driver in userspace and allows us to test a develop new dm targets
in userspace.
2009-12-04 22:13:59 +00:00
pooka 56d171a5c4 g/c unused functions (previously used by the vnode pager). 2009-12-04 17:57:16 +00:00
pooka 23a5898cdd Attach uhub@uhub (in addition to uhub@roothub, which was already there). 2009-12-04 17:37:05 +00:00
pooka c2e2c94461 Implement enough of uvm_mmap() to make the creative proplib ioctl
copyout code work.  No comments ... okok, if that'll make you leave
me alone: it's ioctl, so it's supposed to be funky (with a score
or two of psychedelic rock).
2009-12-04 17:15:47 +00:00
pooka 04ec7e76db Provide the default_mapaddr method in default rump emul (since some
kernel callers want to use it).
2009-12-04 16:47:33 +00:00
tron cccb4464c8 Make sure "error" gets initialised. 2009-12-03 15:28:49 +00:00
pooka 1c32fa54df one more path adjustment for rump_vfs_makedevnodes() change 2009-12-03 15:07:09 +00:00
pooka 0cadacacab * create /dev on the rump rootfs automatically
* make rump_vfs_makedevnodes() take a full basepath instead of hardcoding
  an assumption that the device node is created in /dev
  + the caller is responsible that the directory the nodes are being
    created in exists
2009-12-03 15:06:04 +00:00
pooka 89d988455a Do bounds-checking before adding host offset. Otherwise the host
offset would be counted in with "size" and incorrect operation
would ensue.
2009-12-03 14:05:46 +00:00
pooka 2ce80d0210 Remove last remnants of the long-ago-properly-fixed RUMP_LMUTEX_MAGIC hack. 2009-12-03 13:12:16 +00:00
pooka 4535fac711 Make sure node lengths match in addition to strncmp().
(I thought i fixed this already once?)
2009-12-03 12:54:30 +00:00
pooka f703feb95e Call spec_init() to avoid device open lossage. 2009-12-03 12:52:42 +00:00