Commit Graph

250616 Commits

Author SHA1 Message Date
skrll
2a891dc6da Sprinkle some KASSERTs 2017-05-12 05:45:58 +00:00
nat
e2d7b30123 Blksize is now calculated on sc_pustream/sc_rustream.
Don't allow hw ring buffer to be saturated and data overwritten.

It should help PR kern/52175.
2017-05-12 04:15:40 +00:00
ozaki-r
e106de3177 Dedup some routines 2017-05-12 02:34:45 +00:00
macallan
591de39665 rasops_reconfig(): don't clear flags we won't set here 2017-05-12 00:41:25 +00:00
christos
f6b964d39b protect against NULL, from PaulG 2017-05-11 23:50:17 +00:00
nat
0f6453192e UVM_ADV_NORMAL-> UVM_ADV_RANDOM as this reflects the usage more acurately.
Ok riastradh@.
2017-05-11 23:39:15 +00:00
nat
9c67cd1364 If silence is inserted into hw ring directly the free space in the hw ring
not mix ring is needed.
2017-05-11 23:32:27 +00:00
nat
55f64eb5d9 Improved overflow test for audio_mmap.
Ok riastradh@.
2017-05-11 23:26:48 +00:00
nat
aa99502536 Revert FNONBLOCK logic to that from rev 1.335.
Ok riastradh@.
2017-05-11 23:20:38 +00:00
nat
5e34165f16 Explicitly set the flags instead of masking set values in.
This fixes FNONBLOCK weirdness seen in audio.c

OK christos@ and martin@.
2017-05-11 22:38:56 +00:00
kamil
80dc982b20 Document SPL in wtf(6)
SPL    system interrupt priority level
SPL    spinlock

