Commit Graph

49605 Commits

Author SHA1 Message Date
nonaka
53f7d89de9 zaudio(4): Support recording. 2009-04-18 05:20:21 +00:00
dyoung
c94ffba5d6 Introduce sys/arch/x86/x86/mp.c for common x86 MP configuration code.
mpacpi_scan_pci() and mpbios_scan_pci() are identical code, so replace
them with mp_pci_scan().

Introduce mp_pci_childdetached(), which helps us to detach root PCI
buses that were enumerated either by MP BIOS or by ACPI.

Let us detach and re-attach PCI buses from mainbus0 on i386.  This is
necessarily a work-in-progress, because testing detach and re-attach
is very difficult: to detach and re-attach the entire PCI tree on most
x86 computers that I own is not possible because some essential device
attaches under the PCI subtree: the console, com0, NIC, or storage
controller always attaches in the PCI tree.
2009-04-17 21:07:58 +00:00
tsutsui
e2c7edc059 Split device_t/softc, use aprint_*(). 2009-04-17 14:48:17 +00:00
cegger
39e7d7e12f make xen kernels build again after the merge of syscall.c 2009-04-16 18:00:35 +00:00
macallan
d1ec421048 use sparc_bus_map_large() to map the framebuffer if we can't find a PROM
mapping - now we won't exhaust the IODEV range and thus prevent other graphics
devices from working.
2009-04-16 16:57:21 +00:00
macallan
718aa97afd Add sparc_bus_map_large() to map large bus ranges like framebuffers and
apertures outside the IODEV range. ZX for example needs 8MB for the framebuffer
alone while the IODEV range provides only 16MB.
2009-04-16 16:55:00 +00:00
rmind
3de18e79b4 - Add macros to handle (some) trapframe registers for common x86 code.
- Merge i386 and amd64 syscall.c into x86.  No functional changes intended.

