Commit Graph

48058 Commits

Author SHA1 Message Date
reinoud
71eb4d1ddd Fix pmap.c compilation issues when PMAP_FORK is defined. The locking code was not adapted to the indexing of pmap->pm_obj[] 2008-06-23 14:47:51 +00:00
isaki
af8a8d9630 Make intio_intr_establish() use evcnt(9),
instead of dynamic allocation of intrnames/intrcnt.
2008-06-23 08:33:38 +00:00
isaki
31129b82c5 Remove some unused intrnames/intrcnt. 2008-06-23 07:36:12 +00:00
isaki
1e2ea92126 Unify splraiseipl(9) implementation among m68k ports,
discussed with tsutsui@ on port-m68k.

For x68k:
- 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-23 01:49:31 +00:00
tsutsui
aecc2565d0 Make cpu_intr_p() inline. 2008-06-22 17:33:41 +00:00
tsutsui
152476802f Unify splraiseipl(9) implementation among m68k ports as per
suggestion from isaki@ on port-m68k.

For cesfic (compile test only):
- use static splraise4() for splvm() and remove isrcomputeipl() for IPL_VM
  because this port supports only one model
- make makeiplcookie(9) return PSL bits via ipl2psl_table[] rather than
  ipl indexes
- make ipl2psl_table[] uint16_t rather than int
2008-06-22 16:34:15 +00:00
tsutsui
836c01beb6 Don't recompute an ipl level for IPL_VM during or after cpu_configure(9)
and use a static and possible highest ipl value (ipl 5) for IPL_VM
so that we can put ipl2psl_table[] conversion into makeiplcookie(9),
which could be called before cpu_configure(9).

Fixes "panic: sbappendaddr" on NFS load.
2008-06-22 16:29:36 +00:00
kiyohara
768e748678 Fix macro KERNEL_BASE_EXT from KERNEL_EXT_BASE. 2008-06-22 08:27:18 +00:00
gmcgarry
8cb6efd4df Add stdargs support for pcc. 2008-06-21 00:56:39 +00:00
jnemeth
5935b7361f KNF: space after comma -- be consistent! 2008-06-20 20:23:01 +00:00
tsutsui
5bbd2ba098 Unify splraiseipl(9) implementation among m68k ports as per
suggestion from isaki@ on port-m68k.

For mac68k:
- rename mac68k_ipls[] to common ipl2psl_table[]
- make makeiplcookie() return PSL bits via ipl2psl_table[]
  rather than IPL_FOO indexes
2008-06-19 13:56:22 +00:00
tsutsui
12a1eea55d Make this compile. 2008-06-18 12:25:13 +00:00
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