Commit Graph

226768 Commits

Author SHA1 Message Date
pooka 0159a35e80 obsolete the installed <rump/scsitest.h> header and make it private
to tests/dev/scsipi
2014-04-25 00:24:39 +00:00
mrg 4460048395 don't apply "ptyfsoldnodes" if /dev/pts does not exist, even if ptyfs
is listed in /etc/fstab.  without this, postinstall happily removes
all your ptys leaving you with none at all.  return an error if we
have ptyfs in /etc/fstab, but no /dev/pts.
2014-04-25 00:23:26 +00:00
pooka 37510bf29a CPPFLAGS for rump_private.h 2014-04-25 00:17:48 +00:00
christos e6c9ef61dd Fix volume name (Ed Maste) 2014-04-24 23:49:40 +00:00
pooka 8fa17e4756 scsitest is a SCSI target emulator used by one test, and has little
reason to get installed.  Make the component private to the test using
it and obsolete the installed one.

IOW, rename sys/rump/dev/lib/libscsitest -> tests/dev/scsipi/libscsitest
2014-04-24 21:46:44 +00:00
pooka 232a041b7a Wrap stpncpy() iff GNUC_PREREQ(4,8). Fixes USE_SSP=yes builds
with gcc 4.5.
2014-04-24 20:12:56 +00:00
christos e761cdd8b6 Explain what is going on with the 64 bit atomic ops, and restore them
for pure kernel use.
2014-04-24 19:23:00 +00:00
christos 3d0d60dd15 PR/48426: Dimitris Karagkasidis: Convert to sized, unsigned types.
Ideally we could use uint64_t, but for compatibility and performance
we don't (for now)
2014-04-24 18:43:02 +00:00
christos 9bbbeef3e7 PR/48426: Dimitris Karagkasidis: Make nfsstat use unsigned numbers. 2014-04-24 18:40:35 +00:00
christos 5f78e43780 Pass a file pointer to write data instead of writing to stdout.
No functional change.
2014-04-24 17:22:41 +00:00
pettai bb5b3d69da note kerberos(8) update 2014-04-24 14:57:37 +00:00
christos a2dd64f9b4 The sysctl code does not support verbose route printing that prints the
internal route statistics. Restore the old kmem route printing code that
was not just used for post-mortem displays. Reported by kardel@, test by
netstat -nrvf inet
2014-04-24 14:56:29 +00:00
christos 7cdbcec7f5 un __P 2014-04-24 14:54:51 +00:00
pettai efd5c8c1c2 remove duplicate resolve_free_handle(handle); 2014-04-24 14:49:43 +00:00
pettai 5a3d3c7618 Update build framework for latest heimdal-1-5-branch
Ok'ed and reviewed by elric@
2014-04-24 13:50:53 +00:00
pettai 9641b56ec0 Import latest heimdal-1-5-branch, merge conflicts
Ok'ed and reviewed by elric@
2014-04-24 13:45:33 +00:00
pettai 4f77a4588e Import latest heimdal-1-5-branch from git
Ok'ed + reviewed by elric@
2014-04-24 12:45:26 +00:00
tsutsui 619ff4fb47 Pull random notes on the Apollo Domain keyboard from ancient PR/3528. 2014-04-24 12:10:27 +00:00
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