Commit Graph

91301 Commits

Author SHA1 Message Date
garbled
e7da798e38 Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
2007-12-20 22:59:59 +00:00
phx
d2a9b2ff83 VT8231 IDE workaround for native mode with "compatibility" interrupts 14/15.
This time done right by calling pciide_machdep_compat_intr_establish() to
get a MD interrupt handler.
Verified that it compiles for XEN again.
2007-12-20 22:24:40 +00:00
dsl
0acba075bd Kill syscall fancy.
Optimise matching native code.
2007-12-20 22:16:50 +00:00
ad
8134491688 Use new style memory barriers. 2007-12-20 21:09:00 +00:00
dyoung
6f3852fab4 Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
2007-12-20 21:08:17 +00:00
dyoung
d0630858ad Add IEEE80211_NODE_UNLOCK() to match the IEEE80211_NODE_LOCK() . 2007-12-20 20:56:18 +00:00
dyoung
9f5c1f09f7 Use LIST_FOREACH(). 2007-12-20 20:48:24 +00:00
dyoung
396e67c2e6 Add definitions for several more registers on the AMD Elan SC520
System Controller.
2007-12-20 20:44:58 +00:00
martin
7080c9db1e A few missing ifdefs to make non-INET6 kernels build again. 2007-12-20 20:24:49 +00:00
skrll
f4ce2b2831 Fix typo that broke bt /a with curlwp 2007-12-20 20:24:47 +00:00
pooka
ce8249d73f Don't allocate DEV_BSIZE from the stack, use kmem instead. 2007-12-20 20:12:01 +00:00
ad
4f4f294aa3 Decode cmpxchg8b correctly. 2007-12-20 19:53:47 +00:00
dyoung
72fa642a86 Poison struct route->ro_rt uses in the kernel by changing the name
to _ro_rt.  Use rtcache_getrt() to access a route cache's struct
rtentry *.

Introduce struct ifnet->if_dl that always points at the interface
identifier/link-layer address.  Make code that treated the first
ifaddr on struct ifnet->if_addrlist as the interface address use
if_dl, instead.

Remove stale debugging code from net/route.c.  Move the rtflush()
code into rtcache_clear() and delete rtflush().  Delete rtalloc(),
because nothing uses it any more.

Make ND6_HINT an inline, lowercase subroutine, nd6_hint.

