Commit Graph

192247 Commits

Author SHA1 Message Date
jruoho
7f32058c79 Remove pthread_attr_getscope() and pthread_attr_setscope(). 2010-07-07 08:41:11 +00:00
jruoho
69ff1aa9c5 Move pthread_attr_{g,s}etscope() to a separate page and try to document
these better. Should fix PR lib/41831 from Wolfgang Stukenbrock.

XXX: Please proofread.
2010-07-07 08:22:53 +00:00
msaitoh
0f0d9fe1d4 regen. 2010-07-07 04:57:39 +00:00
msaitoh
153ff9745f 0x1409 is SUNIX 2010-07-07 04:56:44 +00:00
msaitoh
310cb20a73 For interrupt transfer, nak throttling must be disabled, but for the other
transfer type, nak throttling should be enabled from the veiwpoint that
avoids the memory thrashing. Fixes a problem that interrupt transfer stall
on some EHCI controllers (e.g. Geode LX). Fixed by Yamada Katsumi.
2010-07-07 03:55:01 +00:00
chs
6b006f0c29 welcome to 5.99.35 (changes for updated COMPAT_LINUX). 2010-07-07 01:37:35 +00:00
chs
63c9e60bb0 enable COMPAT_LINUX. 2010-07-07 01:32:51 +00:00
chs
d916122e7d regen 2010-07-07 01:31:51 +00:00
chs
33fa5ccbbf many changes for COMPAT_LINUX:
- update the linux syscall table for each platform.
 - support new-style (NPTL) linux pthreads on all platforms.
   clone() with CLONE_THREAD uses 1 process with many LWPs
   instead of separate processes.
 - move the contents of sys__lwp_setprivate() into a new
   lwp_setprivate() and use that everywhere.
 - update linux_release[] and linux32_release[] to "2.6.18".
 - adjust placement of emul fork/exec/exit hooks as needed
   and adjust other emul code to match.
 - convert all struct emul definitions to use named initializers.
 - change the pid allocator to allow multiple pids to refer to the same proc.
 - remove a few fields from struct proc that are no longer needed.
 - disable the non-functional "vdso" code in linux32/amd64,
   glibc works fine without it.
 - fix a race in the futex code where we could miss a wakeup after
   a requeue operation.
 - redo futex locking to be a little more efficient.
