186011 Commits

Author SHA1 Message Date
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
pooka
cc316928a5 add MOUNT_RUMPFS 2009-11-26 14:29:09 +00:00
pooka
07a0cd5547 add some recent activities 2009-11-26 13:26:23 +00:00
pooka
d2b375e830 Shuffle types around and add some random typecasts to make lint
and LP64 gcc sign comparison shut up.  I'm not sure what benefit
this brings apart from introducing some more bugs for everyone's
debugging pleasure.
2009-11-26 10:57:26 +00:00
pooka
2dc78d8839 Remove assym.h. It's no longer required by hppa since spcopy is
not included anymore.
2009-11-26 10:42:04 +00:00
pooka
b3d7587523 update a bit 2009-11-26 10:10:50 +00:00
pooka
300f534bd8 Build the kernel symbol table in rumpuser bootstrap and feed it to
the rump kernel.  After this change it is possible to use the
in-kernel linker and rump_sys_modctl() to load kernel modules at
runtime.

Previously loading modules at runtime was possible only through
using the host system ld.so.  Note that it is still preferred to
use shared libs when possible, since they are PIC and n virtual
kernels will only require one copy of r/o segments.  However, when
there is no access to source code, a binary kernel module is the
only thing available ...
2009-11-26 09:50:38 +00:00
pooka
4f28ef3250 regen: rump_kernelfsym_load() 2009-11-26 09:21:16 +00:00
pooka
ff492c8ebe Add rump_kernelfsym_load(), which loads the kernel symbol table. 2009-11-26 09:20:07 +00:00
pooka
7d11849a4a regen: rump_sys_modctl() 2009-11-26 09:02:38 +00:00
pooka
024c040316 modctl +RUMP 2009-11-26 09:00:45 +00:00
pooka
043ef3bc71 Use strong alias within the kernel namespace regardless of if we're
dealing with a hard or soft kernel (kernel linker doesn't support
weak symbols).
2009-11-26 07:40:34 +00:00
pooka
3c809c1925 include sys/param.h first, as is the convention 2009-11-26 07:35:39 +00:00
pooka
282ff84bcb Include kern_module_vfs and the modctl() syscall. The modctl()
syscall is here because module loading is a vfs operation.
Theoretically you shouldn't be able to have modules without vfs
support.
2009-11-26 07:30:24 +00:00
uebayasi
a8e69e8330 Don't build sh64 code even if BFD64 as suggested by uwe@ (privately). We
don't need sh64 at all.  This fixes sh3 MKCROSSGDB=yes build.
2009-11-26 06:34:22 +00:00
macallan
4016912128 cgthree works on sparc64 so let's enable it for those poor souls who can't
find at least a CG6
2009-11-26 02:03:42 +00:00
kenh
b4bb3813ef On the ARM platform, sys/param.h needs to be before sys/mutex.h, otherwise
sys/device.h will fail compilation (struct kmutex will not be defined
completely).
2009-11-26 01:23:56 +00:00
matt
c37283eb1d Back out unintended commit. 2009-11-26 01:21:50 +00:00
matt
11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
macallan
f3d037fec4 make this compile on sparc64 2009-11-25 21:10:56 +00:00
abs
2e92448c47 Fix a missed proc -> lwp change, only compiled if NWSKBD 2009-11-25 20:40:41 +00:00
tron
8fe9393167 Fix build of kernels without PCI support like "GENERIC_TINY". 2009-11-25 19:46:19 +00:00
tron
7395068839 Enable SSP (Stack Smash Protection) in x86 kernels by default (except
in i386 *TINY kernels). The NetBSD/i386 "ALL" kernel is unconditionally
compiled with SSP enabled.

Change approved by the core team.
2009-11-25 17:08:08 +00:00
pooka
9311e97e8c Don't use LDADD.progname because it duplicates all the libs. 2009-11-25 16:17:11 +00:00
njoly
a323bb797a aprintify. 2009-11-25 15:06:26 +00:00
pooka
4686e2c38a * report partition size in blocks instead of bytes
* "support" DIOCCACHESYNC.
2009-11-25 15:01:28 +00:00
pooka
64ab232858 make WAPBL_DEBUG_PRINT compile 2009-11-25 14:43:31 +00:00
rmind
9303fb5a00 Remove IPL_LPT and IPL_IPI aliases, use the actual IPLs.
Fix some broken comments.
2009-11-25 14:28:49 +00:00
cegger
6f85be6a06 By reading the ACPI dump I figured out that my
HP Pavillion dv9700 laptop features a fan sensor
in the ACPI Thermal Zone which is beyond of the ACPI
Spec.

envstat shows
[acpitz0]
  Processor Thermal Zone:     56.000   95.000                       degC
                     FAN:       2840                                 RPM

envstat -W shows the limits
[acpitz0]
  Processor Thermal Zone:     55.000                                degC
                     FAN:       2570     4500     2000               RPM

Patch presented on tech-kern@.

No comments.
2009-11-25 13:54:23 +00:00
rmind
a78f91e802 Restore exporting of lwp_getpcb() to userland and fix DDB properly.
While the header might be abstracted better, it is a separate issue.
2009-11-25 13:53:19 +00:00
rmind
fc756ae2f7 Disable kstack red-zone for now, while we decide on a nice way to fix it. 2009-11-25 13:38:38 +00:00
cegger
8ced747602 Add ACPI SLIT parser. This is part of NUMA support.
Tested on a 8-node machine.

Patch presented on tech-kern@, port-i386@ and port-amd64@.

No comments.
2009-11-25 13:21:49 +00:00