Commit Graph

51690 Commits

Author SHA1 Message Date
tsutsui
a5c6b1ba06 Replace callout(9) with softint(9) which is more appropriate there.
Inspired by PR port-hpcmips/43472 and tested by Risto Sainio.
2010-07-20 15:03:53 +00:00
kiyohara
7509fbc930 Add options EVBARM_BOARDTYPE. 2010-07-20 12:14:16 +00:00
kiyohara
e23283ad78 Add CPPFLAGS like to BEAGLEBOAD. 2010-07-20 12:13:18 +00:00
kiyohara
56161f5a21 Remove unexist device(omapnand0). 2010-07-20 12:09:50 +00:00
jklos
c0c4b308d5 Properly initialize the IOBlix card's lpt port on boot. From Frank Wille
and Michael L. Hitch.
2010-07-20 05:32:46 +00:00
tsutsui
a367c4f857 - in max1233_readpos(), add some DELAY() after starting A/D so that
output values of touchscreen position are more stable on my WS003SH
- also tidy up read and calc ops in max1233_readpos()
- turn DAC on in max1233_init() as well as max1233_resume()
2010-07-19 15:20:21 +00:00
jruoho
ae630da088 Add ACPI CPU. 2010-07-18 10:19:09 +00:00
jruoho
9fcb11c8f6 Add missing CVS identifiers. 2010-07-18 09:39:45 +00:00
jruoho
4d861e5bb4 Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).

Remarks:

  1.	Commented out in the GENERICs; more testing exposure is needed.

  2.	The C3-state is disabled for the time being because it turns off
	timers, among them the local APIC timer. This may not be universally
	true on all x86 processors; define ACPICPU_ENABLE_C3 to test.

  3.	The algorithm used to choose a power state may need tuning. When
	evaluating the appropriate state, the implementation uses the
	previous sleep time as an indicator. Additional hints would include
	for example the system load.

	Also bus master activity is evaluated when choosing a state. The
	usb(4) stack is notorious for such activity even when unused.
	Typically it must be disabled in order to reach the C3-state,
	but it may also prevent the use of C2.

  4.	While no extensive empirical measurements have been carried out, the
	power savings are somewhere between 1-2 W with C1 and C2, depending
	on the processor, firmware, and load. With C3 even up to 4 W can be
	saved.  The less something ticks, the more power is saved.

ok jmcneill@, joerg@, and discussed with various people.
2010-07-18 09:29:11 +00:00
pgoyette
05644d3782 Register ipmi(4) with power management subsystem so we might have a chance
of suspending.  Suspending will still be denied if the watchdog is active.

As discussed on tech-kern@

XXX The pmf handlers for this and all other watchdogs should be factored
XXX out into a common handler for a generic wdog(4) pseudo-device, but
XXX that's left for the future.
2010-07-17 21:34:39 +00:00
tsutsui
d78cceb1e3 Remove obsolete __HAVE_GENERIC_SOFT_INTERRUPTS,
which is mandatory since 2007/07:
http://mail-index.NetBSD.org/source-changes/2007/07/14/0039.html
2010-07-17 15:25:57 +00:00
tsutsui
bd9787ae90 Bump MAXPARTITIONS from 8 to 16 using __HAVE_OLD_DISKLABEL compat method
as i386 and hpcmips. PR port-hpcarm/18256
2010-07-17 15:13:18 +00:00
phx
5ee594fe76 Code to set PCI cfg xfer mode registers of 0680A IDE, to make sure the
chip is in PIO mode.
Patch submitted by Toru Nishimura.
2010-07-17 14:15:34 +00:00
isaki
ad112cd676 Add a missing newline in BOOT_DEBUG mode. 2010-07-17 06:27:03 +00:00
tsutsui
0f487a87b0 Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474 2010-07-16 15:30:10 +00:00
tsutsui
716b5eae08 Add missing callout_init(9) calls. PR port-hpcmips/43472 2010-07-16 15:28:38 +00:00
jym
b5924bfd19 With Xen, PDPpaddr should contain a guest physical address (== PFN). 2010-07-15 23:20:34 +00:00
jym
dfcbd5678f pte0 is used to map the page required by bioscall() trampoline code, so
add VM_PROT_EXECUTE protection for it.

