Commit Graph

170913 Commits

Author SHA1 Message Date
christos 34c1ed7571 remove unnecessary casts. 2008-06-15 16:35:35 +00:00
christos ab4f03ff74 - Add more definitions from FreeBSD
- Add ifmedia_removeall from FreeBSD
2008-06-15 16:33:58 +00:00
nonaka 84993899e8 fix compile failure. 2008-06-15 13:42:03 +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
phx 8fcd99cbd6 Fixed system lockup in native mode with compat irq 14/15, which can be selected
with the use-compat-native-irq property. It was caused by handling irqs from
both channels at once with the wrong interrupt handler routine
(pciide_pci_intr). Now pciide_compat_intr is installed for each channel.
Also renamed the function to via_pegasos_mapregs_native(), which seems more
appropriate.
2008-06-15 10:29:34 +00:00
tsutsui 9087265ab9 Make this compile (fix an unused variable). 2008-06-15 10:29:18 +00:00
chris 44d939d150 Fix for biowait hangs, and possibly other condvar hangs. Also should fix
PR kern/38761.

The condvar must access the sleepq with the sleepq lock held, doing so
is causing inconsistent sleepq state to be read.

This is because some accesses to the sleepq don't come via the cv code,
but are call directly into sleepq_changepri and sleepq_lendpri, which take
the sleepq lock, and removes then re-inserts lwps into the sleepq.

Running a build.sh with -j8 now completes on my quad-core, also tested by
Simon@ on a 8-core server and matt@ on a quad-core.

I believe there is room to be more efficient with this, as we now take the
sleepq lock for all cv_broadcast and cv_signal calls. I'll look into this
and post a diff to tech-kern.
2008-06-15 09:56: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
tnozaki e1ee662664 remove unused include, locale.h. 2008-06-14 16:01:07 +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
cegger 75946855ff Checking if the underlying file system supports VOP_BMAP and VOP_STRATEGY does not imply that works.
Test if VOP_BMAP actually works before using bmap/strategy.

When you create an image with

dd if=/dev/zero of=./netbsd.img bs=1m count=1 seek=1000

then the current check actually determines the "file system"
in the image supports VOP_BMAP and VOP_STRATEGY, but VOP_BMAP can't
translate any logical block numbers which results in EIO failures.

When you try to access the image in a Xen DomU you see all disk operations
failing. Therefore test if VOP_BMAP actually works and fall back to
VOP_READ/VOP_WRITE if it doesn't.

This makes a Xen DomU installation working. When you boot your fresh
installed Xen DomU with a valid disklabel and file system in the image,
VOP_BMAP actually works and is used.

This allows you to create an image with dd as above on the Dom0 and
run a DomU installation or to quickly create another virtual disk for
an existing DomU without having to create a disklabel and file system
by hand.
2008-06-14 11:44:57 +00:00
cegger 826cd7b39b add closing bracket in debug message 2008-06-14 07:52:36 +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
martin b47f782db6 Move to 2 clause license, approved by Wolfgang Solfrank. 2008-06-13 20:46:09 +00:00
cegger 13a6ae7a5f register NULL pmf handlers. md(4) is supposed to not loose / change when resuming from S3. 2008-06-13 20:05:06 +00:00
cegger 9fca1f317d device_t/softc split
while here, remove unused variables and do some other cleanups
with feedback from cube
2008-06-13 19:55:26 +00:00
christos a41d00937d pointless to compile md_root.c without md.c 2008-06-13 17:26:33 +00:00
cegger 7e0f2eede2 use device_lookup to get device 2008-06-13 14:25:06 +00:00
cegger 5293e6ad9f add missing braces. unbreaks previous commit. 2008-06-13 14:22:22 +00:00
cegger f90facf2e6 use device_lookup to get device 2008-06-13 14:18:14 +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
yamt 2233bf3229 remove unnecessary casts. 2008-06-13 03:18:04 +00:00
yamt 60683edb0f avoid c99 on DEBUG. 2008-06-13 03:15:50 +00:00
bjs 429b5c8282 DRM_IOCTL_SG_ALLOC needs IOWR, not IOR! 2008-06-13 00:34:48 +00:00
cegger 0839b594ba use device_lookup_private to get softc 2008-06-12 23:22:36 +00:00
cegger 708f88d69f use device_lookup_private to get softc 2008-06-12 23:06:14 +00:00
cegger ee1dc8ea5f use device_lookup_private to get softc
use device_lookup to get device_t
2008-06-12 23:04:37 +00:00