The former is documented in spl(9) in the NetBSD context.
The latter is used in some spinlock implementations.
2017-05-11 22:19:29 +00:00
kamil
c1a817a304 Add new entries for wtf(6)
CCNUMA cache-coherent non-uniform memory access
PIL    Priority Interrut Level
RMO    Relaxed Memory Ordering
TSO    Total Store Ordering
2017-05-11 21:59:28 +00:00
christos
a613f690f9 make it the same as rump.h 2017-05-11 18:44:50 +00:00
christos
5646f065d1 ... but define RUMP_REGISTER_T if not defined. 2017-05-11 18:16:00 +00:00
christos
8f1d39df7e Use the same exposure rules for register_t as <machine/types.h> does.
Eventually we could remove -D_KERNTYPES from all the rump libraries...
2017-05-11 18:08:10 +00:00
christos
60b22e867e Don't depend on stars in order to define things. 2017-05-11 17:47:22 +00:00
sborrill
9d349b9f4b Add commented out carp and mpls pseudo-devices to be consistent with
GENERIC
2017-05-11 15:42:15 +00:00
kre
26a83a43ec Fix some parser weirdness...
${#VAR:-foo} (or any other modifier on ${#VAR} is a syntax error.
On the other hand ${##} is not, nor is ${##13} though they mean
quite different things (the latter is an idiom everyone should learn,
... $# except we refuse to admit the possibility that it is 13...
Even I cannot explain what ${#-foo} used to do, but it wasn't sane!
(It should be just $# as $# is never unset, but ...)
Shell syntax is truly a wondrous thing!
2017-05-11 15:07:37 +00:00
kre
d7c8afdf82 Avoid truncating the command string saved with background jobs if
one of the words happens to contain ${#var}.  (This is the command
string shown by the "jobs" command, and when a background job completes)

While here, undo the LINENO hack when building that string.
And one ot two other foibles...
2017-05-11 14:57:14 +00:00
sevan
1f7af9ec92 Remove more _KERNTYPES definitions in rump components. 2017-05-11 13:20:02 +00:00
martin
483132c66a Try to make images big enough for debug sets 2017-05-11 10:49:18 +00:00
martin
3397b20a60 Evil hack to fix the build: provide PRIxREGISTER here.
Sevan, please check and fix correctly ;-)
2017-05-11 10:21:55 +00:00
skrll
d5edab0741 Fix non-DIAGNOSTIC build 2017-05-11 09:09:54 +00:00
maya
98e5ee2f1b COPY_SYMTAB=1 so ddb commands ps, bt work 2017-05-11 07:56:43 +00:00
mbalmer
3c246ec040 Avoid possible null pointer dereferencing.
Fixes PR kern/52225.
2017-05-11 07:34:27 +00:00
mbalmer
a499d22688 fix TIA entry 2017-05-11 06:46:45 +00:00
ryo
dd8c81f5bb Make ipsec_address() and ipsec_logsastr() mpsafe. 2017-05-11 05:55:14 +00:00
sevan
6b31f116cc With the removal of HAVE_REGISTER_T from rumpuser_port.h, _KERNTYPES does not
need to be defined. This allows register_t to be typedef'd to RUMP_REGISTER_T
without conflict, as highlighted in PR kern/52206.
2017-05-11 04:33:14 +00:00
sevan
64fda0b19a Update NetBSD values obtained from running configure as instructed in comment.
This paves the way to resolve rump build process using buildrump.sh, where the definition of
HAVE_REGISTER_T caused conflicting definitions of register_t.
2017-05-11 04:27:27 +00:00
sjg
cd14dec36c Main_SetObjdir: ensure buf2 is in scope 2017-05-10 22:26:14 +00:00
skrll
4f6c3f8ba6 Add a KASSERT 2017-05-10 22:23:13 +00:00
skrll
a18422ba5c Make cpu_uarea_{alloc,free} conditional on PMAP_{,UN}MAP_POOLPAGE and
use PMAP_{,UN}_POOLPAGE to ensure cache aliases are handled correctly
and for all the pages used.
2017-05-10 22:19:31 +00:00
christos
f82096efe2 We need to provide a size for getattr for the cp example to work, so cheat
and use fstat() to do it instead of libpuffs.
2017-05-10 16:35:18 +00:00
christos
cc50bb7aa6 set only the effective user id to the user id of the requesting user so that
we can go back to the original uid later.
2017-05-10 13:58:25 +00:00
skrll
e8440c996e Allow cpu_uarea_alloc to return NULL for non-system LWPs in the non-_LP64
case.  That way TLB mapped KVA can be found by uarea_poolpage_alloc.
2017-05-10 12:12:21 +00:00
abhinav
a46498cbc0 Get rid of unnecessary variable. 2017-05-10 12:09:52 +00:00
skrll
34dab298c2 Improve comment wording. 2017-05-10 11:27:14 +00:00
kre
e64f57b73d NFC: Whitespace, KNF, and (some) consistency. 2017-05-10 11:06:47 +00:00
roy
432708cb55 Note import of dhcpcd-7.0.0-rc1 2017-05-10 11:05:17 +00:00
roy
071e94d506 Sync 2017-05-10 11:03:44 +00:00
roy
a38988a026 Import dhcpcd-7.0.0-rc1 with the following changes:
*  Default to use VLANID>0 for IAID instead of MAC address
  *  Stop sharing the DHCPv6 port in master mode with other processes
  *  Fix some prefix delegation issues when the carrier drops or
     addresses become stale
  *  Fix a crash when starting dhcpcd with -n
  *  Fix test for preferring a fake lease over a real one
  *  Show to real address lifetimes being added when adding IPv6
     addresses
  *  Restore the -G, --nogateway option
2017-05-10 11:00:37 +00:00
kre
7cbdd94285 Turns out that the previous fix is incorrect, we were not doing ++hit
to change the boolean hit from false to true, but to change it from 1 to 2
which in a sense should have been obvious from the context:
	if (hit)
		/* more tests */
			++hit;
The real problem was that hit was (in the imported tzcode) incorrectly
changed from int to bool in a previous update.

Not that it matters, this code is never actually executed - it was there
to deal with the mythical double leapseconds, which simply never exist
(hit counted the number of leapseconds in an adjustment) and it will all
be gone in the next tzcode update.

For now, just turn hit back into an int, which should satisfy gcc 8,
I hope.
2017-05-10 10:34:30 +00:00
knakahara
6168db0fda fix: crypto_drivers[hid].cc_process() could be called even if it was null.
If a crypto driver is unregistered before calling cyrptointr(),
the crypto_drivers[hid].cc_process is null in spite of the hid
is less than crypto_drivers_num.

reffered to FreeBSD code.
2017-05-10 09:45:51 +00:00
ozaki-r
38eefa3747 Stop ipsec4_output returning SP to the caller
SP isn't used by the caller (ip_output) and also holding its
reference looks unnecessary.
2017-05-10 09:34:51 +00:00
ozaki-r
cb7a3799fb Test tunnel mode with IPv4 over IPv6 and IPv6 over IPv4 2017-05-10 09:08:25 +00:00
ozaki-r
f70653090a Disable DAD rather than waiting its completion every time 2017-05-10 09:00:29 +00:00
ozaki-r
27f51fa5d6 Dedup some routines 2017-05-10 08:59:40 +00:00
sevan
979875ac74 Revert previous change so builds can resume.
_KERNTYPES needs to be defined for NetBSD builds to succeed.
_KERNTYPES must not be defined for buildrum.sh builds to succeed.
2017-05-10 08:48:46 +00:00
msaitoh
182021eabb KNF. No functional change. 2017-05-10 08:46:39 +00:00
msaitoh
4029805dcf Print package ID, core ID and SMT ID. 2017-05-10 08:02:37 +00:00