mlelstv
d22ddeb9cf
Correct vendor code for Kingston DT101 G2
2011-09-03 16:19:47 +00:00
reinoud
a8da4706c3
Add SIGILL handler, doing nothing than printing out details.
...
Move the address check to be done later so pmap and uvm have their go first.
Also some minor cosmetic fixes
2011-09-03 15:33:56 +00:00
jmcneill
2882839936
Get this compiling (but not quite linking yet) on Linux
2011-09-03 15:00:27 +00:00
jmcneill
24f1db749c
Instead of doing #include </usr/include/machine/..>, use the headers
...
that ship with the kernel sources as #include "../../$host/include/$hdr",
and auto-generate these ugly headers with a script.
2011-09-03 14:23:49 +00:00
christos
349878874a
Make sure that we initialize all accounting bytes.
2011-09-03 14:09:03 +00:00
jmcneill
66713f4d80
if emulating the syscall, toggle insyscall as the child won't get stopped a
...
second time
2011-09-03 12:48:22 +00:00
jmcneill
18816ee03c
move call of urkelvisor_init to main instead of pmap_bootstrap
2011-09-03 12:33:02 +00:00
jmcneill
67559f643e
Add usermode kernel supervisor, can be disabled with 'no options URKELVISOR'
2011-09-03 12:28:45 +00:00
reinoud
aae37cebb5
Oops forgot to commit this one
2011-09-03 12:25:31 +00:00
christos
a315582ad2
We need to process SA_STOP signals immediately, and not deliver them to
...
the process. Instead of re-structuring the code to do that, call issignal()
like before in that case. (tail -F /file^Zfg should not get interrupted).
2011-09-03 10:28:33 +00:00
asau
69257e1644
Add quirks for Kingston DT 101 to stop them giving HBA errors.
2011-09-03 01:56:44 +00:00
asau
cc3f43f54e
Regenerate for Kingston Data Travel 101.
2011-09-03 01:53:01 +00:00
asau
9017cee0d4
Add two Kingston Data Travel 101 models.
2011-09-03 01:51:20 +00:00
macallan
2627ab06e7
add stvii driver for gdium's onboard microcontroller
...
while there add comments on new(ly added) drivers
2011-09-02 22:42:27 +00:00
dyoung
78b0e18345
Report vmem(9) errors out-of-band so that we can use vmem(9) to manage
...
ranges that include the least and the greatest vmem_addr_t. Update
vmem(9) uses throughout the kernel. Slightly expand on the tests in
subr_vmem.c, which still pass. I've been running a kernel with this
patch without any trouble.
2011-09-02 22:25:08 +00:00
macallan
effe3b0975
add new voyager driver, follow related changes from LOONGSON
...
now this builds again
thanks he for noticing
2011-09-02 22:19:35 +00:00
dyoung
8fc5e34825
Add a target, subr_vmem, for building the vmem(9) test program.
2011-09-02 22:15:16 +00:00
dyoung
2a6ff6d60a
In the tags target, move x86 sources above xen includes, for more
...
helpful tags.
2011-09-02 22:12:48 +00:00
christos
72a34c792c
Add support for PTRACE_FORK.
...
- add a field in struct proc to save the forker/forkee pid, and a flag.
- add 3 new ptrace calls: PT_GET_PROCESS_STATE, PT_GET_EVENT_MASK,
PT_SET_EVENT_MASK
Add a PT_STRINGS constant so that we don't hard-code the list of ptrace
subcalls in other programs (kdump).
2011-09-02 20:10:19 +00:00
christos
179ba60291
add support for PRACE_FORK.
2011-09-02 20:07:41 +00:00
christos
b4ab627dec
Add support for PTRACE_FORK. NB: This does not (yet) work for vfork(), because:
...
1. When we vfork() PL_PPWAIT is set, and that makes us do regular disposition
of the TRAP signal, and not indirect through the debugger.
2. The parent needs to keep running, so that the debugger can release it.
Unfortunately, with vfork() we cannot release the parent because it will
eventually core-dump since the parent and the child cannot run on the
same address space.
2011-09-02 20:06:29 +00:00
christos
bac4b71fcb
If the process is traced, resulting from a PTRACE_FORK inherited setting,
...
stop it right now.
XXX[1]: Cannot make this MI, because I cannot wrap child_return because there
is MD code that checks fun == child_return. I think it is better to have an
mi child_return() and add a cpu_child_return()?
XXX[2]: Why do we need to stop so early? Perhaps stopping just after exec
is better?
2011-09-02 20:01:20 +00:00
reinoud
be0dfa85ba
Revert
2011-09-02 16:09:01 +00:00
reinoud
8cbecef186
Update trapframe and add system call switchframe
2011-09-02 14:56:48 +00:00
reinoud
5eb75d88b2
-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
...
+thunk_makecontext_1(ucontext_t *ucp, void (*func)(void), void *arg)
Create a more general prototype for makecontext() with one variable.
2011-09-02 14:55:22 +00:00
reinoud
66b43637c5
Add note on how to posibly create a signal and send it to a userland program
2011-09-02 14:54:41 +00:00
he
5f00afcf47
Bump SYMTAB_SPACE so that it fits again.
2011-09-02 11:50:29 +00:00
christos
f05fc604ec
trylockowner is not needed anymore.
2011-09-02 10:18:38 +00:00
reinoud
9e716faec6
Disable the debug_fh code for now
2011-09-02 10:11:43 +00:00
mbalmer
44d0145a0a
Make sure error is not used unitialized when sc->sc_attach_busy is 0.
2011-09-02 06:50:20 +00:00
msaitoh
c67bb3dce4
Add support for some fxp devices from FreeBSD and OpenBSD.
...
{Free,Open}BSD say that we have to do some work to make fxp
stable.
2011-09-02 03:16:18 +00:00
msaitoh
0488e3f6ff
regen.
2011-09-02 03:10:37 +00:00
msaitoh
5662272cdd
Add some fxp devices.
2011-09-02 03:09:48 +00:00
jym
b0471da334
Make strnlen(3) accessible in kernel. ok christos@.
2011-09-01 22:35:17 +00:00
christos
158bd4bab3
fix the build for rumpserver.
2011-09-01 21:09:07 +00:00
matt
f68e927f9b
Allocate a color compatible VA for the page we are entering.
2011-09-01 18:33:11 +00:00
matt
39830f9f2f
Allocate a color compatible page to the VA we are going to use.
2011-09-01 18:29:29 +00:00
matt
da98893a6f
Print syscall name on syscall exit (when using SYSCALL_DEBUG).
...
XXX this should use kernhist.
2011-09-01 18:25:44 +00:00
matt
dfe7b794ce
Always make sure that kte_entry is aligned appropriately so register_t can
...
be stored there. (not really a problem right now since time_t is now 64bit
bit and it just works but it's better to be explicit).
2011-09-01 18:24:19 +00:00
reinoud
0e730cfa32
Use a alternative dedicated signal stack for the sigsegv errors; the userland
...
stack like that of ld.elf_so can be too short to allow for such deep
stacktraces.
2011-09-01 18:20:20 +00:00
reinoud
922d253ed2
Implement thunk_sigaltstack() so an alternative signal stack can be used
2011-09-01 18:19:00 +00:00
matt
2c6de4b409
Use the new UVM_KMF_COLORMATCH flag to get a congruent mappings of the user
...
buffer so we can use unmanaged mappings (pmap_kenter_pa/pmap_kremove).
2011-09-01 16:55:08 +00:00
reinoud
217e28ce9c
Oops used the wrong page flag for referenced and modified check
2011-09-01 16:23:55 +00:00
yamt
acf0c89366
redo vfs_lookup.c rev.1.126.
...
when crossing a mount point, don't keep the parent vnode locked.
ie. don't lock a vnode while holding another vnode which belongs to a
different filesystem. otherwise we propagate slowness (or deadness) of a
filesystem to another via vnode lock chain.
2011-09-01 15:31:27 +00:00
reinoud
ea45349705
Hack register setup for __i386__. This now seems to start up the code a lot
...
further.
2011-09-01 15:15:06 +00:00
reinoud
d69647f4d4
Prevent thunk_mmap() to mmap a page outside the box; just as a precaution.
2011-09-01 15:13:33 +00:00
christos
05ec717ee7
Add bus_dma overrides. From dyoung
2011-09-01 15:10:31 +00:00
reinoud
fc8de2b005
Enhance debugging capabilities of NetBSD/usermode by allowing `trap.c' to
...
write a system image of the memory it traps. Its extremely dirty but at least
you can look at the data and code thats giving the trouble. Its memory or
state is NOT saved in the coredump of the NetBSD/usermode program.
2011-09-01 15:03:41 +00:00
jakllsch
c41a9ea5e1
It seems mvsata_bio_ready() is actually needed, and it seems
...
to work better if we always poll for completion for the
duration of this function.
2011-09-01 14:55:58 +00:00
jakllsch
883c2687f6
We occasionally will try to set up the multicast filter in a context that
...
kmem(9) is unusable (such as transmit timeout). Thus, put the filter table
on the stack instead, all 528 bytes of it.
2011-09-01 14:46:23 +00:00