Commit Graph

250707 Commits

Author SHA1 Message Date
roy
2678fcfdf5 Don't bother allocating space for the database name, just print
directly to the static buffer storage.
2017-05-16 09:19:48 +00:00
roy
3edb4adc61 Move pathbuf into the function where it's actually used. 2017-05-16 08:52:14 +00:00
ozaki-r
db86b5ecbc Fix memory leaks of sah->idents and sah->identd
Originally fixed by the SEIL team of IIJ
2017-05-16 07:43:50 +00:00
ozaki-r
b5d03f6429 Fix diagnostic assertion failure in ipsec_init_policy
panic: kernel diagnostic assertion "!cpu_softintr_p()" failed: file "../../../../netipsec/ipsec.c", line 1277
  cpu7: Begin traceback...
  vpanic() at netbsd:vpanic+0x140
  ch_voltag_convert_in() at netbsd:ch_voltag_convert_in
  ipsec_init_policy() at netbsd:ipsec_init_policy+0x149
  in_pcballoc() at netbsd:in_pcballoc+0x1c5
  tcp_attach_wrapper() at netbsd:tcp_attach_wrapper+0x1e1
  sonewconn() at netbsd:sonewconn+0x1ea
  syn_cache_get() at netbsd:syn_cache_get+0x15f
  tcp_input() at netbsd:tcp_input+0x1689
  ipintr() at netbsd:ipintr+0xa88
  softint_dispatch() at netbsd:softint_dispatch+0xd3
  DDB lost frame for netbsd:Xsoftintr+0x4f, trying 0xfffffe811d337ff0
  Xsoftintr() at netbsd:Xsoftintr+0x4f

Reported by msaitoh@
2017-05-16 07:25:57 +00:00
snj
3d7f0c90ba fix inverted logic.
spotted by "sc dying" on current-users.
2017-05-16 06:16:35 +00:00
ozaki-r
2044837295 Use kmem(9) instead of malloc/free
Some of non-sleepable allocations can be replaced with sleepable ones.
To make it clear that the replacements are possible, some assertions
are addded.
2017-05-16 03:05:28 +00:00
ozaki-r
07df88e0cd Run key_timehandler in thread context (workqueue)
The handler involves object deallocations so we want to not run
it in softint.
2017-05-16 02:59:22 +00:00
jdolecek
91791fcb95 free the virtio slot _before_ calling scsipi_done(), so that driver is able
to accept another request immediatelly and doesn't trigger spurious
XS_RESOURCE_SHORTAGE

part of fix for PR kern/52199
2017-05-15 21:30:37 +00:00
kre
ab36694a85 DEBUG mode shell update (changes nothing for shells which are not
compiled for DEBUG.)

Add debug builtin command, and corresponding -D command line option.
As usual, for DEBUG related stuff, read the source for info, that's
all there is about this.

