Commit Graph

48046 Commits

Author SHA1 Message Date
dogcow 5b52b73c21 add a missing close-parenthesis. (HI CEGGER!) 2008-06-18 01:10:11 +00:00
ad 75360c7716 Use UVM_OBJ_INIT/DESTROY. 2008-06-17 21:55:49 +00:00
he b612638bbf Add some missing parenthesis to restore this to a buildable state. 2008-06-17 21:08:08 +00:00
he d2ac1fe5bb Correct minor mistakes and restore this to a buildable state. 2008-06-17 21:06:57 +00:00
he 5215d37e0a Remove now unused local "unit" variable, so this builds again. 2008-06-17 19:47:49 +00:00
he f7db963671 Add a missing parenthesis so that this builds again. 2008-06-17 19:46:23 +00:00
tsutsui 3de743094e No need to terminate DMA in si_dma_poll(). 2008-06-17 18:24:21 +00:00
tsutsui 36bc2e34d4 Implement si_dma_poll() properly so that crashdump works with DMA xfer. 2008-06-17 17:31:51 +00:00
chris 464e92d443 Fix two KASSERT(value | (C1|C2)) to KASSERT(value & (C1|C2)) so that it
tests for something, rather than always being true.

Pointed out by Andy Shevchenko in:
http://mail-index.netbsd.org/port-arm/2008/06/17/msg000255.html
2008-06-17 08:04:26 +00:00
ad f9e99b470b PPWAIT is now in proc::p_lflag. 2008-06-16 12:25:54 +00:00
ad 8c49cfa7b6 Make pmap_extract() lockless. Reviewed by chs@ who reports a ~1% reduction
in system time during a kernel build on a quad core amd64 system.
2008-06-16 10:31:03 +00:00
cegger 54a1f88f19 fix typo. should compile again. 2008-06-16 08:36:51 +00:00
tsutsui a4f3c7efda Don't pass fdUnit to lookup softc of iwm. It's a parent of fd, not fd itself. 2008-06-15 10:46:14 +00:00
tsutsui 9087265ab9 Make this compile (fix an unused variable). 2008-06-15 10:29:18 +00:00
tsutsui 43a0e8e404 Unify splraiseipl(9) implementation among m68k ports as per
suggestion from isaki@ on port-m68k.

For sun68k (sun2, sun3 and sun3x):
- export ipl2psl_table[] and make it uint16_t
- make makeiplcookie(9) inline
- put PSL_S bit into ipl2psl_table[] rather than adding it in makeiplcookie(9)
2008-06-15 07:23:26 +00:00
tsutsui 7ff875bed5 Unify splraiseipl(9) implementation among m68k ports as per
suggestion from isaki@ on port-m68k.

For news68k:
- export ipl2psl_table[] and make it uint16_t
- make makeiplcookie(9) inline
- put PSL_S bit into ipl2psl_table[] rather than adding it in makeiplcookie(9)
- define both IPL_SCHED and IPL_HIGH independently to avoid confusion
2008-06-15 07:20:46 +00:00
tsutsui d8376da508 Unify splraiseipl(9) implementation among m68k ports as per
suggestion from isaki@ on port-m68k.

For hp300:
- use ipl2psl_table[] for makeiplcookie() conversion
- use uint16_t for ipl2psl_table[]
2008-06-15 07:15:30 +00:00
mjf 9cc4809adb Fix build. 2008-06-14 21:27:37 +00:00
nakayama 38d5866df2 Close unterminated comment.
Fix unexpected behavior in case of loadfpstate from unaligned buffer.
2008-06-14 19:43:55 +00:00
isaki 661719fa0e Fix compile errors. 2008-06-14 13:36:24 +00:00
mjf 174aeb1a59 Fix $NetBSD$ tag. 2008-06-14 12:05:39 +00:00
mjf 7e2a8aea3b Automatically detect the amount of installed RAM by reading the memory
bank registers from the PCI host bridge. Previously the RAM size was
hardcoded to 64MB.