2010-07-07 01:30:32 +00:00
chs
56acc98394 enable DDB_HISTORY_SIZE in a few more configs where DDB is enabled. 2010-07-07 01:24:52 +00:00
chs
cc7a868696 implement emulation of the "rdhwr" instruction for mips TLS. 2010-07-07 01:23:42 +00:00
chs
7ddf89ffa3 enable usermode RAS for sun[23] also. 2010-07-07 01:23:08 +00:00
chs
00c0212959 add "trace/a" to trace by LWP address. 2010-07-07 01:22:35 +00:00
chs
934c1780af fix db_{read,write}_bytes() for unaligned addresses
(just copy a byte at a time, this isn't a performance path).
2010-07-07 01:22:12 +00:00
chs
8c5cce48f1 set error return value for user addresses in kernel space.
(this fixes a bug in my previous checkin here.)
2010-07-07 01:21:47 +00:00
chs
dd80381ce2 return the error from fault handler in ucas_fault
rather than forcing EFAULT.
2010-07-07 01:21:15 +00:00
chs
8b4d79c278 implement cpu_lwp_setprivate() on several platforms. 2010-07-07 01:20:49 +00:00
chs
cd93d88b01 implement ucas_* for powerpc/oea. 2010-07-07 01:19:54 +00:00
chs
8103357160 implement ucas_* for mips. 2010-07-07 01:19:09 +00:00
chs
794a8be6ca fix hppa ucas_*():
- "ret" is a kernel-space pointer.
 - move the ucas RAS check from the device interrupt path
   to the page-fault path.
2010-07-07 01:18:39 +00:00
chs
e8200b900c implement ucas_* for alpha. 2010-07-07 01:17:49 +00:00
chs
fb84d42413 implement ucas_* for arm. 2010-07-07 01:17:26 +00:00
chs
9ea6b6e3f2 implement ucas_* for m68k. 2010-07-07 01:16:23 +00:00
chs
b9075fd7d9 clean up the check for tracing into a syscall handler. 2010-07-07 01:15:34 +00:00
chs
ffa744f452 add the guts of TLS support on amd64. based on joerg's patch,
reworked by me to support 32-bit processes as well.
we now keep %fs and %gs loaded with the user values
while in the kernel, which means we don't need to
reload them when returning to user mode.
2010-07-07 01:14:52 +00:00
chs
1842e935a4 fix more bugs in ucas_*():
move the "old" value to %*ax so that cmpxchg* can work.
remove the PCB_ONFAULT stuff, onfault_handler() handles this already.
return the error from fault handler in ucas_fault rather than forcing EFAULT.
2010-07-07 01:13:29 +00:00
chs
8594179a40 COMPAT_LINUX32 requires COMPAT_LINUX. 2010-07-07 01:09:39 +00:00
chs
4c14d1923f switch the UVMHIST counters from mutexes to atomic ops
to avoid a bad interaction with DIAGNOSTIC.
2010-07-07 01:08:51 +00:00
njoly
3bb7b36948 Install x86/pte.h 2010-07-07 00:10:14 +00:00
njoly
d7d48e5d3f +./libdata/firmware/upgt 2010-07-06 23:33:28 +00:00
njoly
aab619738e Add missing list end. 2010-07-06 23:15:47 +00:00
jruoho
42a8adcdaf Xref ldd(1) as per PR bin/30043 from Jochen Keil. 2010-07-06 23:05:56 +00:00
jruoho
02b671da36 Use .Xr for Xrefs. 2010-07-06 22:29:29 +00:00
jruoho
6a595a491d Same here; fix LIBRARY, add COMPATIBILITY/ERRORS, etc. 2010-07-06 22:24:56 +00:00
pooka
54aeac7f90 unwhine lint 2010-07-06 21:58:18 +00:00
jruoho
ae0626ba0d Fix LIBRARY. Add ERRORS and COMPATIBILITY. And some small improvements. 2010-07-06 21:54:12 +00:00
jruoho
935deb263f Document pthread_attr_get_np(). Fixes PR lib/39289 from ahoka@. 2010-07-06 21:36:34 +00:00
cegger
71e8cdce36 Turn PMAP_NOCACHE into MI flag.
Add MI flags PMAP_WRITE_COMBINE, PMAP_WRITE_BACK, PMAP_NOCACHE_OVR.
Update pmap(9) manpage.

hppa: Remove MD PMAP_NOCACHE flag as it exists as MI flag
mips: Rename MD PMAP_NOCACHE to PGC_NOCACHE.

x86: Implement new MI flags using Page-Attribute Tables.
x86: Implement BUS_SPACE_MAP_PREFETCHABLE.

Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2010/06/30/msg008458.html

No comments on this last version.
Forgot to commit this in previous.
2010-07-06 21:11:22 +00:00
cegger
a63798ea7c Turn PMAP_NOCACHE into MI flag.
Add MI flags PMAP_WRITE_COMBINE, PMAP_WRITE_BACK, PMAP_NOCACHE_OVR.
Update pmap(9) manpage.

hppa: Remove MD PMAP_NOCACHE flag as it exists as MI flag
mips: Rename MD PMAP_NOCACHE to PGC_NOCACHE.

x86: Implement new MI flags using Page-Attribute Tables.
x86: Implement BUS_SPACE_MAP_PREFETCHABLE.

Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2010/06/30/msg008458.html

No comments on this last version.
2010-07-06 20:50:33 +00:00
pooka
d8a0b8cdce stat mount target path only if we're actually goint to use it.
This avoids errors from the comfd case when the mount target does
not exist in our local namespace.
2010-07-06 18:22:20 +00:00
bsh
8983a2496d * use correct interleave factor for RAID-0 of Intel MatrixRaid.
* report stripe size in Kibytes to bioctl(8).

Unfortunately this change will break compatibility with existing
filesystem made by NetBSD on RAID-0 Intel MatrixRAID volumes.

Please read: http://mail-index.netbsd.org/current-users/2010/07/02/msg013810.html
2010-07-06 18:09:04 +00:00
jmmv
d59f14065c Pull up revision 3becdd597a7f5f996eeceebf06ac7f77aaa7c30c from upstream:
Catch and report unhandled exceptions before they propagate to C land

The C++ interface to run test cases goes like this:

    1) C++ run function -> 2) C run function -> 3) C++ wrapper for
    test case -> 4) test case head/body/cleanup

The previous code caught and reported unhandled exceptions in 1).
However, such approach does not seem to work everywhere.  It fails,
for example, in NetBSD/i386 but works in NetBSD/amd64.  I am not sure
which platform implementation is correct nor if there even _is_ a
defined behavior.  No matter what, it feels wrong and clunky.

Move the last-resort exception catching to happen in 3) so that
exceptions don't propagate back to C.

Fixes the test-programs/result_test:result_exception test case in
NetBSD/i386 5.99.34.
2010-07-06 18:03:37 +00:00
bsh
99fa704726 fix some probles with ataraid(4) and Intel MatrixRaid.
* handle volumes largetr than 2TiB.
 * support multiple arrays for Intel Matrix RAID
2010-07-06 18:03:21 +00:00
pooka
a6b3b71bb8 set time_t compat where necessary 2010-07-06 18:01:14 +00:00
bsh
c8dd5b935b fix LOCKDEBUG panic at ataraid(4).
the patch was provided by Juan RP in response to PR kern 38273.
(http://mail-index.netbsd.org/tech-kern/2008/09/17/msg002734.html)
2010-07-06 17:56:14 +00:00
jruoho
811c1709b9 Fix a typo and comment out a dead FTP link.
From "bughunting" in PR misc/40107.
2010-07-06 17:42:32 +00:00
pooka
fdc5aef6ab Remove groolingly spooky variable which has been haunting us for
several years without doing anything useful.
2010-07-06 17:00:06 +00:00
pooka
a8b198e2fa fix TESTSDIR 2010-07-06 16:44:26 +00:00
pooka
34edcf6bbe * need TESTSDIR
* remove force-fed -g
2010-07-06 16:43:48 +00:00
mrg
7d9a68ec2a radeondrm depends upon firmload now; noted by rjs. 2010-07-06 16:33:31 +00:00