Currently, this does not change much, as page execute permission is not
enforced for i386 (except for Xen, where BIOS calls are not used anyway).
2010-07-15 22:19:19 +00:00
jym
dd8a27c182 Check the virtual address 'va' for each PDIR_SLOT_PTE entry. PDP_SIZE
is 4 with PAE (Xen only currently), 1 otherwise: loop should be unrolled
when PDP_SIZE is 1.

pmap_alloc_level() is used by pmap_growkernel(), the PDE is a kernel
mapping: mark it so with PG_k. While here, use pmap_pa2pte() for physical
address 'pa'.

No functional change.
2010-07-15 21:14:31 +00:00
jym
7d13a50ab2 Make the comment about PDPpaddr more thorough. 2010-07-15 19:02:26 +00:00
jym
d3c610129a Purely cosmetic: move L2_SLOT_KERNBASE out of the PAE #ifdef/#endif block. 2010-07-15 18:58:40 +00:00
jym
c60095f23a In Xen PAE case, fix argument size passed to init386(), by pushing the
upper bits onto stack (we do not expect first_avail to be above 4GiB, so
assume their value is 0).

Remove macros (PROC0PDIR and PROC0STACK) that were never used.
2010-07-15 18:55:27 +00:00
jym
b1392d44f0 Fix typo in comment. 2010-07-14 14:42:40 +00:00
kiyohara
299d82b760 Support xserver for prep.
It tested only s3(864).
2010-07-12 07:54:11 +00:00
mrg
6ba01f04a1 look for the m680[2346]0 options in the opt_m68k_arch.h and set them
appropriately in the kernel config, if not already set.

restores the settings before the M680x0 options became _KERNEL_OPT
options.  tested by myself and mhitch.
2010-07-12 02:45:31 +00:00
he
b8e5234fe3 Include <sys/param.h> for howmany() definition.
OK'ed by tsutsui@.
2010-07-11 17:09:27 +00:00
ahoka
9d33b2b330 Add useful GPMC_CS_SIZE macro for mapping CS registers. 2010-07-10 11:50:49 +00:00
cherry
90869e619d Provide and accept memory reservation information from the hypervisor
in KiloBytes. This is valid both for the xenbus interface, as well as
the dom0 only sysctl interface.

Thanks cegger@ for testing.
2010-07-10 11:20:48 +00:00
nakayama
5a62bb676d ucas_64: reorder 64-bit args on 32-bit kernels. 2010-07-10 10:12:07 +00:00
nakayama
2c360db4bf Clear the upper word explicitly before combining two 32-bit values to 64-bit
on 32-bit kernels.
2010-07-10 10:10:36 +00:00
nakayama
180e77d6e9 psycho_sabre_dmamap_sync: do nothing if len == 0 like iommu_dvmamap_sync. 2010-07-10 10:07:40 +00:00
kiyohara
95856cac39 Add omapmputmr0 to critical_devs[].
delay(9) must require clock_sc (softc for omapmputmr0@obio2).  Also com@obio2
  calls delay in com_attach_subr().
2010-07-10 08:48:47 +00:00
kiyohara
1f094b1ad7 Remove not exists file. 2010-07-10 08:31:34 +00:00
kiyohara
c304a3774f Add gumstix_device_register(). Set properties for pxa2x0_ohci here.
However this properties not used in NetBSD source tree.
2010-07-10 08:26:34 +00:00
kiyohara
9a9959dfd8 Support Overo (Gumstix inc).
+ This commit supports basically.
  + Expansion boards not support yet.  And MicroSD, Wifi, Bluetooth too.