This completes the infrastructure changes for the updated DEBUG TRACE
mechanism, so now converting the rest of the shell's internal tracing
can happen as desired - piecemeal.
2017-05-15 20:00:36 +00:00
kre
455974806a (Perhaps temporarary) updated "hash" command. New options, and
more flexible behaviour.
2017-05-15 19:55:20 +00:00
kre
22a6d2dd08 More test sub-cases for the dollar_hash ( ${#...} ) test.
Upi really (really!) don't want to know!

Also, add a comment (in another section) and avoid giving messages
to atf_fail that include newlines - AFT really doesn't like that.
Instead, convert the \n's to ;'s so at least the content is retained.
2017-05-15 19:53:40 +00:00
kre
d2f0ed5d12 Drop the lex library - hasn't been needed since the airthmetic
upgrade a while ago (this should make no difference to anything
other than a minor - very minor - build time speedup, ld is
smart enough to relaise that nothing from the lex library was
needed, and the executable contains no reference to it, even
befor ethis change.)
2017-05-15 18:34:56 +00:00
christos
eeb345227e Don't make assert use stdio; saves >100K on an empty static binary. 2017-05-15 16:09:09 +00:00
manu
5b4eb43c12 Allow building with MKKERBEROS=no 2017-05-15 13:38:34 +00:00
martin
18dfdd8b75 Be carefull with play-only/record-only devices. Suggestion from Jared,
avoids a crash with hdmi audio.
2017-05-15 12:07:32 +00:00
skrll
cd39838954 Fix off-by-one in tlb_record_asids 2017-05-15 10:59:24 +00:00
ozaki-r
fe20eadb23 Add test cases for SA lifetime 2017-05-15 09:58:22 +00:00
ozaki-r
12efcd61a3 Fix typo 2017-05-15 09:56:47 +00:00
ozaki-r
53a9fb14fe Sort 2017-05-15 09:56:12 +00:00
ozaki-r
21cadb654a Show __func__ instead of __FILE__ in debug log messages
__func__ is shorter and more useful than __FILE__.
2017-05-15 09:55:29 +00:00
ozaki-r
637b428df2 Fix a debug log message 2017-05-15 09:52:05 +00:00
ozaki-r
ed732a8ac2 Kill useless IPSEC_DEBUG2 (NFC) 2017-05-15 09:51:00 +00:00
nat
dc26367cf5 Possibile vchan mixer overflow panic avoided. 2017-05-15 09:43:56 +00:00
kre
7f0357d3ca Add some information learned from experience with using (and abusing)
this API...

While here do some markup improvements (it is amazing what one can
learn from observing a wizard at work!) (which still probably need more work.)
In particular, sh functions are not functions in the mdoc .Fn sense!
(Many places where explicit double quotes were not doing what was intended.)
2017-05-15 04:54:09 +00:00
msaitoh
18b588adfe - Print 0x00000007:0 ecx leaf bits.
- Don't print fdiv_bug on amd64.
- Print APIC ID, Initial APIC ID and clflush size.
2017-05-15 04:21:14 +00:00
msaitoh
f10b5b28e5 CPUID_CFLUSH bit is not for CFLUSH insn but CLFLUSH insn, so modify comments
and snprintb() sring.
2017-05-15 04:02:52 +00:00
nat
9b6f7e6e98 Don't hold sc_lock whilst calling mix_write/read. This makes uaudio work
again.

With regard to uaudio however tyr-quake's audio does not work well.
2017-05-15 01:03:47 +00:00
christos
01920ad36e don't print decimal and parse hex! 2017-05-14 21:38:23 +00:00
kre
c70ddc9b88 Add a test for opening files with exec "when" in posix mode (close-on-exec
should not get set.)  While here, remove the (unused) runhelper() function.
2017-05-14 17:28:46 +00:00
kre
84071b75b3 When opening a file descritor with "exec n>/file" (and similar) only
set the close-on-exec bit when not in posix mode (to comply with posix...)
OK: christos@
2017-05-14 17:27:05 +00:00
skrll
6d40160105 Remove #if 0'ed old style cache handling in pmap_md_unmap_poolpage 2017-05-14 15:36:45 +00:00
kre
f75901fb72 Add mention of ;& in the list of control operators (forgotten before).
Document the (slightly) enhanced NETBSD_SHELL.
Fix a typo (one of my typos...)
Move a commented out section to align with current planned changes
(and fix its commented out markup.)
2017-05-14 14:14:39 +00:00
nat
cf7d446fc1 Add uvm_map_pageable dummy function. This means that the audio tests
should run again.

Ok christos@.
2017-05-14 13:49:55 +00:00
wiz
0456c39519 Formatting and punctuation improvements. 2017-05-14 12:35:46 +00:00
wiz
3cacbf2b8b Bump date for previous. 2017-05-14 12:31:13 +00:00
wiz
63d3c713fa file system police. 2017-05-14 12:30:37 +00:00
wiz
cf1b0d459d Use Nx. 2017-05-14 12:29:10 +00:00
skrll
e6f0959625 Handle the maximum number of colors across [di]caches 2017-05-14 11:46:22 +00:00
tnn
ad3df8fc2a define control register and associated bits for RTC supercap charger 2017-05-14 11:39:17 +00:00
kre
a30f469fdd Add a test case for the various ways that ${xxx} expansions, which
contain a # character, can get parsed (which amounts to 86 extra checks,
any Australian can tell you why I decided to stop there and not add one
more...)
2017-05-14 11:28:49 +00:00
kre
15c7c8a050 Fix a minor omission in last... 2017-05-14 11:25:09 +00:00
kre
f52337da20 Make ${NETBSD_SHELL} value include (a human recognisable form of)
MKREPRO_TIMESTAMP (as an additional word in the value, with a "BUILD:" prefix)
if it is set during the build.   (Trailing 00 pairs in the time are removed).

While here, throw in some extra words that list the compilation
options used which alter sh behaviour (mostly by removing stuff.)
Usually that will only be noticed in a SMALL shell compiled for
install media, or similar - none of the others (not that there
are many) are ever changed from the default in a normal build
(default settings are just omitted.)   This also allows scripts
to tell if they are running in a DEBUG shell, which can sometimes
make debugging easier.
2017-05-14 11:23:33 +00:00
kre
db7849a108 NFC: changes to comments only - expand/add comments relating to ${#...}
parsing, and all its peculiarities.
2017-05-14 11:17:04 +00:00
nat
6948ebf3ed Increase the priority of the mixing/record threads as high as possibile.
Suggested by mrg@.
2017-05-14 10:57:32 +00:00
wiz
c31cf69d08 Use more, or more appropriate, markup. 2017-05-14 10:53:26 +00:00
nat
39282196c2 Restore the use of sc_intr_lock as it was in rev 1.334.
The ring buffer pages are now wired so the use of the interrupt lock won't
cause panics.

Ok riastradh@.
2017-05-14 10:08:49 +00:00
nat
9e6d88076d Use uvm_map_pageable to wire audio ringbuffer pages an virtual addresses.
Ok riastradh@.
2017-05-14 10:01:34 +00:00
skrll
eb51ea4024 Set mci_{,i}cache_alias_mask for all variants that can have virtual cache
aliases

Set ncolors appropriately

These align to dcache and expect icache aliases to be dealt with by the
pmap directly.
2017-05-14 09:37:13 +00:00
skrll
c1ad39ae48 Really fix typo that got dcache alias mask set from icache way_mask 2017-05-14 09:33:17 +00:00
skrll
c6b7009b4c Fix typo that got dcache alias mask set from icache way_mask 2017-05-14 09:32:01 +00:00