213523 Commits

Author SHA1 Message Date
matt
0378db1171 Add __HAVE_ATOMIC64_OPS and __HAVE_PCI_CONF_HOOK 2012-09-15 06:10:50 +00:00
matt
03dd36c2d1 Add some PCI devices 2012-09-15 06:10:13 +00:00
rmind
1e84067639 - Manage anonymous UVM object reference count with atomic ops.
- Fix an old bug of possible lock against oneself (uao_detach_locked() is
  called from uao_swap_off() with uao_list_lock acquired).  Also removes
  the try-lock dance in uao_swap_off(), since the lock order changes.
2012-09-14 22:20:50 +00:00
rmind
8c26068070 - Describe uvm_aobj and the lock order.
- Remove unnecessary uao_dropswap_range1() wrapper.
- KNF.  Sprinkle some __cacheline_aligned.
2012-09-14 18:56:15 +00:00
pooka
8b5f6f3669 Do not assume that O_FOO flags have matching values in the rump kernel
and hypervisor.
2012-09-14 16:29:21 +00:00
joerg
c4eabd7bd6 More __dead 2012-09-14 15:37:03 +00:00
joerg
af71fc1536 Fix GCC to correctly implement the i386 psABI on NetBSD.
This consists of two parts:
- for NetBSD/i386 and NetBSD/AMD64 with -m32, use a default stack
  alignment of 23bit as specified by the ABI
- ensure that double and long long variables on the stack are by default
  only aligned to 32bit, if there is nothing else in the function
  needing a larger stack alignment