2010-07-10 08:17:48 +00:00
kiyohara
ace455150f Add disabled option PPPOE_SERVER. 2010-07-10 07:59:09 +00:00
chs
8a149212d0 fix build problems on MIPS32-only configurations:
define ucas{int,ptr}() directly here using the INT_* and PTR_* macros
instead of defining ucas_{32,64}() and aliasing them to the public names.
2010-07-09 21:47:43 +00:00
cherry
0dd5586026 Provide the sysctl(7) interface to the balloon driver only to dom0 2010-07-08 14:51:14 +00:00
cherry
b9c5e0ce4f make read-only, and return sane values in balloon related sysctl(7)
nodes when  'options XEN_BALLOON' is disabled.
2010-07-08 14:19:53 +00:00
rmind
7c940b718e Unify i386 and amd64 procfs MD code into x86. 2010-07-08 11:24:59 +00:00
rmind
9a7d390830 cpu_attach: use kmem_zalloc instead of memset. 2010-07-08 11:22:24 +00:00
cegger
57e387d4d7 use __arraycount 2010-07-08 09:42:08 +00:00
macallan
183d3da18c pass a valid DMA tag 2010-07-07 22:55:03 +00:00
macallan
5eda8ffc6c bus_dma, straight from arm32. Will probably need adjustments. 2010-07-07 22:53:44 +00:00
ahoka
f705df7ee4 Pass CS# in gpmc attach arg. 2010-07-07 21:10:39 +00:00
macallan
c3900149cf make sure to include a small font for machines like the SPARCbook 3GX
should fix PR43297
2010-07-07 20:58:56 +00:00
chs
63c9e60bb0 enable COMPAT_LINUX. 2010-07-07 01:32:51 +00:00
chs
33fa5ccbbf many changes for COMPAT_LINUX:
- update the linux syscall table for each platform.
 - support new-style (NPTL) linux pthreads on all platforms.
   clone() with CLONE_THREAD uses 1 process with many LWPs
   instead of separate processes.
 - move the contents of sys__lwp_setprivate() into a new
   lwp_setprivate() and use that everywhere.
 - update linux_release[] and linux32_release[] to "2.6.18".
 - adjust placement of emul fork/exec/exit hooks as needed
   and adjust other emul code to match.
 - convert all struct emul definitions to use named initializers.
 - change the pid allocator to allow multiple pids to refer to the same proc.
 - remove a few fields from struct proc that are no longer needed.
 - disable the non-functional "vdso" code in linux32/amd64,
   glibc works fine without it.
 - fix a race in the futex code where we could miss a wakeup after
   a requeue operation.
 - redo futex locking to be a little more efficient.
