226750 Commits

Author SHA1 Message Date
pooka
e1b9adcc58 Make sleepq_wake() type void. The return value hasn't been used in
almost 6 years.  Even if it were, returning an arbitrary lwp is a bit
of a wonky interface and can really work only when expected == 1.
2014-04-24 12:04:28 +00:00
tsutsui
f9e543313f Make the Apollo Domain keyboard actually work.
Tested on HP9000/425e and the keyboard model A1630-82001 R2 (RX-60857-HW)
provided by Miod Vallat.  Mouse support needs more work.
2014-04-24 11:58:04 +00:00
pooka
80733d752e in sleepq_wake(), honor the "expected" parameter 2014-04-24 11:56:11 +00:00
jnemeth
c9cad90aec space -> tab conversion 2014-04-24 03:00:10 +00:00
pooka
d6b3d0da5a allow use with linkers that don't support --warn-shared-textrel
(Solaris, OpenBSD)
2014-04-24 00:14:59 +00:00
pooka
d6454414fd Add a RUMP_USE_CTOR compile-time switch. If defined, use
__attribute__((constructor)) to determine which rump kernel components
and kernel modules are linked into the rump kernel.  If not defined
(default), use the regular approach with link sets.

This option is aimed to fix problems with toolchains where using link
sets is not possible because the linker does not generate the requisite
__start/__stop symbols for the link set sections (e.g. GNU gold, OS X, ...).
2014-04-23 23:25:45 +00:00
pooka
2393231e9a add a mask for currently valid ETHERCAP flags 2014-04-23 23:17:22 +00:00
riastradh
bca9723e6a matt@ did the real work for the Beaglebone, so credit him properly.
My memory misled me when I added this entry the other day.
2014-04-23 21:53:53 +00:00
riastradh
ff9a7f6db9 Avoiding arithmetic on void * need not be NetBSD-specific. 2014-04-23 21:34:17 +00:00
skrll
e97ebf330d Fix a logic inversion introduced with the matt-nb5-mips64 for
pmap_{zero,copy}_page cache alias handing. The check previously used
PG_MD_UNCACHED_P, where it now uses PG_MD_CACHED_P, when considering if
a cache invalidation is required.

Additionally flush the cache for the uarea va to avoid potential (future)
cache aliases in cpu_uarea_free when handing pages back to uvm for later
use.

ok matt@

Hopefully this addresses the instability reported in the following PRs:

PR/44900 - R5000/Rm5200 mips ports are broken
PR/46170 - NetBSD/cobalt 6.0_BETA does not boot
PR/46890 - upcoming NetBSD 6.0 release is very unstable / unusable on cobalt qube 2
PR/48628 - cobalt and hpcmips ports are dead
2014-04-23 20:57:15 +00:00
pooka
afbb108620 domains are attached by module(-like) constructors, so no need to
play link_set games with them.
2014-04-23 17:05:18 +00:00
macallan
c32ba149e1 rev. 27 SX needs memory referencing instructions written to 64bit aligned
addresses ( my rev. 25 just ignores the lower 3 bits )
so, we zero these bits now
2014-04-23 16:54:21 +00:00
pooka
ee62fa6483 Include LIST_ENTRY() in "struct rump_component".
Main benefit: rump_component_load() can now be called from an
early-running constructor since the routine doesn't need to allocate
memory.
2014-04-23 16:17:55 +00:00
macallan
2997acefaf if a device is marked as BS_EARLY but no driver is present don't panic()
when the device is also BS_OPTIONAL
now kernels without the sx driver will boot again on hardware that has SX
2014-04-23 09:06:57 +00:00
msaitoh
aef7c0c5ee Enable pseudo-device ipfilter. 2014-04-23 07:34:30 +00:00
kardel
04f5544c2e install bcmgpio.4 for evbarm arch 2014-04-23 07:04:01 +00:00
kardel
9171ee3159 move mcp23s17gpio.4 to MI SPI drivers section 2014-04-23 06:53:14 +00:00
wiz
7363dee110 New sentence, new line. 2014-04-22 22:23:43 +00:00
phx
625c110fa2 Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
2014-04-22 21:37:52 +00:00
christos
57561cf1db The kernel uses 64 bit atomic ops. 2014-04-22 19:27:17 +00:00
maxv
2056c71da8 Fix a read-beyond-end string read.
coredump_buildname() copies 'pattern' into 'name', and handles special
characters such as "%n". "%n", if present, will be replaced by p->p_comm.

	error = coredump_buildname(p, name, pattern, MAXPATHLEN);

This function handles overflows, and returns an error when 'name' becomes
larger than MAXPATHLEN. However, when coredump() calls it, 'name' is used
before the error check, with:

	lastslash = strrchr(name, '/');

'name' is not guaranteed to be NUL-terminated, because of the *d = *s in
coredump_buildname(). This strrchr will read a string which is not NUL-
terminated (ie. until finding a '\0' in memory).

