254616 Commits

Author SHA1 Message Date
ozaki-r
4bb813fca3 Make syn_cache_timer static 2017-11-15 09:55:22 +00:00
ozaki-r
e9798877ac Reduce return points (NFC) 2017-11-15 09:54:18 +00:00
kre
b86d4a7424 DEBUG mode only change. Add some tracing. NFC (without DEBUG). 2017-11-15 09:21:48 +00:00
kre
20c8eb69ec Sort options with long names that differ only by char case in
the same order that option flags with a similar property are sorted.
This corresponds with the change made to the sort order of the short
names made in the previous update (1.4).

Right now, this change makes no difference at all, as there are no
long option names that differ only in char case (yet.)
2017-11-15 09:21:19 +00:00
msaitoh
6fa7a33d6c Restore NetBSD RCS Id which was accidentally removed in rev. 1.2. 2017-11-15 09:13:26 +00:00
kre
e965a70935 Correct a typo: s/ at / an / 2017-11-15 08:50:07 +00:00
knakahara
ce15beb42d Mark callouts of pppoe(4) CALLOUT_MPSAFE. Suggested by ozaki-r@n.o. 2017-11-15 07:52:58 +00:00
mrg
0ace67202c ensure version.c gets rebuilt properly. 2017-11-15 07:47:10 +00:00
ozaki-r
01a838cc57 Mark callouts of bridge CALLOUT_MPSAFE 2017-11-15 06:17:40 +00:00
macallan
dfcdd5e31d create more /dev/pci* nodes, for PCIe systems 2017-11-15 04:31:48 +00:00
nat
96100f6b39 For the virtual stream it is required to insert silence. As these streams
are not harware streams audio_pint_silence is ineffective.

As audio_mix() was the only consumer of audio_pint_silence it has been
removed along with sc_sil_count - which was only used by this function.
2017-11-15 04:28:45 +00:00
ozaki-r
1f6e2ad19c Don't take KERNEL_LOCK in looutput if NET_MPSAFE
We can perhaps get rid of KERNEL_LOCK from looutput, but for now
keep it for safe.
2017-11-15 04:08:02 +00:00
nat
d6a97917e6 The harware vc is rounded to a power of two then round_blocksize is called.
This improves playback and makes it possibile to use mmapped audio on usb.
2017-11-15 02:13:33 +00:00
nat
cf588ee07b audio_pint improvements for when audio mixing is disabled.
When audio mixing is disabled there is only the hardware vc the mix ring
is not used.
2017-11-15 02:02:55 +00:00
nat
2f436ba4cf Improved audiostartp for when audio mixing is disabled. 2017-11-15 01:58:48 +00:00
nat
c5a8bbef5a Improved draining function for when the mixer is and is not enabled.
One block of silence is also played in audio drivers using start_output
when draining the hardware, this helps playback of short (less than
blocksize) samples.
2017-11-15 01:55:45 +00:00
nat
e99a9d9318 Plug memory leak as the mixer state does not grow or shrink when audio
mixing is disabled.  This avoids triggering a panic also.
2017-11-15 01:49:59 +00:00
nat
380d4173c3 Don't return EIO falsely when dealing with the hardware vc.
Draining of the hardware vc on close is now possible.
2017-11-15 01:45:57 +00:00
jmcneill
277e74edfd Build nand_toshiba.c 2017-11-15 00:48:42 +00:00
jmcneill
ae11699502 Wait for irq instead of polling for cmd completion. 2017-11-15 00:30:02 +00:00
riastradh
81f0ddf5e8 Fix up chfs_mountfs error branches. 2017-11-14 22:06:40 +00:00
martin
c2746c613f Bump PAGER_MAP_DEFAULT_SIZE to 512 MB (like amd64 recently did). 2017-11-14 16:56:03 +00:00
christos
51b157a357 - fix an assert; we can reach there if we are nowait or limitfail.
- when priming the pool and failing with ERESTART, don't decrement the number
  of pages; this avoids the issue of returning an ERESTART when we get to 0,
  and is more correct.
- simplify the pool_grow code, and don't wakeup things if we ENOMEM.
2017-11-14 15:02:06 +00:00
christos
de48dcba3d check results of pool_prime. 2017-11-14 14:29:33 +00:00
christos
a42bc43b7a check the result of pool_prime. 2017-11-14 14:27:54 +00:00
jmcneill
20c760647e Add "disk" dependency to flash to set device class to DV_DISK. 2017-11-14 14:15:29 +00:00
jmcneill
f69ff2189c Include "flash" in list of block devices that don't use partitions. 2017-11-14 14:14:29 +00:00
maxv
aaac1e8ffb Remove XXX: set FRAMESIZE to the kernel value. Verily I don't understand
why we are doing that in the non-kaslr kernels, but let's just reproduce
the behavior.