Also fill out ibm82660reg.h with more definitions from the PowerPC to
PCI Bridge and Memory Controller User's Manual.

Many thanks to Tim Rightnour for helping with this patch.
2008-06-14 12:01:28 +00:00
nakayama 874a376a83 Remove declarations of unexist variables and functions. 2008-06-14 07:51:51 +00:00
cegger d0c2dda1a1 correct spelling in error message 2008-06-13 22:59:03 +00:00
christos a41d00937d pointless to compile md_root.c without md.c 2008-06-13 17:26:33 +00:00
cegger 61f21080d9 use device_lookup_private to get softc 2008-06-13 13:57:58 +00:00
rafal 3245ecab21 Let hpcarm kernels boot again after the merge of the armv6 branch. Fixes
PR port-hpcarm/38591

XXX: There is still a hard hang that I've seen on both shark and hpcarm in
the process exit path; I don't know much beyond that yet.
2008-06-13 13:24:10 +00:00
cegger 2dea63fe78 use device_lookup_private to get softc 2008-06-13 13:08:57 +00:00
cegger 17db90159e use device_lookup_private to get softc 2008-06-13 12:25:37 +00:00
cegger 27309530b4 use device_lookup_private to get softc 2008-06-13 12:08:01 +00:00
cegger 175e9cfe68 use __array_count 2008-06-13 11:57:08 +00:00
cegger 2dace40230 use device_lookup_private to get softc 2008-06-13 11:54:31 +00:00
cegger 1d9f25d95a use device_lookup_private to get softc 2008-06-13 11:36:11 +00:00
cegger c3b5ec7f50 use device_lookup_private to get softc and uncascade if blocks 2008-06-13 10:01:32 +00:00
cegger adcc250b0b use device_lookup_private to get softc 2008-06-13 09:58:06 +00:00
bjs 8355d28637 "functin" -> "function" (no "functional" change, har har) 2008-06-13 09:53:46 +00:00
cegger 28f4ebad5e use device_lookup_private to get softc 2008-06-13 09:41:15 +00:00
cegger 947c9ab610 use device_lookup_private to get softc 2008-06-13 08:49:15 +00:00
cegger fa11f9bf6d use device_lookup_private to get softc 2008-06-13 08:27:38 +00:00
cegger 5796693f61 - use device_lookup to get device_t
- use device_xname to get device name
2008-06-13 08:17:24 +00:00
cegger da026a977b use device_lookup_private to get softc 2008-06-13 08:13:37 +00:00
cegger e0a095c722 use device_lookup_private to get softc 2008-06-13 05:36:50 +00:00
cegger 0839b594ba use device_lookup_private to get softc 2008-06-12 23:22:36 +00:00
tsutsui b866a2955c Use device_lookup_private() to get softc. 2008-06-12 16:50:53 +00:00
skrll e70ef7ac6e Move milli_tiny.S into sys/arch/hp700/stand/common and use in all boot
programs.

This shrinks cdboot to a size that fits into the first 32K of a CD image
again.
2008-06-12 14:08:29 +00:00
skrll 6c70b7790a Move srt0.S into sys/arch/hp700/stand/common 2008-06-12 14:04:53 +00:00
dogcow fbc2f14545 per cube's suggestion,
mcpcia_cd.cd_devs[i] -> device_lookup_private(&mcpcia_cd, i)
2008-06-12 12:09:23 +00:00
cegger 78be369e90 xbddump: remove duplicate check done by device_lookup_private 2008-06-12 04:54:40 +00:00
briggs 3eeb707af6 Don't try to look up the softc manually in xbddump(). We already have it
from device_lookup_private().
2008-06-12 02:50:30 +00:00
rafal cf990769f1 device_private_lookup()-ification so that hpcarm (at jeast Jornada 72x)
kernels build.
2008-06-12 01:46:32 +00:00