Commit Graph

255631 Commits

Author SHA1 Message Date
christos 8ffa3f42a9 Add one more file, still does not build. 2018-01-09 01:51:20 +00:00
christos cfe95f14f6 check the magic first in case we got passed a junk pointer. 2018-01-09 01:44:50 +00:00
knakahara 8a37362ba6 Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks. 2018-01-08 23:34:56 +00:00
knakahara d88bfb301b Committed debugging logs by mistake, sorry. Revert cryoto.c:r.1.103 and ip6_flow.c:r.1.37. 2018-01-08 23:33:40 +00:00
knakahara f2516b4ae6 Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks. 2018-01-08 23:23:25 +00:00
christos 09767d34a5 Redo the previous alpha change differently (don't add a new file since we need
ifdefs anyway), and regen.
2018-01-08 18:56:20 +00:00
jakllsch 8a8cd8626c Fix idma_xferlen for A64/H5 eMMC host controller. 2018-01-08 14:40:18 +00:00
maxv cb7ee5c0e6 Make Xen compile again. 2018-01-08 14:39:33 +00:00
martin edea8a3220 PR 52864: add a test for this bug, from sevan@ 2018-01-08 14:17:15 +00:00
jmcneill 42e59c75c3 Add nvidia-firmware to SUBDIR 2018-01-08 11:05:02 +00:00
maxv ad8c785d6c Since SVS is now defined in files.x86, remove it from files.amd64
and files.i386.
2018-01-08 09:33:53 +00:00
martin b3280b435a Now that SVS is defined in file.x86, do not repeat it here 2018-01-08 06:29:19 +00:00
christos bac82b91e0 Use the proper process (the tracee) to get information about lwps and
registers and the tracer for vmspace.
2018-01-08 06:10:30 +00:00
christos a0a9a3b408 don't ignore error from copyout_piod 2018-01-08 04:45:53 +00:00
christos 00e542777c regen 2018-01-08 04:00:31 +00:00
christos 5d02074f2c don't do anything for NetBSD 2018-01-08 04:00:00 +00:00
christos 28a88be5e0 add a netbsd-specific alpha target to handle thread initialization. 2018-01-08 03:07:16 +00:00
christos a5c6d94aa5 Make things compile again. 2018-01-08 01:41:34 +00:00
kamil 3e48d45743 Revert asctime() namespacing
asctime() is optionally a cancellation point in the POSIX spec.
It's not true for NetBSD.

Requested by <joerg>
2018-01-07 21:19:35 +00:00
christos a38ead8b43 ignore signal 64 for now (go uses it)
XXX: pullup-8
2018-01-07 21:16:00 +00:00
christos dda917e683 Ignore signal 64 for now (go uses it)
XXX: pullup-8
2018-01-07 21:14:38 +00:00
jmcneill a5c866b6cf Import NVIDIA Tegra XUSB firmware for Tegra124 and Tegra210. Installation
of this firmware is controlled by the MKTEGRAFIRMWARE option, which
defaults to yes on evbarm and evbarm64 and no everywhere else.
2018-01-07 20:59:24 +00:00
christos bacfdb6969 add casts 2018-01-07 20:02:52 +00:00
wiz dd5857855f Bump date for previous. 2018-01-07 18:11:35 +00:00
christos 5a5b943e4e make this compile again 2018-01-07 16:47:22 +00:00
maxv b8ff9d5be5 Don't enable SVS yet. 2018-01-07 16:10:52 +00:00
maxv da72fac8fc Add a new option, SVS (for Separate Virtual Space), that unmaps kernel
pages when running in userland. For now, only the PTE area is unmapped.

Sent on tech-kern@.
2018-01-07 16:10:16 +00:00
christos 9dcca3fbdb make this compile w/o LOCKDEBUG 2018-01-07 16:08:12 +00:00
kamil b4e223d109 Revert namespacing of atoi(3)
Sanitizers can handle recursive interceptions in some / most cases, if they
will cause damage the problem will be not workaroundable without libc
changes - I will be back to it.

