Commit Graph

204200 Commits

Author SHA1 Message Date
dyoung
97579f7a66 Add sources for ixgbe(4), a Intel 82599 10-gigabit ethernet driver
ported from FreeBSD.
2011-08-12 21:55:28 +00:00
apb
ae48e7a592 Add sigevent(3) to SEE ALSO 2011-08-12 21:18:51 +00:00
hannken
94fc281af2 Change some #ifdef DIAGNOSTIC' to KASSERT'.
Instead of a `pid_t' use a `lwp_t *' for locking diagnostics.

No functional changes intended.
2011-08-12 17:41:17 +00:00
dyoung
bf2a34aeb3 Make amigappc compile again by adding barebones definitions of some of
the bus_dma(9) types.
2011-08-12 17:40:49 +00:00
matt
0435f73056 Fix bug when only restoring r31 (lr was not being restored properly). 2011-08-12 14:48:00 +00:00
hannken
b8e5efdc84 Add missing parts to mount devices from a union file system:
- union_close()    has to lock/unlock the lower vnode.
- union_fsync()    has to call spec_fsync() for the union vnode.
- union_strategy() must allow writes to devices on the lower file system.
- union_bwrite()   was completely missing.
2011-08-12 14:36:29 +00:00
jmcneill
ce6e29d2a8 add a simple disk driver, pass the path to the disk image on the kernel command line:
soundwave$ ./netbsd /tmp/test.fs
NetBSD/usermode startup
[...]
ld0 at mainbus0: /tmp/test.fs (33554432)
ld0: 32768 KB, 8322 cyl, 64 head, 63 sec, 1 bytes/sect x 33554432 sectors
boot device: ld0
root on ld0a dumps on ld0b
2011-08-12 12:59:13 +00:00
jmcneill
cd366a78be implement reboot using execv 2011-08-12 11:37:04 +00:00
jmcneill
b7021257a8 Make GENERIC32 build on amd64 2011-08-12 11:22:11 +00:00
jdc
1a41a28bff Use aprint_normal(). From apb@. 2011-08-12 08:47:05 +00:00
jdc
4e9cb6cc2b Set the destination UPAID when establishing the interrupt mapping.
From eeh@.
2011-08-12 08:24:01 +00:00
jdc
e5b24af9a0 Add missing new line to zs_attach_fhc() 2011-08-12 08:22:39 +00:00
mbalmer
8cd3e6b404 note gpio(4), gpiosim(4) changes 2011-08-12 08:16:17 +00:00
mbalmer
c9922bae5e use my NetBSD email address 2011-08-12 08:06:23 +00:00
mbalmer
badcc9683d Make some functions static, use getprogname() instead of
'extern char *__progname'.
2011-08-12 08:02:33 +00:00
mbalmer
b50c50a270 gpio(4) and gpiosim(4) can now be built and used as modules. While here,
make some functions static.
2011-08-12 08:00:52 +00:00
mrg
d2a9bbef6e add auacer, present on the ultra45. 2011-08-12 06:55:45 +00:00
mrg
ed7e2948e6 initailise ih_pending and ih_ivec. 2011-08-12 06:41:50 +00:00
mrg
83575145e3 initialise ih_pending 2011-08-12 06:41:15 +00:00
hannken
7b19d6d068 When creating a union node representing a device initialize
the spec_node to make vrele() happy.
2011-08-12 06:40:10 +00:00
mrg
e55924b74e initialise ih_pending. 2011-08-12 06:38:35 +00:00
mrg
10a9f07370 - make a bunch of functions static
- set nmapmask to 1 before prom_getprop(), so we don't trigger an ENOMEM
- initialise ih_pending
2011-08-12 06:38:18 +00:00
mrg
ef9525b770 add a DPRINTF() and use it a little.
if DIAGNOSTIC, whine if ih_pending or ih_pil aren't setup.  may as
well try to finish converting all the callers this decade...
2011-08-12 06:34:56 +00:00
mrg
7b201b729f convert some open-coded SPDB_PROBE printf calls to use DPRINTF() macro. 2011-08-12 06:04:41 +00:00
tteras
cd00f2949d Have privilege separation child process exit if the parent exits. 2011-08-12 05:21:50 +00:00
mrg
99172b0754 use device_private() to find the matching pyro leaf, now that pyro
has been device_t-ified.
2011-08-12 05:00:29 +00:00
riastradh
772f45cfc9 Cache vattr in psshfs's setattr.
This means within the cache window, a setattr that wouldn't change the
remote file's attributes from our current view of them will not be
relayed to the server and wait for the server to answer.  Thus, e.g., a
process with a periodic timer interrupt that calls open(2) in a loop
can make progress with much higher probability than without caching.