I've done my best to convert IP Filter, the ISO stack, and the
AppleTalk stack to rtcache_getrt().  They compile, but I have not
tested them.  I have given the changes to PF, GRE, IPv4 and IPv6
stacks a lot of exercise.
2007-12-20 19:53:29 +00:00
dyoung
241d11997f Remove shutdown hooks. Use KASSERT(). 2007-12-20 18:47:23 +00:00
dyoung
f2a1e06d0a Use __arraycount(). 2007-12-20 18:45:32 +00:00
dyoung
a31aaaf8bb Use LIST_FOREACH(). 2007-12-20 18:13:26 +00:00
dyoung
c669c33b43 Move more code in gre_clone_destroy() under splnet() protection,
in order to protect against gre_input() on a destroyed gre.
2007-12-20 18:12:11 +00:00
garbled
39fda4680b add verbose flag to usage statement. 2007-12-20 18:00:18 +00:00
garbled
690f8887fc Port over the code from rs6000/stand/mkbootimage. Now the unified
mkbootimage can build both prep and rs6000 images.
2007-12-20 17:58:49 +00:00
dyoung
a3f7b0e7a0 Constify. 2007-12-20 16:19:38 +00:00
dyoung
c9b4d7e0b1 Call genfs_node_init a little earlier to avoid a vput()ing an
uninitialized node, later, which leads to a kernel panic.  Patch
by Antti Kantee.
2007-12-20 16:18:57 +00:00
skrll
f63ceafc74 typo in comment. 2007-12-20 08:11:31 +00:00
ad
163e94a67e 64-bit atomic ops for i386. 2007-12-20 01:27:24 +00:00
joerg
bc8d3e534e It seems like ACPICA can't deal with GPEs being handled before the GPE
handler is called, so clear the GPE bit in the callout as well.
This fixes the EC issues on T42 models.
2007-12-19 20:48:56 +00:00
dsl
d975bc8ffa Remove all the __P 2007-12-19 20:31:35 +00:00
garbled
f97bd8894f bring over bootrec.h from rs6000/stand/mkbootimage 2007-12-19 19:50:14 +00:00
garbled
a3af60a95e s/prep_magic.h/magic.h/ 2007-12-19 19:47:08 +00:00
garbled
4fcef35aac Add rs6000 stuff in here now. 2007-12-19 19:46:31 +00:00
garbled
ec9be1a886 Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
2007-12-19 19:45:32 +00:00
garbled
2f6e46a275 Change the prep bootloader to reach over into the
powerpc/stand/mkbootimage directory for the magic.h file.
2007-12-19 18:28:50 +00:00
riz
0673bc57e4 Add disk-info properties to vnd(4), for use by userland tools
such as gpt(8).
2007-12-18 23:22:18 +00:00
garbled
4849f95d59 First crack at a new unified mkbootimage for powerpc. Still some work
left to do here, so the build isn't enabled yet.
2007-12-18 18:26:36 +00:00
garbled
67049908f4 Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
2007-12-18 18:19:07 +00:00
joerg
0adaef6553 Restore suspend handler. Put the disc into standby on suspend and for
powerdown, but not for normal halt or reboot or panic. Fixes PR 37508.
2007-12-18 15:30:40 +00:00
martin
3abe4cb17d Remove *64 versions identical to their 32 bit version and aliased differently
now.
2007-12-18 11:05:53 +00:00
joerg
870cffb0ab Add new IPI for saving CPU state explicitly, share high-level part of
ACPI wakeup code and teach it how to start the APs again. As a side
effect the CPU_START interface allows choosing between different
bootstrap codes more easily now.
2007-12-18 07:17:08 +00:00
oster
257eb7f26a Fix a 'use after free' issue with wedges and RAIDframe.
Problem reported and fix tested by Jeff Rizzo (Thanks!).
2007-12-18 01:09:46 +00:00
dsl
5c3e6d0c07 Regen for 'const' killing. 2007-12-17 22:05:41 +00:00
dsl
06bce1608a Remove all the 'const', they end up applying to the structure members
themselves, not where the 32bit pointers reference.
2007-12-17 22:04:32 +00:00
phx
86c26b70d7 xen did no longer build.
Temporarily reverted to 1.47. Will need some time to find a good solution.
2007-12-17 22:01:12 +00:00
dsl
4f69eadcae svr4_32_sys_creat64() and svr4_32_sys_creat() are equivalent, as are
open64 and open, so just have one set of entry points.
2007-12-17 21:58:34 +00:00
dsl
36fb6d9db7 Revert previous. 2007-12-17 21:48:23 +00:00
dsl
a098759aae creat64 and open64 just called the creat/open function.
Change to do it here.
2007-12-17 21:39:17 +00:00
dsl
686e359d32 Regen without any 'const' members of the syscall argument structures. 2007-12-17 20:47:31 +00:00
dsl
bf434e38c7 Remove all the 'const'. Although the fields might be 32bit pointers to
constant data, the 'const' applies to the field itself - which is stupid.
2007-12-17 20:45:29 +00:00
garbled
d8e4680b19 Fix a mistake in boot.c Forgot to remove reference to residual.h and add
reference to iplcb.h
2007-12-17 19:54:32 +00:00
christos
6d8587f061 from jmcneill: suspend and resume handlers for spic. 2007-12-17 19:51:09 +00:00
garbled
d1d2109e89 Add some files that got missed in the initial import of port-rs6000. 2007-12-17 19:11:58 +00:00
garbled
68fe5b6f0a Import the rs6000 port into the tree.
This port of NetBSD is intended to run on MCA-based IBM RS/6000
machines.  The port so far has only been tested on a 7006-41T, which is a
601-based RS/6000.  The port also contains a limited set of code for the
7012-3XX machines, but support for those is a long way off still.

The port builds and generates a working kernel, however, it still lacks
bus_dma code for the MCA bus, so at present, only the com ports work,
though any other device (such as the printer/keyboard) located on the
ioplanar could probably be made to work.  Work will continue on this port
as I iron out the DMA code.

This port was made possible by a generous gonation of hardware by Kevin
Bowling, who also provided much of the documentation for the port.
2007-12-17 19:09:01 +00:00
njoly
c7d62a5250 Fix linux32_sys_wait4 by doing its own jobw instead off calling
linux_sys_wait4. It worked except when child resources were requested,
because 32/64 bits struct rusage differs in size ...

While here, update linux32_sys_waitpid to use linux32_sys_wait4 with a
NULL rusage.
2007-12-17 18:10:37 +00:00