Keep namespace of asctime() as this can be a cancellation point according
to POSIX. Right now it's not implemented on NetBSD. Defer it for later.

Keep weak symbols and namespace for wait6(2) as this could be a
cancellation point as well. Defer this for later.

Sanitizers's [recursive] interceptors are a hack and moving one way or
another can cause new sets of problems. Recursive ones can be useful and
cause problems (on Linux there are known with with signal handlers).

Sponsored by <The NetBSD Foundation>
2018-01-07 15:28:33 +00:00
christos 0cc54e49cb KNF. 2018-01-07 15:26:43 +00:00
maxv 6fcf3f0aab Switch x86_retpatch[] -> HOTPATCH(). 2018-01-07 13:43:23 +00:00
maxv 57976a3c3e Fix previous - atomic_lockpatch[] is still there. 2018-01-07 13:37:39 +00:00
maxv 9ef803fea5 Switch x86_lockpatch[] -> HOTPATCH(). 2018-01-07 13:15:23 +00:00
maxv 99d8611c28 Implement a real hotpatch feature.
Define a HOTPATCH() macro, that puts a label and additional information
in the new .rodata.hotpatch kernel section. In patch.c, scan the section
and patch what needs to be. Now it is possible to hotpatch the content of
a macro.

SMAP is switched to use this new system; this saves a call+ret in each
kernel entry/exit point.

Many other operating systems do the same.
2018-01-07 12:42:46 +00:00
kre b36637ee94 PR bin/52905
Document, and properly implement, the -q and -e options to dkctl xxN listwedges.
(implementation fix supplied by Petar Bogdanovic.)
2018-01-07 12:29:25 +00:00
mlelstv 451e80f07d Fix block address calculation for bad sectors. 2018-01-07 11:37:30 +00:00
maxv 1cb7949fd5 Give patchbytes an array. 2018-01-07 11:24:45 +00:00
maxv 7d34bd9bc2 Use uvm_km_alloc instead of kmem_zalloc. 2018-01-07 10:16:13 +00:00
christos 9fd2befeec use a fixed-size type, this code also exists in
sys/dev/dkwedge/dkwedge_bsdlabel.c
2018-01-07 03:35:43 +00:00
mlelstv 2f6dbbcf88 Use sysctl to retrieve iostat names instead of parsing possibly
truncated iostat output.

Check dkctl listwedges output with grep.

Fixes PR 59205.
2018-01-06 23:44:06 +00:00
nat ba7d7fa18b Only signal a pause change on a transition of a pause change.
This addresses a problem found in audio/sox causing high cpu usage.

Path and analysis by Onno van der Linden.
2018-01-06 23:15:36 +00:00
nat 29ac8c3c0c Whitespace. 2018-01-06 21:16:36 +00:00
jmcneill d5f1b2266e Enable automatic booting on tegra210 2018-01-06 20:27:31 +00:00
uwe db934fc2af Drive-by markup improvements. 2018-01-06 16:54:09 +00:00
kamil f615c5a6fd doc: Tweak the vadvise removal entry in CHANGES
Note the removal of the vadvise header
2018-01-06 16:52:57 +00:00
kamil f98f70a745 Revert vadvise(2) removal
This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
2018-01-06 16:41:23 +00:00
uwe 239916cbb8 Make synopsis a bit less verbose and hopefully more readable. 2018-01-06 16:01:43 +00:00
snj f293296fc4 fix a few typos in comments 2018-01-06 09:46:22 +00:00
snj adee6b5e35 add missing dtrace tag for librtld_db.0 2018-01-06 09:31:03 +00:00
maxv f25fcbff4d Mmh, I made a mistake in r1.10 - I forgot to update this function call. 2018-01-06 08:44:01 +00:00