Commit Graph

105117 Commits

Author SHA1 Message Date
christos 242fd69b63 give the name of the dup initialization. 2010-05-05 02:20:42 +00:00
jym d66ce3b289 Enable the NX bit feature for Xen i386pae and amd64 kernels.
Tested with Xen 3.1 and Xen 3.3, dom0 and domU, by bouyer@ and jym@.

Ok bouyer@.
2010-05-04 23:27:13 +00:00
macallan d3a30408f7 add a bunch of small utility functions to pick video modes based on things
like dot clock, resolution etc.
2010-05-04 21:17:10 +00:00
kardel a2c1ee7188 switch to nanotime() for 100ns resolution 2010-05-04 19:23:56 +00:00
macallan 38ea318425 remove now redundant ri = ... lines in putchar() methods
Looks like none of my usual test builds used rasops2.c
2010-05-04 19:16:22 +00:00
tsutsui fa836933a2 Switch NetBSD/news68k to using 8KB/page in kernel.
It slightly improves performance on NWS-1750D (MC68030 25MHz):
http://mail-index.NetBSD.org/port-m68k/2009/12/08/msg000204.html

MI m68k/pmap_motorola.c and other sources can handle both 4KB/8KB pages
(amiga and atari have used 8KB pages for many years) and there is
no binary compatibility issue on it.
(kernel modules might be affected but 5.99.29 was just two days ago)
2010-05-04 16:47:13 +00:00
tsutsui 7ea90218ce Make local functions static. 2010-05-04 15:38:04 +00:00
tsutsui 15939df54d Fix dumb build errors. Compile test only. 2010-05-04 15:32:31 +00:00
tsutsui a97c5654cb Merge .rodata.* sections (like .rodata.str1.4) into .rodata section.
Newer binutils creates such sections and old firmware might be confused.
2010-05-04 15:00:39 +00:00
tsutsui 9a9555d932 Some KNF. 2010-05-04 14:14:54 +00:00
nonaka 71c9ab4685 fix compile failure. 2010-05-04 12:36:37 +00:00
tsutsui 25362a67ff Don't #error on invalid LABELSECTOR or LABELOFFSET on __RUMPKERNEL build.
As mentioned in src/sys/rump/dev/lib/libdisk/Makefile,
rump(4) builds don't check if each ${MACHINE} actually supports
MBR in MD readdisklabel(9) ops while it pulls MD <machine/disklabel.h>.

Workarounds so long broken build of ews4800mips.
2010-05-04 12:20:50 +00:00
macallan 1c134541af use box drawing font if needed 2010-05-04 05:10:25 +00:00
macallan 8d6574053c add some PLL-specific register definitions 2010-05-04 05:08:01 +00:00
macallan d87e1bf08e this has been sitting in my tree too long:
- device_t-ify
- sanitize debugging #ifdefs
- deal with firmwares setting up modes using other clocks than #0
- get rid of sparc and macppc-specific code, use device properties instead
- while there, use alternate box drawing font if needed
2010-05-04 05:07:14 +00:00
macallan 9fae8e4448 use alternate font if available ( for autogenerated box drawing characters ) 2010-05-04 05:00:33 +00:00
macallan 15a269471f autogenerate box drawing characters for fonts that don't have them, put them
into an alternate font pointed at by the recently added mappings in wsfont,
adapt all putchar() methods except the rotated ones to use them
XXX no attempt has been made to make this work with rotation
2010-05-04 04:57:34 +00:00
macallan 9bdc7d44b6 add translation tables for ISO fonts in order to map unicode box drawing
characters to something else than whitespaces
2010-05-04 04:53:59 +00:00
phx 38f01942b4 Fixed descriptor size (noticed by nisimura).
Using two TX descriptors. Might be better, although libsa seems to work with
one.
2010-05-03 18:55:09 +00:00
mhitch 425781ccc5 Fix error introduced with timecounters - RTC clock register only uses
the last 2 digits of the year.  Fixes setting the clock and keeps the
DECstation PROM happy and stops it from setting the date to Jan 1, 1972.
2010-05-03 18:04:56 +00:00
tsutsui 3f23c95545 Sync kloader(4) behavior with hpcmips:
- use bootstr passed via reboot(2) with RB_STRING for the next kernel path
- prepare independent opt_kloader_kernel_path.h for KLOADER_KERNEL_PATH
- some cosmetics to reduce diffs from hpcmips

