Commit Graph

237353 Commits

Author SHA1 Message Date
rkujawa
bafa0e11e2 Add man page for mcp48x1dac driver. 2015-08-23 19:09:02 +00:00
jakllsch
45dc116cb7 Quadruple GPT partition entry count limit (to 512 entries or 64KiB).
The UEFI 2.3.1 specification states that:
"A minimum of 16,384 bytes of space must be reserved for the GPT Partition Entry Array."
and [the size of a partition entry shall be a power of two greater than 128]
and that [the defined fields of a partition entry total 128 bytes].

Clamping the entries means that no partitions on the drive will be detected,
as this will result in an incorrect partition entry array CRC. This change
reduces the likelyhood of useless partitions, while still not allowing a
huge kernel memory allocation to load the partition entries into.

In the future this code should probably be reworked to checksum and evaluate
the partition array in chunks while still limiting the number of GPT
wedges added per drive to something reasonable.
2015-08-23 18:40:15 +00:00
mrg
ef363e2dc9 if you change display types, the "Showing %s, refresh every %d seconds."
message is retained, and you can't get rid of it.  since it's dispalyed
in inverse, it feels like there's always an error happening (which is
really what the code has -- the above string is displayed via the error()
function.)  for several types of key press that largely are just "redraw"
operation (space, ^L, etc.), clear the error string as well.
2015-08-23 18:33:15 +00:00
mrg
081fe7889a move the obsolete list files into their respective sets. this means
that if you install a new set and run "postinstall fix obsolete"
the expected things happen.

(hi 12.5 year old me who thought base was better than etc set, which
it really was, but this is better again :-)
2015-08-23 18:28:40 +00:00
jakllsch
122ae025aa whitespace 2015-08-23 18:00:30 +00:00
jakllsch
b8bda54dc1 Support PCI_PRODUCT_INTEL_82Q45_KT_1 in addition to PCI_PRODUCT_INTEL_82Q45_KT. 2015-08-23 17:59:40 +00:00
jakllsch
a5e271f1dc pcidevs .h regen 2015-08-23 17:54:30 +00:00
jakllsch
5da998fceb Add another ID for Intel 82Q45 KT 2015-08-23 17:52:42 +00:00
christos
cf0ea7fe31 swap the formats too, not just the args. 2015-08-23 16:00:23 +00:00
skrll
072561d27f Move rd assignment. Spotted by christos@. Thanks. 2015-08-23 13:18:44 +00:00
skrll
0e3416b727 Do BUS_DMASYNC_POST{READ,WRITE} on transfer buffers appropriately 2015-08-23 11:15:08 +00:00
skrll
6a9f7d0e6b Expose usbd_xfer_isread 2015-08-23 11:12:01 +00:00
joerg
865795c450 Use .word for data that is known to be aligned. 2015-08-23 11:01:24 +00:00
joerg
9d0743abbf Remove .proc 1, it has been ignored by gas for ages. 2015-08-23 10:59:15 +00:00
joerg
131d1bf162 .align ensures alignment, so replace .uaword with .word. 2015-08-23 10:53:28 +00:00
skrll
495e5f4e4f regen 2015-08-23 10:49:09 +00:00
skrll
ed83d9d0f9 PR/50160: 5 duplicate entries in dev/usb/usbdevs 2015-08-23 10:46:20 +00:00
dholland
336a1ae812 Fix reversed arguments to a print. nice and confusing... 2015-08-23 09:29:46 +00:00
uebayasi
3b60f8ec0c Don't need to specify OUTPUT_FORMAT/OUTPUT_ARCH. 2015-08-23 08:57:24 +00:00
mlelstv
1f08a1e2a6 An adaptive mutex is sufficient, the data structures are accessed
by regular threads and by the biodone softint.