'pattern' can't be higher than MAXPATHLEN. A user can fill it in via a
PT_DUMPCORE ptrace call, given the input is not longer than MAXPATHLEN.
Since the 2-bytes-sized "%n"s will be replaced by p->p_comm (which is
user-settable, like a 10-bytes-sized "0123456789"), 'name' can become
longer than 'pattern' (and thus longer than MAXPATHLEN). Some 'a's at the
end of the buffer will make sure 'name' is not NUL-terminated.

    pattern: "%n%n%naaaaaaaaaaaaaaaaaaaaaaaaaaaa\0"
              | | | |||||||||||||||||||||||||||||
  ->   name: "012345678901234567890123456789aaaaa" [no \0]
              |         |         |         |||||MAXPATHLEN

Fix it by checking 'error' before calling strrchr.
2014-04-22 19:01:47 +00:00
kardel
511648e509 add a driver for BCM2835 obio gpio 2014-04-22 18:51:35 +00:00
reinoud
033b7adbef Add the missing mpcaa_memh to reflect the correct offset.
The offsets are not actually used now on matt's request.
2014-04-22 16:10:48 +00:00
reinoud
8165537e94 Missing EOL at end of file 2014-04-22 16:08:24 +00:00
reinoud
b885a86414 Adjust the GIC offset to match the linux dts 2014-04-22 16:06:27 +00:00
christos
29f735df08 remove -v no/op 2014-04-22 15:55:16 +00:00
tsutsui
be8da3cbb0 Also fix the apci device address in dnkbd.c as apci.c rev 1.12:
http://mail-index.netbsd.org/source-changes/2014/04/10/msg053940.html

Finally dnkbd(4) is confirmed working at least on bootloader.
Thanks again to Miod Vallat.
2014-04-22 15:49:14 +00:00
christos
36a92b0a64 Kill lint libraries we don't (or can't yet) produce 2014-04-22 15:27:50 +00:00
christos
2e7413fc9c add atomic.c 2014-04-22 15:12:52 +00:00
christos
0b24109d1b make compilable from the kernel 2014-04-22 15:12:35 +00:00
christos
c8ad22d607 Add fake atomic 64 ops for those who don't have them.
XXX: used to be arm, now it is also i386.
2014-04-22 15:02:38 +00:00
skrll
3622a5285b Remove stray comment. 2014-04-22 14:20:03 +00:00
christos
9c5e3a7ee9 we don't really have 64 bit atomic ops. 2014-04-22 14:09:19 +00:00
pettai
debf61b4d2 heimdal's git (master/origin) has moved to github 2014-04-22 14:07:31 +00:00
skrll
ddd68d1ef7 Call pmap_free_l2_bucket for the kernel pmap so that l2b_occupancy is
updated. pmap_free_l2_bucket already deals with the kernel pmap properly.

ok matt@

Should fix the

panic: kernel debugging assertion "mappings <= l2b->l2b_occupancy" failed:
file "/usr/src/sys/arch/arm/arm32/pmap.c", line 3838

problem reported on port-arm by Joachim Thiemann
2014-04-22 14:00:45 +00:00
joerg
61731496eb Retire USE_COMPILERCRTSTUFF=yes. 2014-04-22 13:20:58 +00:00
skrll
4caeb3c4af Fix a format string to actually print the prot 2014-04-22 12:13:09 +00:00
wiz
82cdf33b46 Bump date for previous. 2014-04-22 06:02:06 +00:00
pettai
5fcf04fcdf Swap spaces to tab on second line (so netbsd.org/changes updates correctly) 2014-04-22 05:32:55 +00:00
ginsbach
236104be8e Add optional method for specifying protocol as part of the service
option.  This is similar to how the port number and protocol name are
specified in services(5).
2014-04-22 02:23:03 +00:00
pgoyette
5b03462b1b Revert previous and fix correctly. Thanks, joerg 2014-04-21 22:40:00 +00:00
christos
538614fe8f Put back MKLINT=no for now
- unnamed unions [c99]
    - __builtin_offsetof [gcc]
    - typeof [gcc]
2014-04-21 21:57:03 +00:00
christos
e305f86ab5 add more attributes 2014-04-21 21:52:24 +00:00
pgoyette
c8008139a7 Insert { ... } to keep gcc happy when DPRINTF() macro is empty. 2014-04-21 20:24:21 +00:00
christos
722e1fac67 fix sparc debug sets 2014-04-21 19:26:56 +00:00
christos
0497175db6 disable assert for lint. 2014-04-21 19:13:22 +00:00
christos
b00e83788b forward decl for struct pcb. 2014-04-21 19:12:11 +00:00
christos
ae43465b77 disable the extension test for now. 2014-04-21 19:10:41 +00:00
christos
084b9a8547 use a different function instead of __builtin_isnan, because it is polymorphic
and we don't handle this yet.
2014-04-21 19:09:52 +00:00
christos
1be8982a73 add asm function renames 2014-04-21 18:57:20 +00:00