jakllsch
a5fb435357
Support booting from GPT-partioned disks on PC-BIOS-compatible systems.
...
Much of the work in this commit was done by Mike Volokhov during GSoC 2009.
2011-01-06 01:08:48 +00:00
jakllsch
6808b172e4
Pass a 64-bit boot partition base LBA into x86 /boot,
...
while maintaining compatibility with existing bootxx code.
2011-01-05 23:13:01 +00:00
jmcneill
1dc6287662
reserve a major number for kmixer
2011-01-05 22:35:08 +00:00
jakllsch
1d66d108be
NetBSD/x86 BIOS Boot 5.6: now with GUID Partition Table support.
2011-01-05 22:28:05 +00:00
jakllsch
749ebb6927
Note stack/heap changes made in revision 1.47 of Makefile.boot with version 5.5.
2011-01-05 22:24:02 +00:00
jakllsch
ae42e83402
Teach BIOS disk driver about GPT partition tables.
...
Inspired by Mike Volokhov's GPT booting GSoC project.
2011-01-05 22:06:59 +00:00
jakllsch
4b66284eab
Let the compiler determine the correct type for sizeof().
...
From Mike Volokhov's GPT booting GSoC.
2011-01-05 21:44:23 +00:00
enami
7b2a66bec9
Fix format string; use PRIu64 for uint64_t.
2011-01-05 21:20:44 +00:00
jruoho
b1ee05a7c3
Add build files for acpipmtr(4) module.
2011-01-05 20:15:52 +00:00
jruoho
e067d18bf0
Add a driver for ACPI power meters.
2011-01-05 20:08:12 +00:00
martin
5a52026e31
Avoid NULL deref inside a KASSERT, as discussed on tech-kern.
2011-01-05 19:34:27 +00:00
matt
d9539bd215
Use regnames (%rX %crX), use m[ft]sprg[0-9]. No binary difference.
2011-01-05 18:47:28 +00:00
jmcneill
baabc4744e
d_type is now d_flag, update comment to match
2011-01-05 17:00:25 +00:00
jnemeth
a98aacd7f2
- the atari et device has been renamed et4k
...
- a new MI et device was added
2011-01-05 15:39:19 +00:00
sketch
4f0bf5bf27
Use aprint_verbose_dev.
2011-01-05 14:55:10 +00:00
martin
81136a86ea
Duh, actually make it modular
2011-01-05 13:29:27 +00:00
martin
8d1ce9f395
Untill modules are first class citizens, we need to run MODULAR kernels
...
insecure.
2011-01-05 12:59:33 +00:00
jnemeth
278bc6467a
Sample MODULAR kernel configuration.
...
approved by: martin@
2011-01-05 10:34:49 +00:00
jruoho
d982261b67
Adjust previous slightly.
2011-01-05 08:08:47 +00:00
jruoho
740a9e0c0e
Make a two-pass scan for acpinodebus. This should ensure that devices such
...
as acpiec(4) are attached before anything else. Numerous bugs are expected
to be fixed with this change.
2011-01-05 07:58:04 +00:00
skrll
4ad49271c4
Unwrap short line.
2011-01-05 07:40:16 +00:00
pgoyette
a8cb084374
Define KERN_SA when building the module
2011-01-04 20:52:53 +00:00
pgoyette
f54a432784
Fix the build breakage, at least on amd64
2011-01-04 20:23:40 +00:00
pooka
4b258054be
Add NetBSD 5 compat wrapping for *utimes()
2011-01-04 17:00:19 +00:00
jakllsch
6bbd1c4558
Relocate buffers to not coincide with new location of executable text.
2011-01-04 16:53:05 +00:00
pooka
a9dcf542ce
Add SMP support for all architectures.
...
tested on sparc64 by martin
2011-01-04 16:23:35 +00:00
kiyohara
926c5ddd8d
Fix to build failure. Include uvm/uvm_extern.h for pmap_extract().
2011-01-04 11:41:24 +00:00
matt
c247b65c80
Turn off VERBOSE_ARM_INIT
2011-01-04 11:38:58 +00:00
matt
b99d2248b0
Need to deal with msg_iov in netbsd32_to_msghdr.
2011-01-04 11:00:31 +00:00
matt
701acb9073
Make the SA support as optional as is possible.
2011-01-04 10:59:28 +00:00
skrll
2e4617519c
Centralise the PDC procedure calls into one file and use a minimal set of
...
kernel data for PDC results.
Remove the filler components from the PDC structures as a result.
Other tidyups while here.
2011-01-04 10:42:33 +00:00
jruoho
9844967b1c
Stop using aprint_debug(9) in an interrupt handler.
2011-01-04 10:40:17 +00:00
pooka
da5a203b0b
Need to check for VNOVAL when setting attrs.
2011-01-04 09:49:16 +00:00
matt
09ed1cd16b
Add audio for uaudio
2011-01-04 09:13:56 +00:00
matt
f895d49c52
Add ukphy (makes MIIVERBOSE happier)
2011-01-04 09:13:19 +00:00
matt
3af5634626
Supply a hook at allow an RAMDISK image to automagically inserted into a
...
newly built kernel.
2011-01-04 08:58:59 +00:00
matt
4d8e8a7e36
Add better color matching selecting free pages. KM pages will now allocated
...
so that VA and PA have the same color. On a page fault, choose a physical
page that has the same color as the virtual address.
When allocating kernel memory pages, allow the MD to specify a preferred
VM_FREELIST from which to choose pages. For machines with large amounts
of memory (> 4GB), all kernel memory to come from <4GB to reduce the amount
of bounce buffering needed with 32bit DMA devices.
2011-01-04 08:26:33 +00:00
matt
5d3db402fb
Add a MD hook to indicate a change of vmspace due to exec. (This is useful
...
to update any cpu flag due to a change to/from a 64bit and a 32bit address
space). This can set the state needed for copyout/copyin before setregs
is invoked.
2011-01-04 08:21:18 +00:00
matt
b3322481fa
Print the number of page colors in use with db> show uvm
2011-01-04 08:17:01 +00:00
dholland
5382c59ae1
Tsort functions and remove a small #if 0 block leftover from earlier cleanup.
...
No functional change.
2011-01-04 07:43:42 +00:00
jruoho
c96fe4ba5e
Revert the changes made in the commit:
...
"Do not queue functions via sysmon_taskq(9) in the pmf(9) resume hooks.
There is a small and unlikely race when the drivers are loaded as modules;
suspend, resume, queue a function, and immediately unload the module."
Queueing the checks in the resume hooks was observed to improve the resume
time by several seconds (!) on a system with poorly implemented AML code.
The observed race condition is a wider issue related to modules; things like
sysmon_taskq(9) should be modified to allow cancelling of queued functions.
2011-01-04 05:48:48 +00:00
jruoho
a26fa60e11
Fix previous.
2011-01-04 04:28:48 +00:00
nisimura
aa74cd0406
withdraw my name from the copyright notice as there is little code
...
substance made by me.
2011-01-04 02:50:08 +00:00
tsutsui
43e8a97158
Add options P1003_1B_SEMAPHORE.
2011-01-04 02:19:32 +00:00
matt
802fd8b955
If using a kernel ldscript, make sure it's added to the list of kernel
...
dependencies.
2011-01-04 01:52:30 +00:00
matt
833bb81cc5
add support for autostarting watchdogs (wdog was started by firmware
...
and can't be disabled). Add critical pool hooks for kernel tickled
watchdogs.
2011-01-04 01:51:06 +00:00
matt
1cf358c3b4
When determining max/min sym value, ignore ABS symbols which don't
...
have a type. This stops ksym thinking that the _KERNEL_OPT symbols
could actually be useful.
2011-01-04 01:40:19 +00:00
matt
9d740604de
Switch back to malloc since kmem isn't softintr safe.
2011-01-04 01:37:55 +00:00
matt
1bab34e59d
Use LIST_FOREACH when possible.
2011-01-04 01:29:01 +00:00
matt
3bedd50982
Make this support the DS1553 as well. Add support for the centry reg which
...
newer RTCs seem to have.
2011-01-04 01:28:15 +00:00
matt
dfbd1e0d55
Add the new mpc85xx/booke device names.
2011-01-04 01:26:22 +00:00
matt
d4c26fdc30
Add a generic Motorola/Freescale i2c driver. This was taken from sandpoint
...
and heavily modified. It works on most Freescale PowerPC and ARM SoCs.
2011-01-04 01:24:56 +00:00
pooka
41cdab1b22
Don't try to change the size of non-reg nodes or when vattr doesn't
...
contain a new size.
from njoly
2011-01-04 00:09:43 +00:00
skrll
9ed174ca8e
Reformat comment.
2011-01-03 19:20:11 +00:00
pooka
7766a79555
kqueue signal filters are not supported, so be explicit about it.
2011-01-03 14:57:06 +00:00
pooka
a27f30410a
update comment
2011-01-03 13:22:32 +00:00
drochner
bccb285ad5
destroy mutex/cv before freeing the struct holding them, fixes
...
LOCKDEBUG panic
2011-01-03 13:12:40 +00:00
jruoho
6a3b9e2cde
Scan for devices that are "hot-pluggable".
2011-01-03 08:50:23 +00:00
tsutsui
ee16ecf67d
Add (commented out) options MODULAR. Confirmed working on XM6i.
2011-01-03 06:15:16 +00:00
tsutsui
a9ce633ac2
Xref module(7) in comments.
2011-01-03 06:07:42 +00:00
tsutsui
7790fd94ea
Enable options DDB. Ok from isaki@
2011-01-03 03:43:22 +00:00
jakllsch
71481e188f
Zero the in-memory super block after allocation. It contains a pointer
...
that, if not properly initialized, could be improperly deallocated.
2011-01-02 21:37:01 +00:00
christos
d232460a0a
kern/44310: Alexander Nasonov: write to /dev/bpf truncates size_t to int
2011-01-02 21:03:45 +00:00
christos
7e1e338bd2
Simplify and avoid kernel segv when the list is NULL.
2011-01-02 20:50:55 +00:00
matt
d24d5902b3
Kernels modules are c99 (gnu99) just like the kernel.
...
Add(move) -std=gnu99 to CPPFLAGS (from COPTS).
2011-01-02 19:24:47 +00:00
tsutsui
6542895ee1
Tidy up common comments. (Yes, too many dup code...)
2011-01-02 18:48:04 +00:00
tsutsui
ba49f620d3
Pull code that maps the kernel segment table cache invalidated for 040/060,
...
to reduce diffs from other m68k ports.
Compile test only. (any working machine for these port?)
2011-01-02 18:39:11 +00:00
tsutsui
d0f75d9074
Pull code that maps the kernel segment table cache invalidated for 040/060,
...
to reduce diffs from other m68k ports.
Tested on LC630 (with 68LC040) upto single user.
2011-01-02 18:16:59 +00:00
skrll
cc800d12bd
Remove last references to __HAVE_SIGINFO
2011-01-02 18:12:01 +00:00
skrll
4e5433fc00
__HAVE_SIGINFO has not been required/used for a long time now.
...
Prompted by uwe@
2011-01-02 18:07:02 +00:00
pooka
afa6c20325
regen: rump_lwproc_rfork
2011-01-02 12:53:13 +00:00
pooka
8b69e65f3e
There is a use case where preserving the parent's fd table is
...
relevant, so to accommodate that change rump_lwproc_newproc() to
rump_lwproc_rfork(). The new interface has the rfork() fd table
semantics. The equivalent of rump_lwproc_newproc() is
rump_lwproc_rfork(RUMP_RFCFDG).
2011-01-02 12:52:25 +00:00
mbalmer
ec2d803578
Cap h.loc.count at MAXKEYCODE instead of bailing out. This lets some obscure/
...
roque keyboards attach.
From loganaden@devio.us (Loganaden Velvindron), thanks!
2011-01-02 12:36:41 +00:00
he
1445b77a3f
Make this build again by removing the const qualifier on the
...
local pcb0 variable in mips_init_lwp0_uarea().
2011-01-02 12:17:28 +00:00
jruoho
6248a51d8a
Adjust error messages for the previous commit.
2011-01-02 12:06:02 +00:00
mrg
de80fec71b
add the normal DKWEDGE* options, and enable drvctl.
2011-01-02 11:25:31 +00:00
mrg
546f8cf55d
now that it's optional, kill schizo_pci_find_ino().
...
prepare to enable the tomatillo iocache.
2011-01-02 10:43:18 +00:00
hannken
111bde084e
layer_inactive: With specnodes introduced during vmlocking2
...
it is safe to cache device nodes.
Tested with nullfs only as unionfs with device nodes panics.
2011-01-02 10:38:02 +00:00
tsutsui
1566040d94
Switch mvmeppc bootloader to using MI libsa and libkern for maintainability.
...
Mostly taken from mvme68k.
Compile test only, but no functional changes.
2011-01-02 09:40:51 +00:00
tsutsui
3beadbf115
Misc cosmetics to reduce diff among hp300 derived m68k ports.
...
XXX: too many quirks to merge...
2011-01-02 08:40:54 +00:00
tsutsui
61ec97e196
Add a dummy <machine/bus.h> which nows seems to be mandatory in MI code
...
including <sys/bus.h> even if a port doesn't use it. Taken from sbmips.
2011-01-02 08:22:35 +00:00
tsutsui
7e5fe04d25
Explicitly include <machine/bus.h> here for bus_space_tag_t and bus_dma_tag_t.
2011-01-02 08:19:03 +00:00
tsutsui
180ea1e5f3
Fix one more fatal typo. Umm.
2011-01-02 07:51:02 +00:00
tsutsui
600906f486
Misc cosmetics to reduce diffs among these ports.
2011-01-02 07:03:46 +00:00
dholland
6422814ed0
Remove references to SAVESTART and SAVENAME in comments.
2011-01-02 06:58:45 +00:00
tsutsui
19cecafc81
Some cosmetics to reduce diffs from other m68k ports.
2011-01-02 06:25:23 +00:00
tsutsui
46705dc7b5
Remove "last kernel PT page" stuff derived from hp300 where PA != VA.
...
Compile test only, but same changes as other PA == VA m68k ports like
luna68k, news68k, and x68k used for a decade.
2011-01-02 06:15:04 +00:00
jruoho
e008cf160e
Use "real" device names for the hw.acpi.wake and hw.acpi.power sysctl(8)
...
trees. For instance, instead of hw.acpi.wake.DURT, we have hw.acpi.wake.wm0
for wm(4). This is a temporary solution, but without solving the big
abstraction questions, this is the best we can do.
2011-01-02 06:05:47 +00:00
jruoho
9a11653a7b
Print a warning if the BIOS thinks that the timer is unreliable. However, do
...
not touch the quality of the timecounter(9) based on this information.
2011-01-02 05:48:55 +00:00
tsutsui
ba426c081d
Switch mvme68k standalone problams to using MI libsa and libkern
...
for maintainablility. Also bump version for note.
Compile test only, but no functional changes.
2011-01-02 05:30:11 +00:00
tsutsui
0d6929ab07
Make pmap_aliasmask unsigned and declare it in <m68k/pmap_motorola.h>.
...
XXX: does anyone still have working HP320 or HP350 with 020+HP_MMU+VAC?
2011-01-02 05:21:11 +00:00
tsutsui
65021e823c
Pull code that maps the kernel segment table cache invalidated for 040/060,
...
to reduce diffs from other m68k ports.
Tested on HP362 (030) and HP382 (040), and no visible performance difference.
(what should we do per "for the 68040 not strictly necessary but
recommended by Motorola" comment?)
2011-01-02 05:18:04 +00:00
dholland
3822046d71
5.99.43: R.I.P. SAVESTART.
2011-01-02 05:13:53 +00:00
dholland
a2770d1fb4
Final regen for tonight.
2011-01-02 05:12:56 +00:00
dholland
6d2ff39e83
Remove remaining references to SAVESTART.
2011-01-02 05:12:33 +00:00
dholland
201ce42cd0
Regen yet again.
2011-01-02 05:09:50 +00:00
dholland
13fc777536
Remove the special refcount behavior (adding an extra reference to the
...
parent dir) associated with SAVESTART in relookup().
Check all call sites to make sure that SAVESTART wasn't set while
calling relookup(); if it was, adjust the refcount behavior. Remove
related references to SAVESTART.
The only code that was reaching the extra ref was msdosfs_rename,
where the refcount behavior was already fairly broken and/or gross;
repair it.
Add a dummy 4th argument to relookup to make sure code that hasn't
been inspected won't compile. (This will go away next time the
relookup semantics change, which they will.)
2011-01-02 05:09:30 +00:00
tsutsui
04a4956fe1
Remove disabled code for VAC. No such news68k models.
2011-01-02 05:09:27 +00:00
dholland
bf71879ee8
Regen again.
2011-01-02 05:05:42 +00:00
dholland
b845056678
Add an INRELOOKUP namei flag. Sigh. (We don't need more namei flags.)
...
However, because of a protocol deficiency puffs relies on being able
to keep track of VOP_LOOKUP calls by inspecting their contents, and
this at least allows it to use something vaguely principled instead of
making wild guesses based on whether SAVESTART is set.
Update libp2k to use INRELOOKUP instead of SAVESTART.
2011-01-02 05:04:58 +00:00
dholland
ef568a47eb
Regen.
2011-01-02 05:02:04 +00:00
tsutsui
7beb97cf13
Pull code that maps the kernel segment table cache invalidated for 040/060,
...
to reduce diffs from other m68k ports.
(though news68k doesn't have 040/060 models)
2011-01-02 05:01:57 +00:00
dholland
a508b19c66
Remove unused nameidata field ni_startdir.
2011-01-02 05:01:20 +00:00
jakllsch
1eadcd7347
Relocate cdboot (aka bootxx_cd9660) to 0x1000 instead of 0x600.
...
A similar change was made in v1.38 of Makefile.bootxx about 13 months ago,
no reason these shouldn't be consistent with each other, like they were before.
2011-01-02 02:31:32 +00:00
jakllsch
9b838cd935
Correct comments referencing PRIMARY_LOAD_ADDRESS to match current reality.
2011-01-02 02:01:58 +00:00
pooka
08421f3eea
Update comment and inspired by that update variable naming too.
...
no functional change.
2011-01-01 22:05:11 +00:00
pooka
d015d3f957
Report correct file size + deal with ftruncate() and O_APPEND.
2011-01-01 19:47:22 +00:00
nisimura
dcfa49c7d6
- leave lwp0 trapframe zerod since it's never used.
...
- 64bit op SR[KX] bit is for !o32 cases.
- build struct sigframe_siginfo locally and then operate single copyout()
to user stack as other ports do.
2011-01-01 02:08:10 +00:00
uwe
cfaf20150d
Revert previous. Add 2011 to the list in old format.
...
Let board@ decide if it's ok to switch to the range format.
2011-01-01 01:36:10 +00:00
he
914db8430e
Protect the include of <sys/cpu_data.h> with a test for either _KERNEL
...
or _KMEMUSER. This should fix the build problem in libkvm for our m68k
ports.
2011-01-01 00:37:16 +00:00
rmind
304c5ab65d
Welcome to 2011! Happy New Year!
...
Do not forget to update copyright notices when you add new code.
2011-01-01 00:29:23 +00:00
tsutsui
5e750e3881
Regen from diodevs rev 1.11:
...
> Use more specific info and names for 362/382 internal framebuffers.
2010-12-31 22:49:55 +00:00
tsutsui
4a634b4174
Use more specific info and names for 362/382 internal framebuffers.
...
Taken from various WWW pages (and my 362/382):
http://www.hpmuseum.net/collection_document.php
http://www.ambry.com/page/model.asp?model_nu=A1473A
http://mail-index.NetBSD.org/port-hp300/2003/11/03/0005.html
http://www.ambry.com/page/model.asp?model_nu=A1474A
http://mail-index.NetBSD.org/port-hp300/1999/07/16/0000.html
http://mail-index.NetBSD.org/port-hp300/1999/07/16/0001.html
http://mail-index.NetBSD.org/port-hp300/2009/04/30/msg000018.html
2010-12-31 22:48:59 +00:00
tsutsui
0d350c51a1
According to the 362/382 Service Handbook by HP, only 382 has a utility chip
...
(i.e. frodo and apci) for RS-232C so don't try to attach frodo on HP362.
XXX: HP362 detection code in locore.s and bootloader still doesn't work
XXX: if on-board framebuffer is disabled by a jumper switch, though
XXX: it's still detected as HP360 and just works.
2010-12-31 22:41:55 +00:00
phx
84715b6c09
Support for reading disklabels from RDB partitions in the kernel.
...
The code will check for a raw disklabel first, then tries to find the
disklabel in an MBR partition and finally constructs it from RDB
partitions.
RDB is probably only needed for the Pegasos platform, so it can be
disabled in the config file (RDB_PART).
2010-12-31 21:50:27 +00:00
jruoho
8aaffbf4e9
Include <dev/acpi/acpi_pci.h>.
2010-12-31 14:05:15 +00:00
jruoho
396210649d
acpi_pcidev_find_dev(): take struct acpi_devnode as a parameter.
2010-12-31 10:56:39 +00:00
jruoho
aa705fc95d
Move the function that finds a device_t for the corresponding ACPI device
...
node from ACPIVERBOSE to the ACPI PCI code.
2010-12-31 10:23:44 +00:00
jruoho
b99cdd8ef8
Move the ACPI sleep-specific sysctl variables to hw.acpi.sleep. The old
...
machdep-variables are provided for backwards compatibility (eventually these
should be removed). All ACPI sysctl variables are now under hw.acpi.
2010-12-31 09:19:43 +00:00
jruoho
77f707c929
Use "temperature #" and "fan speed #" rather than "TMP#" and "FAN#" for the
...
sensor names. Remove white space. No functional change.
2010-12-31 08:17:54 +00:00
jakllsch
709bef7ba6
Fix DISK_DEBUG build.
2010-12-30 22:28:53 +00:00
jakllsch
0b61932b4b
Make this actually build with DISK_DEBUG.
2010-12-30 22:27:43 +00:00
pooka
5cf9cd8f68
regen for comments
2010-12-30 20:11:07 +00:00
pooka
2f7b77901e
Include system call name in comment even for unimplemented syscalls
...
in rump_syscalls.c.
2010-12-30 20:09:53 +00:00
jruoho
3dc9396c46
Regen.
2010-12-30 19:38:03 +00:00
jruoho
47c7d9897b
Add IBM0079.
2010-12-30 19:37:39 +00:00
jakllsch
6055524421
HP v125w flash drive doesn't like PREVENT/ALLOW either.
...
Reported by Gary Duzan on current-users;
http://mail-index.netbsd.org/current-users/2010/12/30/msg015240.html
2010-12-30 19:35:33 +00:00
jakllsch
bfbec4fadf
Regen.
2010-12-30 19:28:52 +00:00
jakllsch
14e8dbcd65
Add HP v125w flash drive.
2010-12-30 19:27:51 +00:00
jruoho
b4492a071f
Use "temperature" rather than "TEMP" as the sensor name. No functional change.
2010-12-30 19:27:27 +00:00
jruoho
a7f6c722a1
Remove DIAGNOSTIC.
2010-12-30 18:38:50 +00:00
jruoho
37ec4d38de
Fill out struct ifnet::if_stop, which is required for network class devices
...
in pmf(9). Fixes the panic reported in PR # kern/44296.
2010-12-30 18:27:01 +00:00
jruoho
a7e3599b75
Add an additional assertion for the control MSR address.
2010-12-30 17:06:17 +00:00
pooka
7b44389237
regen: SYCALL_NOSYS in rump_sysent[]
2010-12-30 16:51:28 +00:00
pooka
afe2ca27dd
Mark syscalls not supported by a rump kernel with SYCALL_NOSYS, as
...
pure function pointer comparison brings weak alias confusion (weak
aliases are necessary for static linkage).
2010-12-30 16:49:24 +00:00
pooka
9b98cb6805
Requery syscall handlers during rump kernel init. This fixes
...
syscalls provided by a rump faction such as rumpvfs when the library
is not linked into the binary, but is dlopen()'d before calling
rump_init().
(it is illegal to dlopen() a faction after rump_init(), but syscalls
maybe be added the usual way with modules)
rump_server(1) -lstuff works now.
2010-12-30 16:46:32 +00:00
pooka
4513e431d6
Refetch netisr function pointers with dlsym(). This gives the
...
desired values in case the components containing the netisr handlers
were not linked in but dlopen()'d before calling rump_init().
(could simplify a little in case static linking is declared dead)
2010-12-30 16:19:39 +00:00
pooka
2aa9fbc0b2
Allow rump kernel to call dlsym(RTLD_DEFAULT).
2010-12-30 15:47:30 +00:00
pooka
6234f7657c
regen: whitespace polish police
2010-12-30 13:38:56 +00:00
pooka
cb92cf6235
whitespace polish in rump_syscalls.c
2010-12-30 13:38:10 +00:00
pooka
d7c0fe15d1
update comment
2010-12-30 12:46:34 +00:00
jruoho
a5a73b2a05
Change the default behavior to enforce the maximum frequency when the
...
firmware requests to do so. This cures severe overhating (> 120 C) observed
on many laptops, being also on par with the specification(s). This can be
reverted by using the new "hw.acpi.cpu.dynamic" sysctl variable.
2010-12-30 12:05:02 +00:00
pooka
8b73c28f1c
snafu in previous: extra printf arg
2010-12-30 11:54:50 +00:00
pooka
4d48de638f
regen: fill syscallnames up to the rim
2010-12-30 11:45:39 +00:00
pooka
c86a7bcf7c
Fill syscallnames up to nsysent so that n<nsysent has a non-hyperspace
...
string mapping.
2010-12-30 11:42:53 +00:00
pgoyette
59fe847ec9
When the user updates the sensor device's refresh timer, reset the
...
callout immediately rather than waiting for the previous timer to
expire.
2010-12-30 03:59:59 +00:00
jakllsch
bec3a889b1
Utilize movz[bw]l to save a few instrutions and bytes of .text.
2010-12-29 22:40:46 +00:00
jakllsch
387a37a543
bootxx_cd9660 (cdboot), like bootxx_fat16 (fatboot), is not a traditional
...
libsa-based program. As such, build bootxx_cd9660 where its source lives.
This has been done by moving bootxx/bootxx_cd9660/Makefile to cdboot/Makefile
and adjusting the relative paths appropriately, so as to minimize binary change.
2010-12-29 17:44:03 +00:00
pooka
d9b1a59b40
Pass potential prop dictionary to modcmd when reenabling a builtin
...
module.
2010-12-29 15:07:36 +00:00
nisimura
a84bb7e54c
one more line for lwp_getpcb() conversion.
2010-12-29 13:49:32 +00:00
nisimura
a879dab550
use lwp_getpcb() to hide the detail about how struct pcb is populated.
2010-12-29 13:43:58 +00:00
jmcneill
2ea5b50e4b
module needs to devsw_attach/devsw_detach
2010-12-29 13:43:16 +00:00
jmcneill
393a0deb05
some platforms don't have bus_dma, so only build these modules on x86
2010-12-29 13:05:42 +00:00
jakllsch
4244c8419c
Address PR#44279.
...
- Be more lenient to device descriptor inconsistencies.
- Apply Roland SD-90 quirk only to the SD-90.
2010-12-28 20:11:18 +00:00
mhitch
61ae85434d
Raise address of user stack to the highest safe (for 68040 mmu) address,
...
which increases available user address space by 256MB. One file in
pkgsrc/lang/php53 was too large for the amiga. Also remove an old
presumably outdated comment.
2010-12-28 18:31:05 +00:00
jmcneill
b678bc7497
add "ir" and "cir" modules
2010-12-28 14:45:30 +00:00
tsutsui
69585815cc
Regen from diodevs rev 1.10:
...
> Add IDs for 362/382 internal displays. From OpenBSD.
2010-12-28 10:20:27 +00:00
tsutsui
714611173b
Add IDs for 362/382 internal displays. From OpenBSD.
2010-12-28 10:19:24 +00:00
tsutsui
2d7fcfafb5
Include <bsd.own.mk> to pull ${TOOL_AWK}.
2010-12-28 10:15:49 +00:00
jmcneill
0fa8fefb87
Hauppauge HVR-850 analog should be identical to HVR-950Q, so support it too
2010-12-28 04:02:33 +00:00
jmcneill
201870c31a
use ioconf
2010-12-28 00:49:21 +00:00
jmcneill
0d017a0558
don't make module declaration conditional on _MODULE
2010-12-28 00:11:50 +00:00
jmcneill
cd76ae1c65
add auvitek at uhub
2010-12-27 20:45:00 +00:00
jmcneill
9a5027bf20
add au8522, xc5k, auvitek config glue
2010-12-27 20:42:51 +00:00
phx
709cd38f1c
Add TI PCI1510.
...
Enable TI12XX PCI interrupt in MFUNC when MFUNC pin0 and pin1 are zero.
Ignore the other pins, which may be non-zero (e.g. IRQSER in pin3).
2010-12-27 19:02:32 +00:00
hannken
53b57e3385
Extend the range of fstrans transactions to a sequence of vnode operations
...
on a locked vnode. This leaves a suspended file system and therefore a
snapshot with either all or no operations of such a sequence done.
2010-12-27 18:49:42 +00:00
hannken
8f78757b95
Remove an always true if-clause.
2010-12-27 18:41:07 +00:00
jmcneill
1fe6c4002d
add 'uaudio* at usbifif?' so uaudio can attach to something other than
...
a hub
2010-12-27 15:56:50 +00:00
jmcneill
1a0062ed4f
hook xc5k, au8522, and auvitek into build
2010-12-27 15:48:28 +00:00
jmcneill
eabcfbccce
xc5k, au8522, and auvitek modules
2010-12-27 15:43:41 +00:00
jmcneill
33ca440f18
add driver for the Auvitek AU0828 USB video controllers's analog video
...
capture functions:
auvitek0 at uhub6 port 2: AU0828
video0 at auvitek0: WinTV HVR-950Q
uaudio0 at auvitek0 port 2 configuration 1 interface 1
uaudio0: vendor 0x2040 product 0x7200, rev 2.00/0.05, addr 2
uaudio0: audio rev 1.00
audio1 at uaudio0: full duplex, playback, capture, independent
2010-12-27 15:42:11 +00:00
tsutsui
e505103fe6
Fix typo (and pasted lines). From OpenBSD.
2010-12-27 15:39:07 +00:00
tsutsui
892f400123
With a quick test, HP9000/362 doesn't seem to have frodo utility chip,
...
so probe code to identify HP362 taken from OpenBSD has never worked.
Identify HP362 by probing device IDs of the on-board framebuffer instead.
---
>> NetBSD/hp300 Primary Boot, Revision 1.16 (from NetBSD 5.99.41)
>> HP 9000/362 SPU
>> Enter "reset" to reset system.
Boot: [[[sd0a:]netbsd][-a][-c][-d][-s][-v][-q]] :-
2836828+148212 [343504+216292]=0x361b24
Start @ 0xff003400 [1=0xff2dac50-0x361b24]...
Entry point: 0xff003400
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 5.99.41 (GENERIC) #135 : Mon Dec 27 23:30:21 JST 2010
tsutsui@mirage:/usr/src/sys/arch/hp300/compile/GENERIC
HP 9000/362 (25MHz MC68030 CPU+MMU, 25MHz MC68882 FPU)
total memory = 16372 KB
avail memory = 11480 KB
:
2010-12-27 15:23:36 +00:00
uebayasi
ddbd4f2fb0
Fix build.
2010-12-27 14:58:55 +00:00
martin
17b6d22a39
Belatedly bump version to 5.99.42 - cpu_info changed (at least on sparc64)
2010-12-27 10:58:27 +00:00
christos
e5c1816344
fix slightly wrong format.
2010-12-26 23:55:52 +00:00
jmcneill
97dc26a286
don't try to set frequencies lower or higher than the tuner's allowed
...
range -- the v4l2 spec says "when the requested frequency is not possible
the driver assumes the closest possible value".
2010-12-26 23:41:45 +00:00
he
3b9ac1bb43
Expose parts of struct cpu_info if _KMEMUSER is defined, for the benefit
...
of e.g. vmstat.
2010-12-26 21:05:34 +00:00
he
05c6af2d0f
Since struct cpu_data isn't the first member in struct cpu_info, instead
...
expose the initial portion of struct cpu_info if _KMEMUSER is defined.
2010-12-26 18:00:41 +00:00
he
b7a6da19d6
Print size_t and ssize_t with %zd, not just %d.
...
(How did this build before?)
2010-12-26 17:48:37 +00:00
martin
49b7c43441
Move ci_data first in struct cpu_info
2010-12-26 12:06:56 +00:00
martin
8e9a9e6134
sparc64 currently does not have ci_data as first member in cpu_info!
2010-12-26 11:32:38 +00:00
nonaka
d2662cfd92
Add missing argument to printk(). (from OpenBSD)
2010-12-26 09:03:56 +00:00
nonaka
57770fc935
Advertise printk() as a printf-like function. (from OpenBSD)
2010-12-26 09:02:52 +00:00
joerg
f640e4c776
Rename __BEGIN_PUBLIC / __BEGIN_HIDDEN to __BEGIN_PUBLIC_DECLS /
...
__BEGIN_HIDDEN_DECLS and corresponding __END_* macros. Push the extern
"C" logic into __BEGIN_PUBLIC_DECLS / __BEGIN_HIDDEN_DECLS to make them
easier to use in header files used by C++.
2010-12-25 22:30:52 +00:00
christos
d5760f00f3
merge the length getting code from rt_msg1 and rt_msg2 and make it fail
...
when the compatibility ifinfo is missing instead of returning junk.
2010-12-25 20:37:44 +00:00
tsutsui
5e318e5c0b
Fix one more typo that affects x68k with 040/060.
...
I hope this is the last one...
2010-12-25 16:37:22 +00:00
tsutsui
43093475a8
Put somehow missed code part in rev 1.36:
...
> Allocate lwp0upa (PA of lwp0 uarea) right after kernel rather than
> between other page tables to use different mappings for ste/pte pages
> as well as amiga and atari. Should resolve XXX comments in next68k and x68k.
2010-12-25 16:14:44 +00:00
tsutsui
5c6a12d86b
Fix another fatal typo. sigh.
2010-12-25 16:11:11 +00:00
tsutsui
add2bb1590
Fix harmless pasto and tweak some comments.
2010-12-25 15:29:34 +00:00
wiz
afc1680ec2
Add missing semicolon.
2010-12-25 15:27:08 +00:00
tsutsui
112ef494fa
Make sure MAXADDR is unsigned otherwise it could be mangled in shift ops
...
and causes silent hang on bootstrap. Analyzed on HP9000/362 I get today,
but I'm not sure how 040 lkptpa code has worked on my HP382...
2010-12-25 15:05:22 +00:00
tsutsui
ab1f939a01
Fix fatal typo and pasted lines slipped in the last December
...
that prevent 68030 machines boot on these ports.
(only hp300 and mvme68k have supported 030 models)
Sorry for so long breakage.
2010-12-25 14:42:59 +00:00
jmcneill
8dbd7a44d7
add USB interface assoc descriptor (IAD) info
2010-12-25 14:06:14 +00:00
macallan
b5ede66651
remove some ancient, unused debug code
2010-12-25 11:51:21 +00:00
macallan
6daafbee01
there is no R128_LITTLE_ENDIAN_EN flag, just lack of R128_HOST_BIG_ENDIAN_EN
...
Someone(tm) needs to test this on little endian hw
2010-12-25 03:29:08 +00:00
jakllsch
8e2d08248c
Use printf format macros for long longs.
2010-12-25 01:19:33 +00:00
jakllsch
fbe9cca8ce
Correct recently exposed printf format problem.
2010-12-25 01:08:44 +00:00
christos
62010e9c69
panic takes a printf format too.
2010-12-24 23:12:28 +00:00
jmcneill
df0c38f693
VIDIOC_QUERYCAP changes:
...
- use driver name instead of device instance name in 'driver' field
- add 'get_businfo' callback to fill in 'bus_info' field instead of
hard-coding "USB"
- use the kernel version for the 'version' field instead of 1
- adapt pseye and uvideo drivers to changes in struct video_hw_if
2010-12-24 20:54:28 +00:00