This allows diskstart routines to sleep (like cgd).
2015-08-23 07:47:52 +00:00
christos
7ec9eaaab4 another wait test. 2015-08-23 07:15:16 +00:00
dholland
ff561ccdee Sync lfs changes with the x68k version of this code. 2015-08-23 04:56:20 +00:00
uebayasi
7722a65218 TODOs about kernel options. 2015-08-23 01:30:21 +00:00
uebayasi
633a8f2e2e Unfortunately no sh3 kernels (no longer?) use linker scripts, but I dare to
clean up .ctors/.dtors here too.
2015-08-23 00:53:15 +00:00
uebayasi
7633735d00 .interp and friends are unlikely to appear in kernels. 2015-08-22 23:51:48 +00:00
uebayasi
6ecada7d3b .rel/.rela should not be generated in kernels. 2015-08-22 23:49:54 +00:00
uebayasi
c0e6eb15f5 .init/.fini/.ctors/.dtors should be irrelevant to kernels. 2015-08-22 23:47:34 +00:00
uebayasi
bb3b67b090 According to matt@, .ARM.{extab,exidx} are no longer used. 2015-08-22 23:19:55 +00:00
dholland
2e4ca381fa +LTO 2015-08-22 19:18:10 +00:00
jmcneill
6ed4524e7a Add kernel config for Tegra K1 "Nyan Big" board, as found in the Acer
Chromebook 13 (CB5-311).
2015-08-22 15:10:04 +00:00
uebayasi
9c743328e7 Linker script TODO items. 2015-08-22 14:47:05 +00:00
christos
586ab73157 fix include filename. 2015-08-22 14:11:19 +00:00
wiz
89df855eb5 Update for v1.10: use '(*)' instead of '#' as dagger replacement.
dholland finds the '#' unintuitive and hard to read.
2015-08-22 14:04:54 +00:00
christos
f95d5940cc report the signal that wait was interrupted by, which is not always SIGINT
anymore.
2015-08-22 12:12:47 +00:00
christos
c0195771da Process pending signals while waiting for a job:
$ cat << EOF > hup.sh
    #!/bin/sh
    trap 'echo SIGHUP; exit 1' 1
    sleep 10000 &
    wait
    EOF
    $ chmod +x ./hup.sh
    $ ./hup.sh &
    $ kill -HUP %1
2015-08-22 09:55:23 +00:00
mlelstv
1e8c46e3c4 No longer access the disk driver directly.
If there is an open wedge, temporarily reference its vnode.
Otherwise try to open the block device.
2015-08-22 07:48:14 +00:00
mlelstv
862a433dd4 revert the previous 2015-08-22 07:42:46 +00:00
christos
34bf41c699 fix bogus gcc unitialized warning 2015-08-22 05:45:57 +00:00
uebayasi
38e0d764a5 Don't need to specify OUTPUT_FORMAT/OUTPUT_ARCH in linker scripts. 2015-08-22 02:23:58 +00:00
matt
d7cbd0891f Assert we aren't trying to sync a read-only mbuf as PREREAD. 2015-08-21 20:52:47 +00:00
jmcneill
4a5c3abbcc No need to BUS_DMASYNC_PREREAD the transmit data buffer. Fixes "NFS writes
being corrupted?" issue on ODROID-C1 as seen on port-arm.
2015-08-21 20:12:29 +00:00
jmcneill
719aab5470 Cubieboard2 kernel is named netbsd-CUBIEBOARD.ub not netbsd-CUBIEBOARD2.ub 2015-08-21 17:08:11 +00:00
jmcneill
b372933f7b add some more RTL8211F bits 2015-08-21 16:29:48 +00:00
christos
cb8ff824c3 fix bogus %m
use EXIT_FAILURE
2015-08-21 15:41:38 +00:00
christos
f432ba3f0a fix build (dholland) 2015-08-21 15:33:04 +00:00
pooka
aba2ad8151 Make it possible to explicitly disable MSI/MSIX with NO_PCI_MSI_MSIX.
Some platforms, e.g. linux uio-pci-generic, do not support MSI at all.

XXX: does MSI being defined intentionally depend on _KERNEL_OPT on amd64
but not i386?
2015-08-21 14:22:14 +00:00
christos
fddcbf3df7 don't abuse %m in printf
fix error messages
2015-08-21 14:19:10 +00:00
roy
33ca8eec34 Remove unused variable. 2015-08-21 13:24:47 +00:00
pooka
8affc54712 kill now-unnecessary empty opt files (_KERNEL_OPT'ed probably eons ago) 2015-08-21 12:45:10 +00:00
pooka
5837845c12 Move constant cpp macros from Makefile.rump into opt_rumpkernel.h
(makes cc invocation lines a bit shorter)
2015-08-21 12:39:07 +00:00