Commit Graph

229737 Commits

Author SHA1 Message Date
mlelstv 76c8639541 Accept driver names only in the two args form together with a minor number.
That's what the documentation says and also avoids the case where the driver
name converted to a major number is interpreted as a packed dev_t number.
2014-08-22 22:28:50 +00:00
aymeric 94f28557e3 In tagq_free(), fix the test checking whether a TAGQ should be removed from
its tailq. This required introducing a new flag in the TAGQ structure to
avoid reverting to poking under the hood of the queue.h API.

The concrete bug it solves is that using tags would make vi crash reliably
on exit.
2014-08-22 21:28:20 +00:00
matt 4e8f1b53e9 Rework to be avoid a conditional assignment which results in:
sbin/ping6/ping6.c:1879:8: error: 'cbit.skip' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    cur += ntohs(cbit.skip) * 32;
2014-08-22 20:54:29 +00:00
jakllsch 02930256c2 Fix what is almost certianly an off-by-one error when configuring pads on
AM335x for BPP greater than 16.
2014-08-22 20:01:16 +00:00
jakllsch 2911d0aae1 Support WSDISPLAYIO_GET_FBINFO ioctl in tifb(4). 2014-08-22 19:59:18 +00:00
jakllsch b3eb8c6c2b tifb can support 32 and 24 BPP framebuffer modes; pull in corresponding raspos
support.
2014-08-22 19:44:04 +00:00
matt 903c030159 Remove enclosing parens on return. 2014-08-22 17:19:48 +00:00
riastradh b4d2027a4b Fix failure case in rb_tree_find_node_leq/geq.
Return NULL, not `NULL - offset'.

XXX pullup to netbsd-5, netbsd-6, netbsd-7
2014-08-22 17:17:02 +00:00
hannken d0fd8c21fa Use mount from argument "mp", "vp->v_mount" is not valid here.
PR kern/49142 (panic in ext2fs_loadvnode mounting an ext2fs filesystem)

Needs pullup to -7
2014-08-22 16:49:30 +00:00
apb 6b933a652f Test make(1) by running the maintained tests, not unmaintained
copies of them.

* Remove all old tests from src/tests/usr.bin/make/d_*.  These tests
  were unmaintained old copies of the actual tests which are maintained
  under src/usr.bin/make/unit-tests.  One exception is the test in
  d_unmatchedvarparen.mk, which was new, but has nw been added to
  src/usr.bin/make/unit-tests/varmisc.mk.
* In src/tests/usr.bin/make/Makefile, copy all
  the tests from src/usr.bin/make/unit-tests to
  ${DESTDIR}/usr/tests/usr.bin/make/unit-tests.
* In src/tests/usr.bin/make/t_make.sh, run the tests installed above,
  instead of the old tests.
* In etc/mtree/NetBSD.dist.tests, create the
  usr/tests/usr.bin/make/unit-tests diectory.
* Update the set lists for all the above.
2014-08-22 16:45:32 +00:00
matt 9205e77af0 add powerpc64 support 2014-08-22 15:27:50 +00:00
riastradh 46b6cca670 Revert to mapping the whole GTTMMADR region all at once for now.
This was split up so we could map the GTT prefetchable without
interfering with the MMIO registers, but it interferes with old drm
which tries to map the whole region and which is still hooked up for
the moment.

Once we unhook old drm for good we can put this back.
2014-08-22 15:26:28 +00:00
pooka 272d41f121 Add a compile-time selector for I/O space operations. Needs more work
some day, but allows virtio drivers to work today.
2014-08-22 14:28:58 +00:00
pooka b41a4e160f Nuke the DOMAINADD() macro and just call domain_attach(), now that things
work correctly that way.
2014-08-22 11:34:28 +00:00
pooka 71c14bfaa2 Change the meaning of the boolean parameter to domaininit().
was: attach route domain if found from domains link set
now: attach any domain which is found from domains link set

No functional change to monolithic kernel.  In a rump kernel, which
attaches networking domains "modularly", prevents domains from
accidentally leaking in via the link set in static linked scenarios.

Problem reported by cube, Tom Bousso, and the voices in my head.
2014-08-22 11:28:03 +00:00
apb 68cca2bb2f sort 2014-08-22 10:51:38 +00:00
apb 0b9da2a3de Adapt the sortlists target to deal with commented file names, like
"#./dir/file".  Such lines now compare equal to their uncommented
counterparts like "./dir/file".
2014-08-22 10:51:18 +00:00
pooka 08f38d958e Build virtio components as part of RUMPPCIDEVS 2014-08-22 09:58:55 +00:00
pooka db494c8796 Add a rump kernel component for ld@virtio. 2014-08-22 09:57:05 +00:00
skrll 32f3cf5261 Remove unnecessary #include 2014-08-22 09:49:13 +00:00
pooka d7b8f51b8f Add a rump kernel component for the vioif virtio network interface. 2014-08-22 09:48:54 +00:00
pooka e125b93131 Add a rump kernel component for the virtio bus. 2014-08-22 09:45:29 +00:00
matt 9e064c8f61 Check the variable for RELOCATABLE_NEEDS_FIXUP 2014-08-22 06:52:37 +00:00
matt 80f59eea37 Simplify a little (avoid indirection) 2014-08-22 06:51:34 +00:00
mrg 975cc27cdd rerun mknative for hppa, m68k, sparc*, and vax. 2014-08-22 05:39:20 +00:00
apb ee8e02daed Add a .PATH, so you can be in any other directory and run
"make -f /path/to/this/Makefile sometest.out"
and have it create sometest.out in your current directory.
2014-08-21 22:00:30 +00:00
christos 83a84c1bf3 over-initialize for the benefit of gcc 2014-08-21 15:43:35 +00:00
apb c354f55834 Add varmisc.mk, for miscellaneous variable tests.
For now, the only test is copied from
src/tests/usr.bin/make/d_unmatchedvarparen.mk.  This was
the only test in src/tests/usr.bin/make that was not also in
src/usr.bin/make/unit-tests.

XXX: src/tests/usr.bin/mk should be changed to reach over to
src/usr.bin/make/unit-tests, instead of keeping out of date copies
of the tests.
2014-08-21 15:37:13 +00:00
martin 0bf2d320c8 Revert previous, we have restores ABI for {u,}int_fast_*_t. 2014-08-21 15:27:37 +00:00
martin 3b1bddb922 Restore ABI for fast_{u,}int_*_t to what we have used for thirteen years. 2014-08-21 15:25:41 +00:00
reinoud f873bdb932 Fix I2C naming for HDMI 2014-08-21 14:06:39 +00:00
reinoud 252f8540f5 Correct minor TX_CTRL_0_ guess and document the INTR interrupt control
register bits from the lan9730 docs. No functional change.
2014-08-21 14:02:10 +00:00
macallan f8303d815f #if 0 code to map the VGA BIOS
I've been unable to find any code that actually uses the mapping and we may
want to read the ROM from drm2.
If no users show up within a week or so I'll delete it.
2014-08-21 13:52:22 +00:00
apb b9dad2e00f Give each group of tests its own output file.
* Rename each sub-makefile to *.mk;
* Add a *.exp file of expected output for each sub-makefile;
* Remove test.exp, which is replaced by all the other *.exp files.
* Use suffix rules to generate *.rawout and *.out files for
  each test case.
* Rewrite the test and accept targets to adapt to the new way.

The old (now removed) test.exp file is almost identical to the
concatenation (in the correct order) of all the new *.exp files.  There
are expected differences in makefile names embedded in the output, and
the new "exit status" lines.  Some old "*** Error code 1 (ignored)"
lines are also removed (replaced by new "exit status 1" lines).
2014-08-21 13:44:51 +00:00
apb 8189a8d901 Stricter sed expression for matching an optional PID in square brackets. 2014-08-21 13:31:52 +00:00
apb ff90baf509 When sanitising test output, replace "${TEST_MAKE}" with "make".
This string may appear in error messages that end up in the output.
2014-08-21 12:42:03 +00:00
christos 9171ceed70 revert previous; code checking tool is incorrect. Variables are not being
used in the non tbolt case.
2014-08-21 12:25:01 +00:00
christos 2e03efc64b PR/49087: Jarmo Jaakkola: Make sure that the first dependency is the C source
file so ${.IMPSRC} gets set correctly.
2014-08-21 08:52:23 +00:00
skrll 673e836663 More tidyup after joerg's copy&paste disaster. I have ddb symbols again. 2014-08-21 07:57:25 +00:00
apb d0d322eb94 Document options COMPAT_70. 2014-08-21 07:51:32 +00:00
matt b6a0909548 Revert back to 1.7. 2014-08-21 06:48:04 +00:00
maxv 5f2f7d8e15 Remove dead returns:
return VAR/func(XX);
	return VAR;

The latter is never reached. Sent on tech-kern@, no disagreement.
2014-08-21 06:40:35 +00:00
joerg 64bc057870 Drop stray } 2014-08-20 22:02:20 +00:00
matt 9e2fe0aaa3 i386 doesn't use subint fast{8,16} 2014-08-20 20:15:55 +00:00
tsutsui c07d3ea4e7 Sync with sparc/dev/fd.c rev 1.155.
> Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().

Note sun3 still uses gcc 4.5.4 but also panicked by this old bug,
so probably this problem was triggered by not gcc 4.8 but struct disk
changes (struct disk_geom was added in <sys/disk.h> rev 1.58),
which increased sizeof(struct fd_softc) from 248 bytes to 296 bytes.
(i.e. now struct fd_softc could be allocated in a different pool block,
 probably near the wrong pointer of the struct disklabel)

Anyway, this fix should be pullued up to netbsd-7.
(probably I'm the only user of floppy on sun3 though)
2014-08-20 17:48:57 +00:00
ginsbach b0f0dbfd65 Add one more RAS 2014-08-20 16:05:03 +00:00
matt 3ff6416ad7 Fix netbsd-stdint.h to allow char and short for int_fast8_t and int_fast16_t
and their corresponding unsigned variants.
2014-08-20 16:00:15 +00:00
riastradh f7a0cd6406 Add some Linux list routines. 2014-08-20 15:26:52 +00:00
joerg 1e46ecab88 Since GCC 4.5 doesn't support noexcept, don't pretend to support it by
using -std=c++0x. Just use the correct value for x.
2014-08-20 15:19:39 +00:00
riastradh f40a74cd43 Drop take the {ttm,gem} vmobjlock in the fault handler.
- We don't need this lock.
- uvm does nothing between taking it and calling the fault handler.
- Now that the uvm_aobj shares vmobjlock with the {ttm,gem} uvm
  object, we must not hold the lock when we call uvm_obj_wirepages on
  the uvm_aobj.

XXX pullup to netbsd-7
2014-08-20 13:48:08 +00:00