The combination ensures that SSE variables on the stack trigger the
realignment logic, but just using double or long long doesn't.
2012-09-14 13:00:01 +00:00
matt
894fca2713 Beginnings of PCI support. Interrupts still need to be done. 2012-09-14 04:53:58 +00:00
matt
5187e69fd3 Fix CFG_ADDR_REG 2012-09-14 04:52:34 +00:00
matt
fbf46fbaf0 Only fetch savecode if scp is word aligned (prevents recursive ddb faults). 2012-09-14 03:58:47 +00:00
matt
8697d82684 Verify the source isn't a dummy source. 2012-09-14 03:52:50 +00:00
matt
0a59566020 Set dv_private, use a9tmr_private. 2012-09-14 03:52:19 +00:00
matt
1e73a414de Add L2 cache flush routines. (not yet enabled). 2012-09-14 03:51:01 +00:00
joerg
ed602fb487 Don't use const foo const as type, one const is enough. 2012-09-13 21:44:49 +00:00
joerg
69d9b49983 Workaround infrastructure bug where additional rpath flags are added for
/lib, resulting in linker warnings for the compat case.
2012-09-13 21:13:34 +00:00
macallan
442b3b690c make video modes work that need a screen width which isn't directly supported
by the rendering engine - just use the next higher supported stride
2012-09-13 21:12:40 +00:00
joerg
3a9c89f51f Mark npf_session_worker as __dead. 2012-09-13 21:09:36 +00:00
martin
9851af6be6 npftest only is build with dynamic libraries 2012-09-13 21:05:17 +00:00
martin
5a79cb1f57 Do not build npftest without shared libraries - it can't work. 2012-09-13 21:02:50 +00:00
christos
f9c0aa05f4 Don't fail if we don't have a current_parsed_root, makes:
'echo version | cvs server'
work again.
2012-09-13 17:45:07 +00:00
pooka
97fc939fe6 Rename structure members to make the code compile in environments
where "linux" is #defined.
2012-09-13 13:59:33 +00:00
nonaka
937cefb281 regen. 2012-09-13 12:16:47 +00:00
nonaka
ffaa81eddb Added ALTERA EP4CGX15BF14C8N entry. 2012-09-13 12:11:06 +00:00
martin
963ce3eec6 Adapt for _UC_TLSBASE 2012-09-13 11:53:45 +00:00
martin
d8e9a75f44 Adapt for _UC_TLSBASE addition 2012-09-13 11:49:16 +00:00
martin
25aaf6211d Fix register usage 2012-09-13 11:47:46 +00:00
wiz
2ea831cdd8 Fix typo in syslog message.
From Edgar Fuß in PR 46950.
2012-09-13 11:09:41 +00:00
spz
a92a2633d3 apply fix for CVE-2012-4244 from upstream
upstream changelog:
          --- 9.9.1-P3 released ---

   3364.  [security]      Named could die on specially crafted record.
                          [RT #30416]
2012-09-13 05:32:07 +00:00
macallan
c79b785a15 add mode setting support
While there, don't pretend to support the Permedia2 non-V - I don't have the
hardware and it has never been tested in the first place. The only hardware
this has been tested on is a TechSource Raptor GFX 8P / Sun PGX32 which
happens to be a Permedia2V with Sun firmware.
2012-09-13 02:09:00 +00:00
matt
6e8da97cc9 Correct copyright/fix comments. 2012-09-13 00:36:12 +00:00
matt
2ffc59762f Make sure the handler addresses are 32-bit aligned. 2012-09-12 23:06:15 +00:00
rjs
5abdc4ce9a Allow build with MKRUMP=no. 2012-09-12 19:20:37 +00:00
matt
56a54cbe85 Fix bas code, use ldr 2012-09-12 18:23:33 +00:00
martin
9cf2fc91c7 Fix printf format 2012-09-12 16:26:02 +00:00
matt
11561450f1 N32 uses dadd instructions to manipulate stack (actually, all ABIs except
O32 use dadd).
2012-09-12 15:09:49 +00:00
matt
426a76190c Only copy the ucontext_t in pthread_setcontext if _UC_TLSBASE is set.
Conditionalize the test on _UC_TLSBASE being defined.
2012-09-12 14:55:48 +00:00
manu
eed5245297 Fix the build, _UC_UNIQUE has been renamed _UC_TLSBASE 2012-09-12 14:13:43 +00:00
martin
18e375f3bb Set list changes for npftest binary and npf tests 2012-09-12 14:07:51 +00:00
martin
e8e9f65b79 New test directory for npf 2012-09-12 14:07:10 +00:00
martin
001611b06f ATF wrapping of the npf tests 2012-09-12 14:06:31 +00:00
martin
18d0240310 Install the npftest binary 2012-09-12 14:06:02 +00:00
pooka
1220d53611 attempt to inform user of what the error means 2012-09-12 12:38:16 +00:00
macallan
12a603e5e8 support anti-aliased fonts in 8 bit
while there, fix pm2fb_bitblt() packed mode, for real this time
TODO:
- use packed mode when uploading glyphs
- let the hardware do the alpha blending if possible
- mode setting
2012-09-12 12:07:04 +00:00
martin
550571fe00 When emulating poll/select better tell the events of the host kernel
apart from those received from the rump kernel. Also handle timeout.
Patch from pooka.
2012-09-12 10:35:10 +00:00
martin
a76a87c096 Add two new command line options to help integration into ATF:
-L lists the available test cases, -T executes a single named test.
2012-09-12 08:47:14 +00:00
manu
bba80928a8 setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
  (powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
  setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
  (hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
  powerpc, sh3, sparc and sparc64 is left to portmasters
  sparc64

Approved by core@
2012-09-12 02:00:51 +00:00
msaitoh
9a4c8f31d9 -O1, enable PUFFS, KTRACE, fss and putter. 2012-09-12 00:50:30 +00:00
pgoyette
34e5f77540 Initialize the sysctl(9) stuff before configuring the spd(4) devices.
Otherwise, the devices do not create their own sysctl nodes!
2012-09-12 00:36:41 +00:00
matt
b9b9bd8933 Add 64bit atomic ops for ARMv6+ (using ldrexd/strexd). 2012-09-11 20:51:25 +00:00
christos
d3a9c484a4 PR/46945: Steffen Nurpmeso; el_getc() doesn't document it's setting errno 2012-09-11 20:29:58 +00:00