jump_kernel is changed to use callq, so that the stack alignment is
preserved.
2017-11-14 13:58:07 +00:00
rin
3a5fc74837 Fix cursor movement for the case of USE_WIDECHAR != "yes", where the argument
of INTISWIDE() is not evaluated.
2017-11-14 12:20:55 +00:00
maxv
6c922320bc Split each kernel section into sub-blocks of approximately 2MB. The newly
created sections are named .origname.i, for example:

	.text -> { .text .text.0 .text.1 .text.2 .text.3 .text.4 }

Each section is randomized independently by the prekern - and in a random
order obviously. As a result we can get intertwined mappings, of the type:

+-------+-----------+------+---------+-----------+-------+-------+------+-
| text1 | NOTMAPPED | bss0 | rodata1 | NOTMAPPED | data2 | text3 | bss1 |
+-------+-----------+------+---------+-----------+-------+-------+------+-

   ---------+-
    rodata0 | ...
   ---------+-

The CTF section is dropped completely, because (a) when split it becomes
enormous for some reason (that I don't quite understand, verily), and (b)
the kernel expects only one CTF and can't handle several of them.
2017-11-14 10:15:40 +00:00
maxv
44b450abef Remove max-page-size on KASLR, it doesn't play any role. 2017-11-14 09:56:26 +00:00
maxv
3182e3df3b Add missing ). 2017-11-14 09:55:41 +00:00
mrg
c91d24e196 sync with gcc.old. 2017-11-14 09:04:16 +00:00
mrg
9f4f6abc0f attempt to fix liblto_plugin build. on sparc it at least now
appears to have no missing symbols.  add xasprintf.c, xvasprintf.c,
and vprintf-support.c.

fix vprintf-support.c to include vprintf-support.h.
2017-11-14 08:52:20 +00:00
maxv
92fe5cfbd1 Add -Wstrict-prototypes, and fix each warning. 2017-11-14 07:06:34 +00:00
mrg
2dc04f8ca1 remove duplicate prototype. 2017-11-14 06:43:23 +00:00
mrg
8cf273c725 from gcc.old:
>it's ${BUILDINCS} not {BUILDINCS}
2017-11-14 00:55:29 +00:00
mrg
cd95df3a39 regen for GCC 5.5. 2017-11-14 00:54:48 +00:00
mrg
64328a215c it's ${BUILDINCS} not {BUILDINCS} 2017-11-14 00:54:38 +00:00
christos
dce2bc7064 grab a copy of the absolute pathbuf, before namei() munges it. 2017-11-13 22:01:45 +00:00
maxv
4f42872238 One more ASSERT, won't hurt. 2017-11-13 21:33:42 +00:00
maxv
85357f1eab Don't process ELF sections that don't have the ALLOC flag set.
NOTE: you need to update both the prekern and the bootloader after this
change.
2017-11-13 21:32:21 +00:00
maxv
6ac8be2408 Change the mapping logic: don't group sections of the same type into
segments, and rather map each section independently at a random VA.

In particular, .data and .bss are not merged anymore and reside at
different addresses.
2017-11-13 21:14:03 +00:00
christos
c84ec9f755 Use the pathbuf which we pass to namei() (which is always absolute) as the
resolved pathname. We need this in the case of scripts where p_path needs
to point to the interpreter and not the script itself. Otherwise things
like perl script that depend on /proc/$$/exe to re-exec themselves end up
being fork bombs.

In reality we should be using the fully resolved/canonicalized path here, but
namei is not giving it back to us.
2017-11-13 20:38:31 +00:00
maxv
2c3f7fd267 Revert my last revision, that is to say, don't group sections into
segments anymore. Initially I did this because I wanted to compress the
sections by reducing the padding between them; but we'll handle that
differently.
2017-11-13 20:21:10 +00:00
maxv
49ec9d0fdc Link libkern in the prekern, and remove redefined functions. 2017-11-13 20:03:26 +00:00
maxv
7cef651c57 Use SUBALIGN, to force the alignment at the section level, and remove
the inter-section ALIGN which doesn't do anything since the physical
address of the section is chosen dynamically by the bootloader.
2017-11-13 20:01:48 +00:00
mrg
05bf8f96a1 mknative-gcc for some GCC 5.5. c++config.h is wrong so far. 2017-11-13 19:24:32 +00:00
jmcneill
c765828fb4 Enable Allwinner NAND flash support 2017-11-13 17:37:47 +00:00
jmcneill
024863ad80 Use nand_attach_mtdparts 2017-11-13 17:37:02 +00:00