Commit Graph

229577 Commits

Author SHA1 Message Date
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
christos 233c59f4d5 PR/45716: Anthony Mallet: emacs (various versions) dies on unwind stuff in gcc 4.8
Apply fix that got missed as this file got moved from dist/gcc to dist/libgcc:

Somehow emacs tries to unregister frame info for a symbol it did not register.
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.

XXX: pullup 7
2014-08-20 13:29:07 +00:00
justin aaf730d309 Add missing include 2014-08-20 12:09:15 +00:00
apb 9dba8e3973 Add tests for VAR != command. 2014-08-20 08:39:14 +00:00
apb 21c7c4bccf It should not be an error to have VAR != command that prints no output 2014-08-20 08:37:25 +00:00
msaitoh 07fcf9a40c Regen. 2014-08-20 08:00:39 +00:00
msaitoh 9eeedb9728 BCM5714 and BCM5780 are used for both copper and fiber. 2014-08-20 08:00:18 +00:00
macallan f190e8714e don't blindly assume that PAGE_SIZE == 4kB
Now X works again.
2014-08-20 00:40:33 +00:00
jnemeth 0e7c8bd031 Sync with sparc/dev/fd.c:1.155.
Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().

I'm not sure why this 18 year old bug didn't cause problem before
(at least my old 5.99.23 kernel worked), but probably it's triggered
by new gcc 4.8 which might do more aggressive memory allocation.
The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4).

Should be pulled up to netbsd-7.
2014-08-19 18:20:51 +00:00
reinoud 5d42d105e8 Implement i2c using gpio for Exynos5 and Odroid-XU 2014-08-19 16:18:15 +00:00
matt ef1ba863e5 Compute u<type>_max by doing 2u<x>*type_max+1u<x>. 2014-08-19 15:46:46 +00:00