2010-07-07 01:30:32 +00:00
chs
56acc98394 enable DDB_HISTORY_SIZE in a few more configs where DDB is enabled. 2010-07-07 01:24:52 +00:00
chs
cc7a868696 implement emulation of the "rdhwr" instruction for mips TLS. 2010-07-07 01:23:42 +00:00
chs
7ddf89ffa3 enable usermode RAS for sun[23] also. 2010-07-07 01:23:08 +00:00
chs
00c0212959 add "trace/a" to trace by LWP address. 2010-07-07 01:22:35 +00:00
chs
934c1780af fix db_{read,write}_bytes() for unaligned addresses
(just copy a byte at a time, this isn't a performance path).
2010-07-07 01:22:12 +00:00
chs
8c5cce48f1 set error return value for user addresses in kernel space.
(this fixes a bug in my previous checkin here.)
2010-07-07 01:21:47 +00:00
chs
dd80381ce2 return the error from fault handler in ucas_fault
rather than forcing EFAULT.
2010-07-07 01:21:15 +00:00
chs
8b4d79c278 implement cpu_lwp_setprivate() on several platforms. 2010-07-07 01:20:49 +00:00
chs
cd93d88b01 implement ucas_* for powerpc/oea. 2010-07-07 01:19:54 +00:00
chs
8103357160 implement ucas_* for mips. 2010-07-07 01:19:09 +00:00
chs
794a8be6ca fix hppa ucas_*():
- "ret" is a kernel-space pointer.
 - move the ucas RAS check from the device interrupt path
   to the page-fault path.
2010-07-07 01:18:39 +00:00
chs
e8200b900c implement ucas_* for alpha. 2010-07-07 01:17:49 +00:00
chs
fb84d42413 implement ucas_* for arm. 2010-07-07 01:17:26 +00:00
chs
9ea6b6e3f2 implement ucas_* for m68k. 2010-07-07 01:16:23 +00:00
chs
b9075fd7d9 clean up the check for tracing into a syscall handler. 2010-07-07 01:15:34 +00:00
chs
ffa744f452 add the guts of TLS support on amd64. based on joerg's patch,
reworked by me to support 32-bit processes as well.
we now keep %fs and %gs loaded with the user values
while in the kernel, which means we don't need to
reload them when returning to user mode.
2010-07-07 01:14:52 +00:00
chs
1842e935a4 fix more bugs in ucas_*():
move the "old" value to %*ax so that cmpxchg* can work.
remove the PCB_ONFAULT stuff, onfault_handler() handles this already.
return the error from fault handler in ucas_fault rather than forcing EFAULT.
2010-07-07 01:13:29 +00:00
njoly
3bb7b36948 Install x86/pte.h 2010-07-07 00:10:14 +00:00
cegger
a63798ea7c Turn PMAP_NOCACHE into MI flag.
Add MI flags PMAP_WRITE_COMBINE, PMAP_WRITE_BACK, PMAP_NOCACHE_OVR.
Update pmap(9) manpage.

hppa: Remove MD PMAP_NOCACHE flag as it exists as MI flag
mips: Rename MD PMAP_NOCACHE to PGC_NOCACHE.

x86: Implement new MI flags using Page-Attribute Tables.
x86: Implement BUS_SPACE_MAP_PREFETCHABLE.

Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2010/06/30/msg008458.html

No comments on this last version.
2010-07-06 20:50:33 +00:00
cherry
c971211b47 The Xen balloon driver enables growing and shrinking
PV domains on the fly, by collaborating with UVM and the hypervisor
2010-07-06 15:00:09 +00:00
mrg
b7ea3b98cd use elf2bb / elf2bb.h instead of the old, now gone aout2bb version. 2010-07-06 06:09:56 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
tsutsui
c874d8cab4 Add upgt(4) for WS003SH/WS004SH internal WLAN. 2010-07-05 14:30:00 +00:00
kiyohara
acaa37cf55 Remove unnecessary white-spaces. 2010-07-05 06:54:48 +00:00
kiyohara
999e21b0e4 Fix set the control register. 2010-07-05 06:50:01 +00:00
kiyohara
da93dea326 Add ia64 description. 2010-07-03 13:32:36 +00:00
ragge
85273aa8b3 A big bunch of bugfixes from Johnny Billquist. Highlights:
- Makes the VAX8600 work as expected (500kg of hardware :-)
- Fix a hard-tracked bug causing VAXen to hang at splhigh.
2010-07-01 19:50:11 +00:00
rmind
3c507045e2 Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.
2010-07-01 02:38:26 +00:00
phx
1924b919bc Determine the boot disk with bootinfo cookie.
Patch submitted by Toru Nishimura.
2010-06-30 17:50:34 +00:00
phx
9daf9967b6 Add file system snapshot device. 2010-06-30 17:49:32 +00:00
he
0aa887981d Bump SYMTAB_SPACE so that the contents fits again. 2010-06-30 06:57:13 +00:00
skrll
873fac29a4 Remove some code that snuck in. 2010-06-30 06:33:52 +00:00
kiyohara
0fe9881406 Implement pci_attach_hook/pci_bus_maxdevs/pci_make_tag/pci_decompose_tag/
pci_conf_read/pci_conf_write.
2010-06-28 12:14:08 +00:00
kiyohara
7418b486c4 Move identifycpu() into cpu.c. Our cpu* says:
cpu0 at mainbus0: ProcessorID 0, Id 0, Eid 0
  cpu0: McKinley (1000.00-MHz Itanium 2)
  cpu0: Origin "GenuineIntel",  Revision 7
  cpu0: Features 0x1
2010-06-28 12:08:13 +00:00
kiyohara
a03ec97cba Fix always free. It call, if memory was allocated. 2010-06-28 11:18:44 +00:00
rmind
c81a6ebb0c mp_cpu_start: although fragment is commented out, add pmap_update(), just
in case somebody would come up with a clever idea to copy-paste that.
2010-06-28 00:47:53 +00:00
rmind
d96d372bb4 Add missing pmap_update() in vga_post_init(), remove wrong pmap_kremove()
in error path, and fix pmap_update() in vga_post_set_vbe().
2010-06-28 00:39:47 +00:00
simonb
a21d11f6f4 Use the address of the instruction instead of the contents of the
instruction to calculate a relative branch target address from that
instruction.

Not sure what the intention of this change was, or if it could possibly
have been tested.

Fixes awk on my dbau1500.
2010-06-27 13:44:26 +00:00
phx
791937a070 No longer needed. See dsk.c. 2010-06-27 12:09:41 +00:00
phx
1e968eb269 Replaced test code for Synology SiI3512 with working KuroBox code again. 2010-06-27 12:09:17 +00:00
phx
7d0b196352 - add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
2010-06-26 22:13:32 +00:00
phx
a23e0160ee - add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
2010-06-26 21:45:49 +00:00
tsutsui
e04e7d8109 Comment out options RTC_OFFSET so that bootinfo->timezone passed by
hpcboot will be used by default.
2010-06-26 16:34:47 +00:00
tsutsui
e193fab21a Forgot to commit this one that should have been done with zs.c rev 1.119:
> Establish interrupt handlers with proper softc per each zs device
> rather than sharing them among all zs devices and searching softc
> in handlers.
>
> The latter method is derived from ancient sun3 zs driver which tried
> to reduce overhead on autovectored interrupts, but nowadays such hack
> might cause recursive global locks on modern SMP capable framework.
>
> Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
> on tech-kern@:
> http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
> and also tested by Jochen Kunz on SS20 with both serial and kbd console.
>
> Ok'ed by mrg@ and dyoung@.

Noticed by martin@.
2010-06-26 16:10:00 +00:00
kefren
25133d6d8f Fix build for MPLS import: add options MPLS, changed pseudo-device mpls
to pseudo-device ifmpls
2010-06-26 15:17:56 +00:00
kefren
f2c541b4fa add pseudo-device mpls - commented in GENERIC for now 2010-06-26 14:36:48 +00:00
bouyer
f249dc1977 Sync DKWEDGE options with GENERIC 2010-06-26 13:08:37 +00:00
skrll
0af7f6db64 Remove unused cbit. 2010-06-26 08:40:01 +00:00
bsh
e9bb7e64f7 Don't use DMA for sdmmc on TWINTAIL for now, because it causes kernel panic. 2010-06-26 07:51:45 +00:00
tsutsui
fee87accc6 Um, fix botch in previous. 2010-06-26 03:49:52 +00:00
tsutsui
995d4be272 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 03:44:49 +00:00
tsutsui
42db966caf Remove an unused variable. 2010-06-26 03:39:53 +00:00
tsutsui
2c8811ab00 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 01:48:57 +00:00
tsutsui
dc3badf5ec Establish interrupt handlers with proper softc per each zs device
rather than sharing them among all zs devices and searching softc
in handlers.

The latter method is derived from ancient sun3 zs driver which tried
to reduce overhead on autovectored interrupts, but nowadays such hack
might cause recursive global locks on modern SMP capable framework.

Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
on tech-kern@:
http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
and also tested by Jochen Kunz on SS20 with both serial and kbd console.

Ok'ed by mrg@ and dyoung@.
2010-06-26 01:42:57 +00:00
tsutsui
9bb99692d4 If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports.  Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files.  Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
2010-06-26 00:25:02 +00:00
rmind
f66e2cf323 Add missing sys/xcall.h inclusion, remove sys/malloc.h one. 2010-06-25 19:00:05 +00:00
tsutsui
8809b23e72 Add several USB Ethernet devices. 2010-06-25 17:53:28 +00:00
tsutsui
42613739e0 Enable options DDB, which is enabled in other kernels. 2010-06-25 17:42:02 +00:00
tsutsui
c57d9e3781 Set options RTC_OFFSET=-540 since Windows Mobile stores localtime
into the RTC and we can assume most W-ZERO3 users live in JST timezone.

XXX: Probably it would be better to allow a kernel getting RTC_OFFSET value
XXX: via bootinfo set by boot(8) or boot.cfg(5).
2010-06-25 17:40:32 +00:00
tsutsui
e96b50fc20 Add wait_sec() which uses BIOS function call INT 1Ah/AH=00h (GET SYSTEMTIME)
and use it for large delays (in seconds) instead of delay() that uses
INT 15h/AH=86h (WAIT) in microsecond because the latter one can't provide
precise delays on emulators.
Fixes PR port-i386/43156 (NetBSD bootloader countdown runs at 1/20 speed
in qemu 0.12).

No particular comments on the PR and port-i386@.
2010-06-25 15:35:08 +00:00
skrll
9df03ffdf5 Add uturn(4) and attachments. 2010-06-24 16:06:03 +00:00
hannken
1423e65b26 Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
eeh
605be4ce9b indir-block needs to be the size of a filesystem block or bad things can happen. 2010-06-24 00:54:12 +00:00
rmind
2e5851d2b3 Fix build for Alpha. 2010-06-23 13:52:26 +00:00
rmind
1840edb963 Implement high priority (XC_HIGHPRI) xcall(9) mechanism - a facility
to execute functions from software interrupt context, at SOFTINT_CLOCK.
Functions must be lightweight.  Will be used for passive serialization.

OK ad@.
2010-06-22 18:29:01 +00:00
rmind
518a6c84b7 Fix ucas_32/ucas_64 on amd64. 2010-06-22 18:26:05 +00:00
simonb
f9e3860700 Restore (and update) half of the TLB miss handler that went missing
during the mips64 merge.  This gets my sbmips kernel booting to the
login prompt.  This code could not possibly have been tested after
the merge.

Should fix PR port-mips/43431.
2010-06-22 12:42:21 +00:00
pooka
6884cd395b add vnd info for pseudodevfs 2010-06-21 21:50:19 +00:00
skrll
d2db4f3b98 Allow PVF_UNCACHEABLE in set/clear of pmap_changebit call (for now). 2010-06-21 14:43:34 +00:00
skrll
16cdb55026 Remove some debug code. 2010-06-21 11:04:27 +00:00
skrll
bb2cefaa36 Don't define UTURNDEBUG. 2010-06-21 09:06:03 +00:00
skrll
23383d229c Fixup uturn DMA for real mode. That is, use uncacheable directly mapped
pages.
2010-06-21 07:09:59 +00:00
matt
9aa3361758 My pegasos2 doesn't have an ethernet node at the top level.
Deal with it.
2010-06-20 00:25:41 +00:00
matt
c4bcfba615 This was renamed to cortex_pmc.c 2010-06-19 21:33:21 +00:00
matt
8497a9555d Fix cache probing on Cortex. Add missing CORTEX dependency in cpu.c 2010-06-19 20:42:43 +00:00
matt
257eed1c8d Fix c&p error. 2010-06-19 19:49:24 +00:00
matt
a0bdfc6191 Misc fixes to get this to compile again. 2010-06-19 19:47:34 +00:00
matt
30ce2039ad Cleanup the armv7 changes. Add ARM_ARCH_7. Use CPU_CORTEX instead of
CPU_CORTEXA8 everywhere since there more types of Cortex than just the A8.
CPU_CORTEXA8 still exists but causes CPU_CORTEX to be defined.
Add CPU_CORTEXA9 as well.  Use .arch armv7a to get us the isb/dsb
instructions.

Test booted to root device prompt on a Beagleboard.
All ARM kernels successfully test built.
2010-06-19 19:44:57 +00:00
kiyohara
a3f576d5c4 Support load from FAT. 2010-06-19 08:48:33 +00:00
tsutsui
244ae535ae Add WSDISPLAYIO_LINEBYTES, required by Xorg wsfb server. 2010-06-19 08:42:48 +00:00
jmcneill
5815775328 emit u-boot image 'netbsd.ub' as part of beagle kernel build 2010-06-18 19:19:05 +00:00
skrll
8a4dc67dbc Flesh out uturn_regs. Replace magic constant with a define. 2010-06-18 06:30:53 +00:00
skrll
5889dd9dfb White space. 2010-06-18 06:15:31 +00:00
jmcneill
2e0ba6f582 fix beagle build (arm11_pmc -> cortexa8_pmc) 2010-06-18 00:55:06 +00:00
christos
c2e710e700 Only clear the interrupt latch if we are using interrupts! 2010-06-17 14:41:50 +00:00
mrg
42bb42d990 in iommu_remove() don't invalidate the IOMMU mapping. for reasons not
yet determined, some PCI devices (at least fxp(4) and re(4)) sometimes
appear to perform DMA operations while this is happening, and we get
uncorrectable DMA errors.  ideally, this "shouldn't happen", but none
of the investigation so far has reveal the problem, and my source
investigation of both opensolaris and linux show that their perform
the invaliation when unmapping.

"handles" PR#43274 as well as other issues...

XXX: candidate for netbsd-5
2010-06-17 06:48:46 +00:00
mrg
3cca660ebe attach just one of the cpu timer interrupts as EVCNT_TYPE_INTR, so that at
least something shows up in systat and beyond.  myself, and a few others,
have been confused at the lack of any timer interrupts appearing here.
2010-06-17 06:40:28 +00:00
mrg
bf0e9a40ae when complaining we don't support this many MTRR's, say how many there are. 2010-06-17 06:38:19 +00:00
jmcneill
5ddffda4bf PR port-arm/43299: Support added for igepv2/cortexa8/omap3530
Apply patch from PR, with build fixes. ok skrll, matt
2010-06-16 22:06:53 +00:00
riz
42943652d9 Add AGP support for a number of Intel onboard devices, including
82G41, 82B43, E7221, 82965GME, and "Iron Lake".  Device
types (i915, i965, G33, and G4X variants) from the Linux Intel AGP
driver, and (for 82G41) from Henry Bent in PR#42906.

There are a few more varieties that should be relatively low-hanging
fruit ("Pineview" and "Sandy Bridge"), but will require a little bit
of rejiggering of the "chiptype".

OK mrg@
2010-06-16 03:35:01 +00:00
simonb
d1ea2eed63 Add a very basic <machine/bus.h> which nows seems to be mandatory in MI
code even if a port doesn't use it.

Based on code in private email from Havard Eidnes.  Thanks Havard!
2010-06-13 18:14:57 +00:00
tsutsui
be8e5859f9 Apply fixes for PR port-arm/43339:
Set proper IPL_SOFTfoo values even in !FAST_SOFTINTS case.
 Some assertions in MI code expect they have unique values,
 per comments from rmind@.

Also cleanup various "interrupt hierarchy" code since IPL_NONE and
IPL_SOFTfoo should not be set by any hardware interrupt establish functions.

Ok'ed by mrg@, tested on shark and hpcarm.
2010-06-13 02:11:22 +00:00
macallan
ec4afcf862 add some more offsets
this should have been committed with the previous, noticed by he
2010-06-12 21:25:56 +00:00
macallan
3ab6a60f8f Add a couple more hw offset definitions, add an ioctl() to set colour depth
which works like Solaris and Linux, and finally make mmap() behave like an
actual CG14. This should be all we need to get Xorg's suncg14 driver going.
2010-06-10 13:21:13 +00:00
phx
39b0fd3abd The sandpoint port is now focussed on 824x based NAS boxes.
Replaced GENERIC by GENERIC.NAS.
Added INSTALL_KURO for KuroBox.
GENERIC.NAS and RAMDISK are no longer needed.
2010-06-09 17:34:32 +00:00
kiyohara
5358a961b8 Indent. 2010-06-09 04:44:01 +00:00
kiyohara
2581e047dd Support MV64361 on PegasosII by gt(4).
+ Support gtpci@gt instead of pegasospci more smartly.
  + Support Gigabit Ethernet by mvgbe@gt.
2010-06-09 04:41:42 +00:00
mrg
43b100a118 document the acorn26, i386, ia64 and vax ddb commands in both the builtin
help and in ddb.4.  fixes PR#38304, PR#38305, PR#38309 and PR#38313.
2010-06-09 02:48:52 +00:00
macallan
c7622a73d1 get rid of the cg3/cg8 'emulation' kludge since we have the xf86-video-suncg14
driver now
this will probably need some work in cgfourteenmmap() to match what the
driver expects from a cg14
2010-06-08 06:30:41 +00:00
mrg
d823f37213 properly document alpha ddb "mach" commands. PR#38303. 2010-06-08 06:14:57 +00:00
bsh
6d22e186df don't use dv_xname directly. 2010-06-07 15:17:24 +00:00
tnozaki
9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00