Commit Graph

211211 Commits

Author SHA1 Message Date
martin
6c3cc552c2 Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.
2012-05-21 14:15:16 +00:00
skrll
f5ab9e9aed Use hppa_enable_irq 2012-05-21 08:14:58 +00:00
skrll
d6cefede3c Provide hppa_{enable,disable}_irq 2012-05-21 07:42:51 +00:00
wiz
44bdf20c29 Typos, capitalization, and file systems.
(Not reviewed at the content level.)
2012-05-21 06:30:18 +00:00
sjg
26b0dda80a In meta mode, level 0 can legitimately see > 64 nested .if's 2012-05-21 06:30:02 +00:00
dholland
f55f861ea1 Update. comments/suggestions/edits please.
This should be pulled up to netbsd-6 once the dust (if any) settles.
2012-05-21 05:53:28 +00:00
skrll
5a97b2bf96 Remove the ARM1156T2 bloat - it only has an MPU. Prompted by matt@ 2012-05-20 18:08:05 +00:00
skrll
e75558347a Add the ARM1156T2-S 2012-05-20 17:58:32 +00:00
skrll
66190ce721 Add the 'Z' to the 1176 cpu product name.
ok matt@
2012-05-20 17:56:30 +00:00
matt
9f15a74b61 Fix call of imxclock. Patch from PR/45359. 2012-05-20 14:08:18 +00:00
skrll
b8905ef0ec device_t/softc split
struct device * -> device_t
struct cfdata * -> cfdata_t
2012-05-20 10:28:44 +00:00
skrll
168b073de1 DOH. Replace a line that got accidently deleted in the last commit. 2012-05-20 07:57:34 +00:00
skrll
fc0cd919cc Replace the simple_lock with a kmutex_t. Update the locking to match
com(4) in the few places it didn't already.
2012-05-20 07:54:40 +00:00
matt
f1963da42f Fix SPE loading typo as described in PR/45731 2012-05-20 06:17:28 +00:00
tls
a918f11452 Fix two problems that could cause /dev/random to not wake up readers when entropy became available. 2012-05-19 16:00:41 +00:00
kiyohara
1818db7635 Enable interrupt in aumac_init(). And disable in aumac_stop()/aumac_attach().
Interrupt storm happen if received packet and DMA not set.
2012-05-19 15:17:35 +00:00
kiyohara
24aaa6bc71 prep's boot supports to load kernel from HDD. We can specify option -I
(no in-kernel).
2012-05-19 14:47:37 +00:00
kiyohara
158f609ada Support load kernel from SCSI HDD with siop. It copy from bebox. (EXPERIMENTAL) 2012-05-19 14:40:12 +00:00
tsutsui
9b6a83e4bf Fix leftover comment derived from hp300 but not applicable to x68k. 2012-05-19 08:29:32 +00:00
jruoho
959e675b20 Make the test pass. It appears that this however does not reproduce the
PR kern/46463, even though the command is exactly the same.
2012-05-19 07:30:37 +00:00
matt
0dfd46e973 Fix a few compile problems on non-P2020 platforms. 2012-05-19 00:11:46 +00:00
christos
ec88541aff - use __dead consistently.
- more clang build.
2012-05-19 00:02:44 +00:00
skrll
d385808b25 Replace a __cpu_simple_lock_t with a kmutex_t. 2012-05-18 21:09:50 +00:00
rkujawa
54b5fa0cef Cosmetic change - print newline during autoconf. 2012-05-18 20:52:02 +00:00
jruoho
63e8388028 Clarify this a little. 2012-05-18 15:36:21 +00:00
jruoho
af62c3b4d8 Add a test case for PR kern/46463. From Richard Hansen. 2012-05-18 15:25:25 +00:00
rkujawa
a334ab7745 Note xsurf(4). 2012-05-18 15:24:45 +00:00
jakllsch
8e3694ab9d Don't exit on ioctl failure, instead let the caller handle it.
This is needed so that we can detect failure of the 40LD firmware
interface and fall back to the 8LD interface.
2012-05-18 14:01:34 +00:00
jakllsch
853736acf9 Add $NetBSD$ to header, and add __RCSID. 2012-05-18 13:59:23 +00:00
jakllsch
cb015b40f8 Use C99 fixed width integer types. 2012-05-18 13:55:15 +00:00
jakllsch
a0e1d2a5df Use err(3) instead of perror(3) + exit(3).
Additionally, use symbolic EXIT_FAILURE.
2012-05-18 13:51:17 +00:00
jakllsch
1304a641ca Use __arraycount instead of identical local macro. 2012-05-18 13:47:33 +00:00
jakllsch
c1cc7f8759 constify number to string lookup tables 2012-05-18 13:41:37 +00:00
skrll
68387479a7 Remove an '@' to hopefully see what's going on with the daily builds. 2012-05-18 12:45:43 +00:00
jdc
4c2bde3243 Increase the number of frequencies in the usb_audio_streaming_type1_descriptor
to be the same number that we support elsewhere (AUFMT_MAX_FREQUENCIES).
Set frequency_type to be AUFMT_MAX_FREQUENCIES in the case where a uaudio
device reports more frequencies than we handle.
Fixes a crash in uaudio_chan_ptransfer() because we read uninitialised data
in uaudio_identify_as().
2012-05-18 07:52:54 +00:00
sjg
35fdcec3af Avoid nested extern declaration warnings 2012-05-18 02:28:16 +00:00
cyber
0b8a986010 regen 2012-05-17 21:59:49 +00:00
cyber
7c1e366213 add USBConnect Mercury 2012-05-17 21:48:22 +00:00
dsl
b5ef992d28 Let the user of INTRENTRY_L() place a label on the 'swapgs' used
when faulting from user space.
2012-05-17 19:38:53 +00:00
matt
396f225953 The P2020 doesn't have GPIO in the same place as othe 85xx. Deal with it. 2012-05-17 16:24:09 +00:00
matt
62dd40e661 Allow user addresses >= 0x80000000 2012-05-17 16:22:38 +00:00
matt
94a2d5c844 Add an KASSERT to check that PSL_PR is always set. 2012-05-17 16:21:45 +00:00
matt
f9b44a6d57 Add support for PMAP_GROWKERNEL 2012-05-17 16:20:19 +00:00
wiz
144042a0cd Remove trailing whitespace. 2012-05-17 07:28:29 +00:00
mrg
c344fad04f clarify some descriptions. document a couple more functions.
make a big commented list of the functions that are lacking real
descriptions.
2012-05-17 02:58:14 +00:00
martin
cfbccd804b mmap_block:
do not use a hardcoded block device list, but query the kernel for attached
disks instead, then try to mmap the raw partition.
2012-05-16 19:12:59 +00:00
alnsn
3580de4ac5 Use original indentation style in more places. 2012-05-16 17:48:59 +00:00
jruoho
5c4e704752 Remove also redundant comment (the reference to the PR is already in the
metadata).
2012-05-16 13:54:28 +00:00
martin
7c32638bb1 Simplify the test for PR kern/4645 and make it independend of resource
settings.
2012-05-16 13:48:35 +00:00
wiz
d00eda4ad2 Fix typo in comment. 2012-05-16 11:45:08 +00:00