Proposed on (port-i386 & port-amd64).  Unfortunately, I cannot merge these
lists into the single port-x86. :(
2009-04-16 15:34:23 +00:00
rmind
d062d5d72b - Manage pid_table with kmem(9).
- Remove M_PROC and unused M_SESSION.
2009-04-16 14:56:41 +00:00
mjf
c54741b459 Add a license with my name on it. Suggested by skrll@ 2009-04-16 12:56:07 +00:00
tsutsui
ec658ee9f9 Use mips/conf/stand.ldscript on link so that we can use objcopy(1)
to create raw bootxx binary.  Tested on NWS-5000X.
2009-04-16 12:36:06 +00:00
elad
2d1c968399 Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive
alternatives.

Discussed on tech-kern:

	http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html

Input from ad@, christos@, dyoung@, tsutsui@.

Okay ad@.
2009-04-15 20:44:24 +00:00
mjf
b6791e4a2a Get audio capture fully working with harmony(4) and fix PR/35239.
skrll@ reports that with this patch he can record and playback audio.
Suprisingly the bug was actually with playback and not with capture.
When not capturing or playing audio we write to or read from "empty
buffers", the problem was that playback and capture were using the same
buffer and the playback code managed to pick up a bit of data that was
written from the capture code.
2009-04-15 20:07:58 +00:00
tsutsui
3d2a48dd46 Use <bsd.klinks.mk> to create machine and ${MACHINE_ARCH} symlinks. 2009-04-15 17:15:13 +00:00
cegger
cb572d026d No Execute bit is available in PAE-paging mode.
However to use it, NXE bit in EFER register must be set.
2009-04-15 13:05:47 +00:00
lukem
be3963b646 Constify a userland-only member. 2009-04-15 05:56:36 +00:00
marty
3f031dd86e Work around the circular dependency between sys/device.h and omap_intr.h
introduced when sys/device.h included sys/mutex.h

This workaround should be removed once the circular dependency is fixed.
2009-04-14 06:33:23 +00:00
marty
03ff44a9b2 Increase SYMTABLE_SIZE so it'll compile again. 2009-04-14 06:22:31 +00:00
nonaka
88856a8da9 Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks. 2009-04-13 12:54:45 +00:00
nonaka
553bcc9952 Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks. 2009-04-13 12:25:36 +00:00
tsutsui
78712968dc Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks. 2009-04-13 12:18:56 +00:00
he
fa1e83de92 Define _NOREGNAMES before including <machine/asm.h> so that the
assembler doesn't get confused.
2009-04-13 11:56:35 +00:00
he
b8ed03a053 Add the include of compat/darwin/darwin_types.h, so that this builds
again with COMPAT_DARWIN defined.  Fix from KIYOHARA Takashi.
2009-04-13 11:54:58 +00:00
he
8b757973f7 Include <sys/evcnt.h> instead of <sys/device.h> to break circular
dependency graph.
2009-04-13 09:37:50 +00:00
scw
a73e6e5f81 Fix previous. printlp() and printclp() are not varargs functions. 2009-04-11 11:04:41 +00:00
scw
9678a68913 Invoke zs_lock_init() _after_ copying console state to avoid a later
lock-related panic.
2009-04-11 11:01:47 +00:00
scw
403ccaeac2 Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.

Bump bootst version on account of the above fix.

While here, use -Os instead of -O2 to compile mvme68k stand code.
2009-04-11 10:56:12 +00:00
skrll
77dafb503d Fixup two more syscalls with 64-bit args.
Remove reference to script that is supposed to do this automatically - I
don't have it.

Fixes PR/41185.
2009-04-11 09:49:23 +00:00
perry
ce40f4f667 add (commented out) options LOCKDEBUG 2009-04-10 23:01:46 +00:00
perry
108f1637cb add commented out LOCKDEBUG 2009-04-10 23:00:53 +00:00
perry
10604079d9 Check the size of the offered boot.cfg file. Bail out if it is larger
than 32k.

A bootconf file is normally only a few hundred bytes long. If it is
much bigger than expected, we can't load it into an 8086 real mode
segment anyway.

Much more to the point, in the pxeboot case, someone may have
configured their dhcpd to return the filename for the kernel, not
realizing that the filename is now for boot.cfg which didn't used to
be the case. If we try to load the kernel here, thinking it is
boot.cfg by accident, the boot loader will die ignominiously and
without much of an error message, so we don't want to do that.

This needs to be pulled up to 5.0 if 5.0 has all this machinery
-- I'm not sure whether it does.
2009-04-10 19:41:41 +00:00
tsutsui
0126759cb5 Apply patch from mhitch@:
Make copyin(9) and copyout(9) work with 64KB or larger data blocks.
Fixes broken pipe(2) problem mentioned in PR port-vax/41139. Ok'ed by ragge@.

Should be pulled up to netbsd-5.
2009-04-10 13:40:38 +00:00
tsutsui
e54edb5bbb Include <sys/evcnt.h> instead of <sys/device.h> for struct evcnt
to avoid recursive dependency.
2009-04-10 13:29:30 +00:00
sborrill
e53eaac0d8 Add missing cpu.h include required by last commit. 2009-04-09 10:56:41 +00:00
tsutsui
773d1cf3d7 Include <sys/evcnt.h> instead of <sys/device.h> for struct evcnt
to avoid recursive dependency (though news68k has not been switched
to using intr evcnt yet).
2009-04-09 10:48:22 +00:00
tsutsui
997f95acb2 Include <sys/evcnt.h> instead of <sys/device.h> for struct evcnt.
<sys/device.h> now requires <sys/mutex.h> for struct device_lock, and
<machine/mutex.h> requires <machine/intr.h> for ipl_cookie_t, so
including <sys/device.h> from <machine/intr.h> causes recursive dependency.
2009-04-09 10:29:09 +00:00
dyoung
faec2c4d7c Move elanpar0 and elanpex0 attachment out of the #if NGPIO > 0 block in
elansc_attach().

Let us detach gpio0 at elansc0.

Let us re-attach pci0 at elansc0.

Reduce code duplication between elansc_rescan() and elansc_attach():
call _rescan() from _attach() to attach elanpex0, elanpar0, gpio0, and
pci0.
2009-04-08 23:53:10 +00:00
dyoung
9512fa2997 Remove redundant declaration of mainbus_attach(), as pointed out by
Thomas Klausner.

Do not compile in the local variable "mba" in mainbus_rescan unless
NPNPBIOS > 0 || NACPI > 0 || NIPMI > 0 || NMCA > 0.  This fixes the
build on systems such as Soekris where none of those options apply.
2009-04-08 17:08:02 +00:00
dyoung
b6889a3f64 Let us re-attach acpi0, ipmi0, pnpbios0, and mca0 at mainbus0.
Extract code from mainbus_attach() to create a rescan hook,
mainbus_rescan().  Call mainbus_rescan(, "acpibus"/"ipmibus"/..., ) from
mainbus_attach() in the precise places where we used to attach acpi0,
ipmi0, pnpbios0, and mca0.  This allows, for example, ipmi0 to detach
and re-attach:

# drvctl -d ipmi0
ipmi0: detached
# drvctl -r -a ipmibus mainbus0
ipmi0 at mainbus0
#

Future work will let us detach & re-attach CPUs and the ISA/PCI/EISA
buses at mainbus0.
2009-04-07 22:01:38 +00:00
dyoung
20d48b47c0 When ipmi0 detaches, free all of the ipmi_sensor's on the (global!)
ipmi_sensor_list.
2009-04-07 21:47:58 +00:00
dyoung
deeb71246e In ipmi_detach(), don't sysmon_envsys_destroy(), but just _unregister():
_unregister() calls _destroy().
2009-04-07 21:00:30 +00:00
dyoung
720a7dca79 Add opt_intrdebug.h for the INTRDEBUG option, and #include it here and
there.  Fixes GENERIC/i386 compilation with 'options INTRDEBUG'.
2009-04-07 18:24:23 +00:00
dyoung
f346073f7d Add a device-detachment hook for ipmi(4). 2009-04-07 17:53:45 +00:00
dyoung
ead00d401c Detach pchb(4) instances at shutdown. 2009-04-07 17:52:36 +00:00
dyoung
1a38ae4257 Detach sysbeep0 at shutdown. 2009-04-07 17:51:46 +00:00
tsutsui
0f492f906e assym.fth.h also requires sparc symlink. Fix build without DESTDIR. 2009-04-06 12:43:26 +00:00
dholland
c9388f6666 Fix broken build from missing comma. (HI CHRISTOS!!) 2009-04-05 21:19:37 +00:00
uwe
4e37bb5a9c Register with pmf(9), tell it we don't need anything. 2009-04-05 02:29:40 +00:00
uwe
c7b2923b5e Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.  Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.
2009-04-05 02:23:00 +00:00
uwe
620a6f25ea Register with pmf(9), tell it we don't need anything. 2009-04-05 02:18:59 +00:00
tsutsui
0f22466110 Use #define<tab> consistently. 2009-04-05 00:57:56 +00:00