211497 Commits

Author SHA1 Message Date
buhrow
e89c169dda Add the Springer Design MP3 players/book reader products.
This includes the original BookPOrt sold by APH.
2012-05-24 21:32:35 +00:00
buhrow
a40b45e0de Add the Apple IPod Shuffle (second generation) and the
Apple IPod Touch (fourth generation)
2012-05-24 21:22:24 +00:00
abs
9c537a963a Add the following above the version = 0 line, just to provide a hint...
/* For binary compat. New code must call WSxxxIO_SETVERSION */
2012-05-24 18:16:31 +00:00
macallan
703675e11d copy properties for valkyriefb as well 2012-05-24 00:40:11 +00:00
macallan
ecc5369937 malloc -> kmem_alloc 2012-05-23 21:47:23 +00:00
macallan
54cab79c69 cleanup, remove debug goo 2012-05-23 21:46:17 +00:00
skrll
a97306d52b Enable IPIs for MULTIPROCESSOR kernels 2012-05-23 21:11:34 +00:00
macallan
f74f6c0c83 first step to fix PR 46461 - don't jump through a NULL pointer when we're
not the console but the firmware set up the graphics hardware anyway
2012-05-23 18:39:30 +00:00
skrll
8e6e666e7a Rework the hp700 interrupt code to
- note chip restictions on interrupt in the kernel config
	- allocate interrupts at attach time
	- track per CPU interrupts
	- remove a funciton written in assembly
2012-05-23 16:11:37 +00:00
martin
3a550d746a Simplify creation of a temporary file slightly, fix sizeof(buf) confusion
when buf is a pointer.
2012-05-23 16:08:32 +00:00
martin
13a218af47 Recently uvm_page_locked_p() leaked outside of uvm/MD code, so rump
needs to provide one.
2012-05-23 14:59:21 +00:00
yamt
6f98f4f96c todo 2012-05-23 13:54:37 +00:00
yamt
011521a198 update 2012-05-23 13:34:14 +00:00
skrll
281c140aa0 Reorder to match struct. No functional change. 2012-05-23 11:18:46 +00:00
skrll
3b679b4cab Style. 2012-05-23 11:08:33 +00:00
skrll
ecd456f054 Update a comment. 2012-05-23 11:04:54 +00:00
skrll
feb2801c1e Whitespace. 2012-05-23 10:37:01 +00:00
skrll
dc648e69c2 s/IRQ/interrupt/ in autoconf message. 2012-05-23 10:31:59 +00:00
cegger
b2cdc990ec destroy mutex and cv first.
Fixes LOCKDEBUG crash when a guest shut down.
2012-05-23 10:01:51 +00:00
skrll
4c621388a1 Add a KASSERT. 2012-05-23 09:49:56 +00:00
skrll
9deace9c1a Whitespace 2012-05-23 08:59:36 +00:00
skrll
bc77bb37cd Add a GENERIC.MP kernel config and add it to the build list so that it
gets build tested.
2012-05-23 08:19:40 +00:00
skrll
8f8f8325c7 Make a #define MULTIPROCESSOR kernel compile 2012-05-23 07:31:31 +00:00
skrll
4aea3b4781 Count the cpus as they attach so that CPU_INFO_FOREACH works before
hatching the secondary cpus.
2012-05-23 07:06:02 +00:00
dsl
b6c52d15c3 Treat traps in kernel mode during the 'return to user' iret sequence
as user faults.
Based heavily in the i386 code with the correct opcode bytes inserted.
iret path tested, arranging for segment register errors is harder.
User %fs and %gs (32bit apps) are loaded much earlier and any errors
will generate kernel panics - there is probably code to try to stop
the invalid values being set.
2012-05-22 21:14:37 +00:00
dsl
5ded493803 If we get a fault setting the user %gs, or on a iret that is returning
to userspace, we must do a 'swapgs' to reload the kernel %gs_base.
Also save the %ds, %es, %fs, %gs selector values in the frame so
they can be restored if we finally return to user (probably after
an application SIGSEGV handler has fixed the error).
Without this any such fault leaves the kernel running with the wrong
%gs offset and it will most likely fault again early in trap().
Repeats until the stack tramples on something important.
iret change works, invalid %gs is a little harder to arrange.
2012-05-22 21:10:26 +00:00
martin
3f1ac75efe Include opt_usb.h for USB_DEBUG. 2012-05-22 19:11:21 +00:00
yamt
4f2ae9432c don't block on pager map for read-ahead.
reduce code duplication.
2012-05-22 14:20:39 +00:00
martin
6a653c6635 Typo in comment 2012-05-22 09:23:39 +00:00
isaki
24ce0eb54d With the freerunnnig mode, set 0 (=256count) not 0xff (=255count)
in Timer-D.  It fixes the clock ticked faster when timecounter uses
"mfp" (as default choice).  It was introduced in rev 1.24 in 2006.
Thanks tsutsui@ for many comments.
Should be pulled up to netbsd-6 and netbsd-5.
2012-05-22 04:03:03 +00:00
christos
95a363c914 - Recognize the SuSE ABI note.
- Restructure the code to do the checking in the appropriate note type,
and harmonize all the checks to be positive.
- Print only the tag data being careful not to overrun the allocated buffer.
2012-05-22 02:40:05 +00:00
jdf
cb54fe064f Changed returncodes to -1 of mount_disks in case of error (before, they were
inverted).
Add message mount_failed to be displayed when a mount fails, offering the
opportunity to go on anyway (fix for PR install/12020).
2012-05-21 22:38:25 +00:00
dsl
6a03bb6b37 Remove the code that tries to load the "ffs" kernel module during boot.
This is in line with the core decision than even modular kernels should
  contain the ffs code.
I've left in the code that tries to load "nfs" and "ext2fs", but it
  isn't clear that is necessary.
Removes a warning message that (usually) flashes past to fast to read.
AFAICT all the relevant kernels contain ffs (and nfs for that matter).
2012-05-21 21:34:16 +00:00
skrll
417560e99b Unwrap a line. 2012-05-21 21:15:39 +00:00
skrll
22e94347b7 KNF 2012-05-21 20:58:39 +00:00
skrll
d5795db78b Remove empty line. 2012-05-21 20:51:46 +00:00
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