Tested on HPW-50PA (Hitachi PERSONA).
2010-05-03 12:16:04 +00:00
darran 17b7c13057 DTrace: Fix several bugs where the mod_ctf_get() function could return
success even though no CTF section was present in the kernel or module.
This fixes the panic that several people saw when trying out the FBT
provider without updating /boot or missing a CTF section in /netbsd.
2010-05-03 09:51:36 +00:00
skrll 7d9f1f6afe Allocate a major number for pci and created device nodes. 2010-05-03 08:45:43 +00:00
skrll 900e6610de Add PCIVERBOSE 2010-05-03 06:59:47 +00:00
dholland e26685ec75 Fix a crash during alc888 initialization caused by holding a pointer
across realloc. Patch from Bj?rn Barkenfelt in PR kern/41957, rearranged
somewhat by myself.
2010-05-03 04:36:43 +00:00
dholland 05d90ebea1 Blanking the path buffer only needs to be done when DIAGNOSTIC.
(I meant to set it back this way before committing but evidently forgot
last night. Thanks to rmind for noticing.)
2010-05-02 23:22:51 +00:00
kefren f4183d10ff Permit the existence of a route with unlinked ifp and ifa,
enabling this way the posibility to send a packet on an interface with
source address from another interface.
2010-05-02 19:17:56 +00:00
jakllsch 59a03cddc2 This only needs one bus_space_tag_t.
While here, rename one of the bus_space_handle_ts
to be be descriptive of its function.

Fixes crash caused by uninitialized bus_space_tag_t
discovered by Paul Goyette.
2010-05-02 18:49:13 +00:00
plunky b8a6a61f01 The spl inline functions refer to external symbols that are only
defined in the kernel.

Wrap kernel-specific declarations in #ifdef _KERNEL to avoid unresolved
references when including from userland.
2010-05-02 18:03:31 +00:00
jakllsch 488f603517 Add (missing) newlines to error messages. 2010-05-02 17:37:52 +00:00
chs 7f20444bc1 add alipm and its iic bus. 2010-05-02 17:24:35 +00:00
phx 94d41e64cc Bumped version, because of last changes. 2010-05-02 14:27:07 +00:00
pgoyette a26d53cca0 Include support for BCM5481. From OpenBSD and confirmed to work by
myself on XFX nForce 790i motherboard.
2010-05-02 13:49:17 +00:00
phx f6b5358cf9 Fixed ALLOC() macro to allocate properly aligned memory. 2010-05-02 13:36:30 +00:00
phx cea3999396 Add support for Qnap TS101 (untested) and Synology-DS boards.
Detect Synology SATAlink device (although still unused).
New skg driver for Marvell SKnet Yukon-lite based GbE, used on most DS boards.
As there is no documentation available, it was based on if_sk.c, with lots
of testing. Known problem: The MAC address on my DS-101g+ is always read
as 00:11:22:33:44:54, but sk(4) unfortunately has the same problem.
New allocaligned() function to replace non-working ALLOC() macros.
2010-05-02 13:31:14 +00:00
pgoyette e3643c0afa Regen 2010-05-02 12:43:05 +00:00
pgoyette 9054e40691 Add Broadcom BCM5481 and BCM5709S - From OpenBSD 2010-05-02 12:38:06 +00:00
martin c529dbfa93 Fix R_SPARC_OLO10 relocations.
XXX this whole code does not look like it would have a chance to work on
32bit kernels, but I can't test right now.
2010-05-02 11:43:30 +00:00
pooka e7f4f9320b ABC2010 paper 2010-05-02 11:11:36 +00:00
pooka 193bcc771a If a builtin dependency is missing, error instead of panic. As
pointed out by martin, configurations like builtin nfsserver can
be succesfully linked without including all dependencies (specifically,
nfs).  Until all such weirdosities are fixed, opt for at least a
semifunctional system.
2010-05-02 11:01:03 +00:00
dholland 30c9deb259 Don't printf a userspace pointer; print the copied-in kernel version
instead, now that it's readily available. Fixes PR 43217.
2010-05-02 06:35:21 +00:00
dholland 7785b64ee7 5.99.29: smaller struct exec_package. 2010-05-02 05:31:47 +00:00
dholland 54f6c52ba9 Remove the nameidata from struct exec_package. It was used only for two
things: passing an argument to check_exec, which is better done explicitly,
and handing back the resolved pathname generated by namei, which we can
make an explicit slot for in struct exec_package instead. While here,
perform some related tidyup, and store the kernel-side copy of the path
to the executable as well as the pointer into userspace. (But the latter
should probably be removed in the future.)
2010-05-02 05:30:20 +00:00
christos ecc4179d07 Replace iwn_tx from rev. 1.39 with a port of the current OpenBSD version.
Remove superfluous call to bpf_detach.
Add comments regarding porting issues and add a couple of cosmetic changes
that reduce the diffs to the OpenBSD version. From Sverre Froyen
2010-05-02 02:06:15 +00:00
pooka 199d07fe55 fix field initializers 2010-05-01 23:40:21 +00:00
pooka 811310d0d4 remember to add audio to the list of device components 2010-05-01 23:24:40 +00:00
pooka 3a2dd9aab6 support pad(4) 2010-05-01 23:21:24 +00:00
pooka f60e2f41a7 add audio(4) support 2010-05-01 23:19:56 +00:00
pooka 7d2b64974c forward-declare struct uio (required by rumpvnode_if.h) 2010-05-01 23:16:31 +00:00
reinoud bb702d3252 As per change in NiLFS2 spec, select the superblocks on highest checksum
number and not on their timestamp since one of the timestamps could be wrong when the
clock was set wrong for whatever reason.
2010-05-01 21:21:27 +00:00