Commit Graph

204966 Commits

Author SHA1 Message Date
msaitoh
2245ac22ea Change Intel 0x1229 product name from 82557 to 8255x 2011-09-05 04:31:43 +00:00
lukem
30781daf0c Reduce priority of syslog message if getpeername returns ENOTCONN.
PR bin/18934 by Greg A. Woods (with supplied fix).
2011-09-04 23:16:41 +00:00
christos
4a0c950526 don't delete signal from the debugger. 2011-09-04 23:03:00 +00:00
christos
45bb3a7d65 remove 3 empty directories 2011-09-04 21:28:02 +00:00
christos
eef9d69994 Remove code that was used to avoid register spills. setcontext(2) can change
the registers, so re-fetching will produce the wrong result for trace_exit().
2011-09-04 21:14:49 +00:00
jmcneill
d273afafbe implement splraise/spllower 2011-09-04 21:08:18 +00:00
jmcneill
6dad45362c if pmap_page_activate fails, print the returned and expected addresses 2011-09-04 21:04:42 +00:00
reinoud
64c01c6f26 pcb->errno to pcb->pcb_errno 2011-09-04 21:01:39 +00:00
joerg
6d5539de9c static + __dead 2011-09-04 20:55:43 +00:00
reinoud
7f2a13e6cc Try to preserve errno over traps and on context switches 2011-09-04 20:54:52 +00:00
reinoud
dd08aea25e Rename err to nerrno 2011-09-04 20:49:59 +00:00
reinoud
e0a62f0bed Implement thunk_seterrno() 2011-09-04 20:46:58 +00:00
joerg
08af8338c6 Sprinkle one more static and a bunch of consts. 2011-09-04 20:35:07 +00:00
joerg
81249d1a2f static + __dead 2011-09-04 20:31:00 +00:00
joerg
4e46e5935f ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
joerg
924863260a static + __dead 2011-09-04 20:28:59 +00:00
joerg
cb377560e8 ANSIfy + static + __dead 2011-09-04 20:28:09 +00:00
joerg
d6555585cf static + __dead 2011-09-04 20:27:05 +00:00
joerg
8f81f2eef9 Use static, change deep if / else if / ... chains to switch(), apply
__dead, ANSIfy.
2011-09-04 20:26:17 +00:00
joerg
60dc5170cc static + __dead 2011-09-04 20:24:59 +00:00
reinoud
07ff92e4ee -thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void *func, void *arg)
2011-09-04 20:15:57 +00:00
reinoud
ed71469833 Space around | (style) 2011-09-04 20:14:37 +00:00
jmcneill
e656d3b0f6 PR# kern/45021: Please support /emul/linux/proc/version
Add /proc/version for procfs with -o linux. The version reported depends
on the emulation type of the calling process:

$ cat /proc/version
NetBSD version 5.99.55 (netbsd@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) NetBSD 5.99.55 (GENERIC) #39: Sun Sep  4 09:10:05 EDT 2011

$ /emul/linux/bin/cat /proc/version
Linux version 2.6.18 (linux@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

$ /emul/linux32/bin/cat /proc/version
Linux version 2.6.18 (linux32@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010
2011-09-04 17:32:10 +00:00
christos
1a6f6eba38 adjust sets for new zoneinfo code 2011-09-04 16:09:18 +00:00
sborrill
31a08a90c4 Don't attach GPIO framework if NGPIO = 0 2011-09-04 15:05:26 +00:00
christos
040ffb7f4c forgot to change one usage call. 2011-09-04 13:25:22 +00:00
christos
04056fb8c6 Split sigget into sigget() and siggetinfo(). When a signal comes from the
debugger (l->l_sigpendset == NULL), using siggetinfo() try to fetch the
siginfo information from l->l_sigpend and then from p->p_sigpend if it
was not found. This allows us to pass siginfo information for traps from
the debugger.
2011-09-04 13:09:12 +00:00
jmcneill
a02f89094f getlabelusesmbr: initialize 'oldlenp' parameter to sysctlbyname 2011-09-04 12:34:49 +00:00
mbalmer
17fe830303 Disable gpio(4) which can now be built and used as modules. 2011-09-04 12:31:30 +00:00
jmcneill
c72d2332bb mem_access_handler: panic if we receive sigsegv or sigbus with SI_NOINFO,
and when "peeing outside the box" print the offending va
2011-09-04 12:17:59 +00:00
nakayama
24fe5dfcb8 Preset ih_pil. 2011-09-04 12:17:46 +00:00
nakayama
b68a419a7b ih_pil is an interrupt level, not an interrupt mask. 2011-09-04 12:17:13 +00:00
christos
566e51b79b mention new tzcode and tzdata 2011-09-04 10:23:06 +00:00
christos
2b7d74c779 merge changes. 2011-09-04 10:20:49 +00:00
christos
203a890ae9 Notable changes: Russia is now in perpetual summer. 2011-09-04 10:15:47 +00:00
taca
513f3ddf51 Update current version of BIND and tz. 2011-09-04 10:15:01 +00:00
christos
a61b0b2ed7 bring in the 2011i changes. 2011-09-04 10:10:26 +00:00
christos
a263e66646 Protect new functions with #ifndef __LIBC12_SOURCE__ so that they are not
visibile in the libc12 compat environment.
2011-09-04 10:02:33 +00:00
jmcneill
7052ba021e Now that pr45327 is fixed, remove BROKEN_SIGINFO code. 2011-09-03 20:02:34 +00:00
christos
6f879bd995 PR/45327: Jared McNeill: ptrace: siginfo doesn't work with traced processes
When saving the signal in p->p_xstat, clear it from the pending mask, but
don't remove it from the siginfo queue, so that next time the debugger
delivers it, the original information is found.
When posting a signal from the debugger l->l_sigpendset is not set, so we
use the process pending signal and add it back to the process pending set.
2011-09-03 19:33:40 +00:00
jmcneill
4810597f31 add a workaround for kern/45327 2011-09-03 19:07:32 +00:00
jmcneill
7c4e700db7 unbreak build on netbsd 2011-09-03 19:06:48 +00:00
jmcneill
4f4fa401d9 Let NetBSD/usermode build & link on a Linux host:
- Need to add options CPU_HOST=i386 or CPU_HOST=amd64 for membar & atomic_ops
 - Don't use MAP_* and PROT_* with thunk API since the kernel and host
   might not be the same; add THUNK_MAP_* and THUNK_PROT_* and translate them
 - Add thunk_posix_memalign
 - allocate mem_uvm with thunk_posix_memalign instead of thunk_malloc
 - Fix thunk_mmap callers to always pass either THUNK_MAP_PRIVATE or
   THUNK_MAP_SHARED
 - mkstemp on Linux requires exactly 6 "X" characters at the end of the
   template string, so add an X
2011-09-03 18:42:13 +00:00
mlelstv
c2041d07f2 Regenerate for Kingston DT101 G2 2011-09-03 16:21:18 +00:00
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
christos
44f7f983f5 - minor KNF
- for system processes (0, 1) where fd_lastfile == -1, fail early.
- instead of printing the pcb connection address, print the pathname if
  possible for unix domain sockets.
2011-09-03 13:24:19 +00:00