mrg
143fa94c3a
clean up some debug messages a little bit.
2009-11-27 22:31:29 +00:00
dsl
3cac425251
Add patch from PR/11805
2009-11-27 20:56:28 +00:00
skrll
4efbdd1e91
Fix DEBUG build. Hi rmind.
2009-11-27 20:32:10 +00:00
dsl
80ca15a6f8
Fix compressed server accesses.
...
According to http://cvs.savannah.gnu.org/viewvc/ccvs/src/?root=cvs
this was broken between revs 1.29 and 1.32 for a perion of 4 months
about 4 years ago.
Not sure at all why/how we have the broken version.
Our old code, the latest gnu code and this fix all differ slightly,
but have the same effect.
2009-11-27 18:38:29 +00:00
pooka
2a0ed023df
Remove no longer necessary vfs weak symbols.
2009-11-27 17:55:04 +00:00
pooka
ee0457e379
include subr_kobj_vfs
2009-11-27 17:54:24 +00:00
pooka
bbc50ef41d
Due to the schizophrenic nature of kobj (mem + vfs source),
...
split the module in twain to subj_kobj.c (master + mem) and
subr_kobj_vfs.c (vfs).
2009-11-27 17:54:11 +00:00
pooka
fa4af70183
g/c unused protos
2009-11-27 16:46:06 +00:00
pooka
8102fe7341
Move rootfs-related init from init_main() to vfs_mountroot().
...
Reduces code re-written in rump.
2009-11-27 16:43:51 +00:00
pooka
0ff76018d0
Yes, you need a VOP_UNLOCK() there.
2009-11-27 16:23:23 +00:00
pooka
8b53d2f9df
Fix another fine example of "if you make the kernel panic, it's
...
more secure".
2009-11-27 16:11:35 +00:00
pooka
85fb4c9d18
Don't spam if mount fails due to invalid file system.
2009-11-27 15:58:39 +00:00
tsutsui
fcf4b7e0c1
Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD.
...
It just fakes MBR partition map which contains 1MB FAT16B partition
and ~1GB OpenBSD partition, and we can always create necessary
MBR partitions for OpenFirmware by the fdisk(8) command itself.
2009-11-27 15:37:32 +00:00
skrll
b6dacdb22f
Fix typo and hopefully the dependency problem that manifests itself with
...
compile problems around lang_insert_orphan.
2009-11-27 14:39:39 +00:00
pooka
972900e4ca
Move -mcmodel=kernel CFLAGS from bsd.klinks.mk to amd64/include/Makefile.inc
...
to avoid having the kernel toolchain flags split over a billion different
files.
2009-11-27 13:50:29 +00:00
pooka
ebb48144a9
Now that Makefile.rump was changed and everything gets built in
...
update builds too, flip the allocator define to prefer the kernel
pool/kmem instead of malloc(3). Use malloc(3) only if
RUMP_USE_UNREAL_ALLOCATORS is defined.
2009-11-27 13:45:15 +00:00
pooka
67cd12f07f
Include arch/include/Makefile.inc for some compiler flags.
2009-11-27 13:36:30 +00:00
pooka
8257134a74
Make this work on some m68k ports which like putting the disklabel
...
in the third sector (or have copypasted disklabel.h from a port
which likes doing that ;).
2009-11-27 13:29:33 +00:00
enami
6c42f8e95b
The expression (yyvs != 0) is always true and not a necessary test
...
in the first place since realloc(NULL, size) is equivalent to
malloc(size). Write code straightforward while i'm here.
2009-11-27 12:37:19 +00:00
njoly
6fe3678b7f
Make break(2) reject high adresses that wrap to 0 after page rounding.
2009-11-27 12:25:10 +00:00
tsutsui
b00cd20126
If CPPFLAGS or CXXFLAGS already contains -nostdinc or -nostdinc++,
...
don't add ${CPPFLAGS_ISYSTEM} or ${CPPFLAGS_ISYSTEMXX} to refer
${DESTDIR}/usr/include or ${DESTDIR}/usr/include/g++.
This change might cause errors on some MD stand dir, but in that case
each Makefile should be fixed to search proper system include paths
by -Ipath option in own CPPFLAGS.
2009-11-27 11:44:36 +00:00
tsutsui
c48b085654
u_short -> uint16_t, some KNF.
2009-11-27 11:23:50 +00:00
tsutsui
5517f8a4c3
Add definitions for more reserved inodes.
2009-11-27 11:16:54 +00:00
tsutsui
b3c8be00bb
Add src/common/include to -Ipath for proplib(3) so that build works
...
even without installed DESTDIR.
2009-11-27 11:11:22 +00:00
tsutsui
efb2579c78
Move some devices where they should belong to.
2009-11-27 11:05:45 +00:00
tsutsui
48cc740097
Fix typo in comment.
2009-11-27 11:04:18 +00:00
tsutsui
49ee47d09d
Use %zu in printf format for size_t value.
2009-11-27 10:50:04 +00:00
tsutsui
4105ef4a33
Remove unnecessary and never used usr/mdec/mbr from install ramdisk.
2009-11-27 10:23:16 +00:00
mbalmer
8a44b5e050
Add support for USB HID devices that report absolute coordinates instead
...
of relative movement data, i.e. touchpanels. Please note that calibration
must be done outside the wsons(4) driver for now.
2009-11-27 08:35:05 +00:00
rmind
3f18fe8123
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
...
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
enami
72ec821622
Lookup lwp0.l_addr instead of proc0paddr to locate PCB.
2009-11-27 02:51:15 +00:00
rmind
3f09797207
Revert unrelated/unintended changes from previous commit.
...
Should fix MIPS builds (hi matt@).
2009-11-27 01:37:30 +00:00
pooka
b318442ec7
Make sure rumpfs is attached on all host platforms.
2009-11-26 21:04:42 +00:00
pooka
aee2ff8e8d
For rumpfs, do mountroot instead of the bunch of homegrown hacks
...
currently there. Still needs a little massage to get the kernel
interfaces right and avoid copypaste especially from main().
Also, move it a bit more into the direction of a real file system
(finally!) by giving it a vfsops. Most ops are still unimplemented,
though.
2009-11-26 20:58:51 +00:00
pooka
1798957738
Add DV_VIRTUAL for non-backed virtual devices and allow to mount
...
root from a DV_VIRTUAL device.
2009-11-26 20:52:19 +00:00
mrg
5dfbfd784f
report the old -> new interrupt mapping when swizzling. minor KNF.
2009-11-26 20:15:20 +00:00
phx
4848f3cb38
Cast vstart to (struct user *) when assigning it to lwp0.l_addr.
2009-11-26 18:23:48 +00:00
pooka
f631bc6ff9
remember to call pipe_init()
2009-11-26 17:36:22 +00:00
pooka
62b34668ef
Since rumpfs has supported file system sockets for quite a while
...
now, we don't need tmpfs here. But, rumpfs doesn't support regular
files, so pass a pipe descriptor instead of an open file fd.
2009-11-26 17:33:23 +00:00
pooka
9c1300e7ee
Provide some sort of cv_is_valid(). What a silly routine.
2009-11-26 17:29:34 +00:00
pooka
fea060dfd3
include sys_pipe.c
2009-11-26 17:24:52 +00:00
pooka
7bcd019a9d
regen for rump_sys_pipe()
2009-11-26 17:24:36 +00:00
pooka
baffc0cbae
typo in comment (it actually breaks the script totally. i wish
...
more typos in comments were as effective)
2009-11-26 17:23:48 +00:00
pooka
91ac00ac3a
pipe +RUMP
2009-11-26 17:20:20 +00:00
pooka
67ff6315cd
Add rump support for the special handling required by pipe(2).
2009-11-26 17:19:54 +00:00
pooka
c845b495c5
regen: retval -> retval[2]
2009-11-26 16:38:01 +00:00
pooka
a91020162b
Instead of a single register_t as the retval of rump syscalls,
...
use an array of two. No functional change ... yet.
2009-11-26 16:34:24 +00:00
pooka
08d70f0c3f
include prerequisite headers
2009-11-26 16:18:37 +00:00
pooka
32e96a0e50
* load symbols only up to actual size of symbol table instead of size
...
we allocated for storing the table
* trimm unused end off of table before passing to the kernel
2009-11-26 15:44:26 +00:00
njoly
85cadc2388
Cleanup interrupt establish error messages. Do not mix
...
aprint_error/aprint_normal/printf calls for a single line.
2009-11-26 15:17:08 +00:00