ozaki-r
7d3a00795e
rump: check if the mutex is surely owned by the caller in mutex_exit
...
Unlocking a not-owned mutex wasn't detected well (it could detect if the mutex
is not held by anyone but that's not enough). Let's check it (the check is the
same as normal kernel's mutex).
If LOCKDEBUG is enabled, give the check over LOCKDEBUG because it can provide
better debugging information.
2017-12-27 09:03:22 +00:00
ozaki-r
1153933228
Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG
...
Formerly rump kernels treated the two types of mutexes as both adaptive for
LOCKDEBUG for some reasons.
Now we can detect violations of mutex restrictions on rump kernels such as
taking an adaptive mutex with holding a spin mutex as well as normal kernels.
2017-12-27 09:01:53 +00:00
ozaki-r
3a665842a3
Tweak LOCKDEBUG macros (NFC)
2017-12-27 08:45:45 +00:00
ozaki-r
759e884b40
Don't pass rwlock to callout_halt
2017-12-27 08:35:20 +00:00
martin
8a16c82e0b
Minor tweak to the vadvise entry.
2017-12-27 08:29:02 +00:00
nakayama
9c013ca091
Add missing catman entry.
2017-12-27 01:17:01 +00:00
nat
6f00cf71ad
mulaw/alaw_to_linearN macros replaced with individual faster filters.
...
NFC.
2017-12-27 00:12:06 +00:00
christos
0670ee5618
build without -u does not work because of the dependencies and the stale
...
files. Be more explicit with instructions.
2017-12-26 20:04:03 +00:00
khorben
8fba197a62
Fix typo in a comment
2017-12-26 18:44:52 +00:00
christos
09f3fd36e9
use __USE()
2017-12-26 17:09:20 +00:00
christos
4bc83b15ca
add linted to __USE()
2017-12-26 17:08:56 +00:00
christos
3073471f75
lint knows about all inline variant syntax...
2017-12-26 17:03:10 +00:00
christos
541fa6f429
Don't print duplicate definitions for inline symbols.
2017-12-26 17:02:19 +00:00
christos
6ee2d92011
Fix const argument inconsistency (found by lint(1))
2017-12-26 17:01:25 +00:00
christos
4491ce1a6d
Needs to be protected since it has a timespec argument. Found by lint(1)
2017-12-26 17:00:50 +00:00
jmcneill
d584336a78
Use DRM GEM/CMA helper.
2017-12-26 14:54:52 +00:00
jmcneill
18d142ca0b
Implement the DRM GEM/CMA helpers. The implementation has been extracted
...
from our tegra DRM driver, but generalized for use with other drivers.
2017-12-26 14:53:12 +00:00
martin
63f6d58f43
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
...
are arrays, not pointers, so don't use copyoutstr on them, but instead
copyin/copyout the whole array of structures.
Fixes PR 52864 for me (on sparc64).
2017-12-26 12:43:59 +00:00
martin
304fae425d
Note build fallout from vadvise removal.
2017-12-26 11:40:47 +00:00
kamil
d46f49d32a
Refactor pipe1() and correct a bug in sys_pipe2() (SYS_pipe2)
...
sys_pipe2() returns two integers (values), the 2nd one is a copy of the 2nd
file descriptor that lands in fildes[2]. This is a side effect of reusing
the code for sys_pipe() (SYS_pipe) and not cleaning it up.
The first returned value is (on success) 0.
Introduced a small refactoring in pipe1() that it does not operate over
retval[], but on an array int[2]. A user sets retval[] for pipe() when
desired and needed.
This refactoring touches compat code: netbsd32, linux, linux32.
Before the changes on NetBSD/amd64:
$ ktruss -i ./a.out
[...]
15131 1 a.out pipe2(0x7f7fff2e62b8, 0) = 0, 4
[...]
After the changes:
$ ktruss -i ./a.out
[...]
782 1 a.out pipe2(0x7f7fff97e850, 0) = 0
[...]
There should not be a visible change for current users.
Sponsored by <The NetBSD Foundation>
2017-12-26 08:30:57 +00:00
maya
7587a6b792
Match prior syscall behaviour
...
hide __RCSID under the same macros as rest of libc
2017-12-26 05:45:50 +00:00
msaitoh
7281eb3fdc
Make cold __read_mostly like mp_online.
2017-12-26 03:58:03 +00:00
ozaki-r
3283da7f0f
Work around softnet_lock handling
...
nd6_dad_stoptimer can be called with or without softnet_lock held.
callout_halt has to take softnet_lock depending on the situation.
2017-12-26 02:26:45 +00:00
ozaki-r
c00d5e8f6f
Suppress the assertion of IFNET_LOCK in if_mcast_op if MROUTING
...
MROUTING doesn't deal with IFNET_LOCK yet.
Reported by kardel@
2017-12-26 02:01:35 +00:00
joerg
e5e34a6c86
Since GNU ld doesn't honor the PLT entry reservation, also compensate
...
for JMP_IREL relocations at the start of the PLT.
2017-12-25 17:00:15 +00:00
kamil
7db1f47f48
atf: t_ptrace_wait: Mark attach2 as racy
2017-12-25 12:38:01 +00:00
kamil
daf244781b
libc: Add a dummy implementation of vadvise()
...
This readds a symbol that has been removed accidentally without major bump.
The implementation is dummy (similar to the old one), without API in public
headers.
Pointed out by <maya>
Sponsored by <The NetBSD Foundation>
2017-12-25 11:03:30 +00:00
ozaki-r
a45a6f1723
Apply C99-style struct initialization to lockops_t
2017-12-25 09:13:40 +00:00
msaitoh
ee5189c301
- Fix a panic while cleaning PCI interrupt.
...
- Fallback to INTx if MSI allocation succeeded but the establish failed.
2017-12-25 08:39:38 +00:00
rin
59bf4f6ea0
Disable nouveau for INSTALL as in a similar manner to other DRMKMS drivers.
...
XXX pullup to netbsd-8
2017-12-25 06:38:59 +00:00
rin
69006e6b84
install/52845: Enable vga@isa and pcdisplay for INSTALL. Otherwise, install
...
media do not boot on pre-PCI machines.
XXX pullup to netbsd-8 and netbsd-7
2017-12-25 06:35:57 +00:00
rin
a32b59e10c
Drop the following features, which reduces ramdisk.bin about 70KB:
...
- shutdown, rcmd, rcp
- support for byte-swapped FFS and Apple UFS in fsck_ffs and newfs
- support for byte-swapped label and interactive editor in disklabel
OK tsutsui
2017-12-25 06:15:50 +00:00
maya
0a4e3118cb
Fix typo in comment
...
from freebsd
2017-12-25 05:29:27 +00:00
maya
47dee010ce
Return a non-zero (one) exit code on failure for one of the files
...
But keep on processing them, like ls, rm, and other programs do
2017-12-25 05:08:49 +00:00
ozaki-r
d6af4f8075
Fix wrong usage of psref_held
...
We can't use it for checking if a caller does NOT hold a given target.
If you want to do it you should have psref_not_held or something.
2017-12-25 04:41:48 +00:00
christos
57ab0cb5b9
fix priority tests for SCHED_OTHER
2017-12-24 17:37:23 +00:00
christos
70a70ff3ae
No DDB/ksyms
2017-12-24 16:16:30 +00:00
christos
eeb69ff47e
Build compat code for RAMDISK as a library otherwise we get code bloat
...
for code we are not using (there are no compat options in the RAMDISK kernel).
2017-12-24 16:15:53 +00:00
maya
6f158d565c
fix debug build
2017-12-24 01:22:16 +00:00
christos
d3ef0ca68b
Merge the code back; the problem was that since we are reading/writing
...
to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace.
2017-12-23 22:12:19 +00:00
christos
17ceb61284
report which errno failed
2017-12-23 22:07:57 +00:00
uwe
ec59efb2b5
The order in which the arguments to a function are evaluated is
...
undefined, so don't use va_arg() twice.
PR lib/52849
2017-12-23 18:25:03 +00:00
jmcneill
2689a8614c
Apply RTL8211E 'no-rx-delay' workaround on Pine64+ boards
2017-12-23 12:50:55 +00:00
jmcneill
c971c5fba1
Add a no-rx-delay device property for RGE8211E that disables RX internal
...
delay using some undocumented registers. Required for stable gigabit links
on Pine64+.
2017-12-23 12:49:54 +00:00
nakayama
392c156f88
Remove duplicates.
2017-12-23 10:15:52 +00:00
nakayama
31892e73da
glint is enabled both xorg-server 1.10 and 1.18.
2017-12-23 10:07:07 +00:00
ryoon
11415a10bb
Use ldscript from src to fix build.sh build
2017-12-23 06:48:30 +00:00
maya
7352b7a0df
Don't handle emulations overriding e_fault.
...
No existing emulations do this.
(COMPAT_IRIX did, but was removed)
2017-12-22 22:59:25 +00:00
kamil
8bb892187e
ptrace atf: Clanup reports of failures
...
Mark resume* suspend* tests as expected failure and link with PR 51995.
Sponsored by <The NetBSD Foundation>
2017-12-22 17:35:14 +00:00
kamil
f06ee48eda
ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands
...
The refactored code did not work and was generating EFAULT.
Sponsored by <The NetBSD Foundation>
2017-12-22 15:02:57 +00:00