XXX The test case doesn't work, so it's currently disabled.  It needs
to stop the child of sshd that is handling an sftp session, not sshd
itself, and it's not obvious how to do that.

ok pooka
2011-08-12 04:14:00 +00:00
riastradh
c0f2eaa637 Need root for /dev/power. 2011-08-12 03:59:44 +00:00
riastradh
ebb828104e i386 and amd64 are on GCC 4.5 too now. 2011-08-12 03:26:51 +00:00
mrg
63f361426a print the ihandle passed in, not NULL. 2011-08-12 01:22:37 +00:00
jmcneill
26740a1a14 Clean up extern mess by adding an API for kernel components to call libc
functions. thunk.c is built with special cflags that makes it compile
against standard system headers instead of kernel ones.
2011-08-12 00:57:23 +00:00
joerg
6791cf96d2 Various warning adjustments for clang 2011-08-11 23:15:35 +00:00
jmcneill
21f7e025b7 initialize lwp0 l_addr so we can switch back to it 2011-08-11 23:04:43 +00:00
apb
7535058544 Allow "echo -n" to work as expected in rc.d scripts that are executed
by /etc/rc.  Similarly for printf with a format that does not end with
"\n".  Previously, the partial line would not be visible on the console
until a newline was printed, possibly after an annoying delay.

This is done by adding echo() and printf() shell functions to rc.subr,
so that naive use of the echo and printf commands in rc.d scripts will
call these functions instead of the underlying commands.  These shell
functions send a new "nop" metadata message after the partial line, and
the rc_postprocess function in /etc/rc disentangles the partial line of
plain output from the metadata "nop".

Also add a "-n" option to the print_rc_normal function in rc.subr,
and make some cosmetic changes.
2011-08-11 22:52:46 +00:00
jmcneill
a74059550d Instead of trying to override vers.o target, set NVFLAGS=-n 2011-08-11 22:38:25 +00:00
jmcneill
747111eaaf let md makefile add newvers.sh flags by setting NVFLAGS 2011-08-11 22:37:57 +00:00
jmcneill
cd4fe87b42 get this linking and running (sorta) again:
soundwave$ ./netbsd
NetBSD/usermode startup
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.55 (GENERIC) #10: Thu Aug 11 14:24:03 EDT 2011
        jmcneill@soundwave:/home/jmcneill/branches/HEAD/src/sys/arch/usermode/compile/GENERIC
total memory = 128 MB
avail memory = 124 MB
mainbus0 (root)
cpu0 at mainbus0
clock0 at mainbus0
ttycons0 at mainbus0: console
panic: setcontext failed: 14
rebooting...
Abort (core dumped)
2011-08-11 22:30:41 +00:00
jmcneill
3987d9df98 pmap_memory isn't a static array anymore so sizeof doesn't work on it 2011-08-11 22:26:18 +00:00
jmcneill
e7968ac3c4 add libcompat.o/.po targets for COMPAT_AS=obj 2011-08-11 21:23:09 +00:00
phx
9117e0918e Add viaide for Iomega Storcenter, although a VT6410 driver still needs to
be written.
2011-08-11 20:56:34 +00:00
cherry
5d5c189898 Unbreak the build. (conflicting types in function declaration and definition)
Thanks riz@
2011-08-11 20:33:20 +00:00
cherry
5e67834ba7 make ddb minimally MP aware 2011-08-11 19:52:52 +00:00
cherry
bc1cccc8d3 unbreak the build. #include <sys/cpu.h> 2011-08-11 18:36:13 +00:00
cherry
3c3a6a3a8e Hide the MD details of specific IPIs behind semantically pleasing functions. This cleans up a couple of #ifdef XEN/#endif pairs 2011-08-11 18:11:17 +00:00
cherry
fce2071912 More appropriate use of xen_send_ipi(). 2011-08-11 18:05:11 +00:00
cherry
3ccb0add41 Make event/interrupt handling MP aware 2011-08-11 17:58:59 +00:00
bouyer
2145e1ef4d Regen: add SiS 315 Pro VGA 2011-08-11 17:14:42 +00:00
bouyer
7c8596a4c1 Add SiS 315 Pro VGA 2011-08-11 17:14:12 +00:00
mbalmer
2533c9c8ac pwdog is not mi, but it only in the lists we build it for. 2011-08-11 12:03:58 +00:00
mbalmer
1d8ccccd63 pwdog is not for all platforms, build only on i386, x86_64, and sparc64 2011-08-11 12:03:06 +00:00