Commit Graph

263008 Commits

Author SHA1 Message Date
martin
5864e121ba Fix test for active root partition when booting from a wedge 2018-11-09 15:20:36 +00:00
jmcneill
fd70b7a6af Enable new timings and HS200 mode on A64 eMMC 2018-11-09 14:39:51 +00:00
jmcneill
d991bdc40d Defer DIOCCACHESYNC to the sdmmc task queue so they are serialized with other requests. 2018-11-09 14:39:19 +00:00
jmcneill
55f594fd3c Wait for data ready after eMMC flush cache commands 2018-11-09 14:38:36 +00:00
maya
bddddfadc4 Use the same type redefinition guards as stdint.h since rev1.8
PR pkg/53713
2018-11-09 11:46:28 +00:00
martin
6b62e867ad Add modfl alias. 2018-11-09 10:19:47 +00:00
mbalmer
ce9e22ba54 I am responsible for luactl. 2018-11-09 07:54:25 +00:00
ozaki-r
82733c9693 Add a test to show a large number of MAC addresses cached in a bridge 2018-11-09 06:45:03 +00:00
ozaki-r
63f183af76 Fix that brconfig <bridge> (addr) can't show a large number of MAC addresses
The command shows only 256 addresses at maximum even if a bridge caches more
addresses.  It occurs because the kernel doesn't return an error if the command
passes a short buffer that can't store all cached addresses; the kernel fills
cached addresses as much as possible and returns it without telling that the
result is truncated.

Fix the issue by telling a required size of a buffer if a buffer passed from the
command is not enough, which lets the command retry with an enough buffer.

Reported by k-goda@IIJ
2018-11-09 06:44:31 +00:00
mrg
33cbd42a21 tg1 is a 64 bit value, store it in a 64 bit variable. 2018-11-09 04:06:40 +00:00
mrg
93c24e9cc2 implement dumpsys() and friends for arm64.
this is almost a direct copy of the arm code, which is simply
as the basic structures about physical memory are the same
between arm and arm64.  the main change i made was to use
the direct map instead of a virtual dump page that is remapped
to whatever physical page is being dumped.

i also changed the existing cpu_kcore_hdr_t to include the
missing number of ram segments.

note that this is not a complete solution for crash dumps yet,
as the libkvm code needs some work.  i'm fairly positive that
this side is correct, as i can see the data i expect to see,
but libkvm's _kvm_kvtop() function returns garbage so far.

there is no "minidump" support here yet, ala amd64, but we
probably want it eventually.


ok skrll@.
2018-11-09 04:05:27 +00:00
kre
7ba0d30a60 PR bin/53712
Avoid crash from redirect on null compound command.
2018-11-09 02:11:04 +00:00
christos
5a18d4517f revert previous; does not fix the issue 2018-11-08 23:20:52 +00:00
christos
86a693fca0 Don't build this as a PIE binary, PIE binaries need PHDR and this barfs
under the new binutils: error: PHDR segment not covered by LOAD segment
[including bsd.init.mk includes ../Makefile.inc which disables PIE like
 all the other bootloaders do]
2018-11-08 21:47:04 +00:00
martin
1c2e5b02c0 Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).
2018-11-08 20:29:37 +00:00
kre
375f4ceb14 Allow shells forked to run command substitutions while expanding
prompts to exit when they're done, rather than forcing them to
turn into interactive shells and start reading input ...

Completes a part of the previous changes (just 10+ weeks late...)

Should fix the prompt expansion issue reported by Caóc on
current-users.
2018-11-08 18:37:42 +00:00
riastradh
0cc7838e19 Attempt to implement fabsf by copying fabs and s/d/f/g.
Vax wizards, please vaxinate if I flubbed this!
2018-11-08 18:19:37 +00:00
riastradh
7b66ed5df0 Use the generic C fabs/fabsl on ia64 for now to unbreak the build. 2018-11-08 16:36:16 +00:00
riastradh
3e49d37969 powerpc64 needs fabsl too. (Apparently no __HAVE_LONG_DOUBLE?) 2018-11-08 16:31:46 +00:00
riastradh
e84f49ed3d Try speling it rite, riasthradhdadhaa or whatever your name is. 2018-11-08 16:29:50 +00:00
martin
a48ed55e5c Untangle disk enumeration a bit more. 2018-11-08 11:56:56 +00:00
martin
4bb5c5376d Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.
2018-11-08 11:15:58 +00:00
maxv
889230a78b Simplify the ifdefs, and error out if XEN and USER_LDT are both defined. 2018-11-08 10:55:41 +00:00
martin
529c99a3de Fix typo 2018-11-08 09:00:24 +00:00
maxv
539cbe563d Note NVMM and aarch64+kasan. 2018-11-08 08:32:57 +00:00
mlelstv
cd80b10522 Regen 2018-11-08 08:28:25 +00:00
maxv
f1cb8e8464 Track the stack with kASan on aarch64. Same principle as on amd64. Illegal
accesses occurring there are now detected.

Originally written by me, but reworked by ryo@, thanks.
2018-11-08 08:28:07 +00:00
mlelstv
16c07d020a Fix typo 2018-11-08 08:27:54 +00:00
skrll
1d97221e99 Fix build after recent arm32_pci_chipset change 2018-11-08 06:49:09 +00:00
msaitoh
8f11c2d4df "s/ are are / are /" in comment. No functional change. 2018-11-08 06:44:50 +00:00
msaitoh
169880b3b2 "s/ an an / an /" in comment. No functional change. 2018-11-08 06:43:52 +00:00
msaitoh
54c9821e53 "s/ are are / are /" in comment. No functional change. 2018-11-08 06:34:40 +00:00
msaitoh
fd348f5e3a "s/ is is / is /" in comment. No functional change. 2018-11-08 06:23:48 +00:00
roy
71ebc4ef79 Don't call soroverflow when we return the error to the sender.
Thanks to thorpej@ for a sanity check.
2018-11-08 04:30:37 +00:00
msaitoh
4f0ad6859e Regen. 2018-11-08 04:05:10 +00:00
msaitoh
1fa74a4be8 Add two otehr I2C devices of Intel. 2018-11-08 04:04:42 +00:00
christos
bbcc6d539d regen 2018-11-08 02:30:14 +00:00
christos
73124e42b8 delete i386 aout vec which has been removed 2018-11-08 02:30:06 +00:00
manu
077b167a87 Workaround PN533 USB descriptor corruption
During normal operation, the PN533 chip may corrupt its USB configuration,
interface and endpoint descriptors. The device descriptor remains unaffected.

Since the descriptors are documented to be immutable, we can work around
the problem by providing hard-coded descriptors instead of pulling them
from the device.

Userland implementation such as NFC tools' libnfc use the same approach,
but this kernel quirk is still necessary so that the device can be
attached on reboot, after its USB descriptors got corrupted.
2018-11-08 02:11:54 +00:00
christos
ea1b76a438 need global replace 2018-11-08 02:08:35 +00:00
manu
3a90e4fc2f regen 2018-11-08 02:03:37 +00:00
manu
4aff54bd8d Add PN533 based NFC devices 2018-11-08 02:01:28 +00:00
manu
0f4ba33390 Enfore USB timeout on ugen(4) write operations 2018-11-08 01:59:53 +00:00
maya
9cfa536b98 Don't provide these definitions on netbsd as before, but without relying
on int8_t being a macro.
2018-11-07 22:51:47 +00:00
riastradh
cdb65da578 On ports without __HAVE_LONG_DOUBLE, make fabsl alias fabs.
For some reason, fabs lives in libc, not in libm, and our tests now
detect when fabs or fabsl is missing from libm.  For those ports that
sometimes have long double and sometimes don't, make it conditional.

Still missing: fabs _and_ fabsl on ia64.  Need help from an itanium
wizard!  Other portmasters: Please take a look and see if I missed
any ports that might have long double where this alias will not work.
2018-11-07 22:21:42 +00:00
martin
e80b64debe Fix CD_NAMES against concrete instances comparision - if CD_NAMES
entries have a wildcard, strip device instance number off from both
comparands.
2018-11-07 21:59:30 +00:00
martin
3b44a3d7f6 Unify handling of CDROM device names.
Skip CDs when looking for install targets (we do not support installing
onto a blueray with UDF).

Fix search for the default CDROM device and the CD we booted from
for ports with nonstandard CDROM device names.
2018-11-07 21:20:23 +00:00
jdolecek
8df70e6b71 don't touch the queue structure in ata_queue_active() if atabus is already
detached from the channel

fixes panic on null pointer derefence during shutdown reported privately
by Launey Thomas
2018-11-07 17:05:54 +00:00
hannken
b26dcce64a Don't defer errors from sendmmsg(). This matches the linux manpage.
Defer errors from recvmmsg() through so_rerror and
tests and return a deferred error on entry.

Ok: christos@
2018-11-07 09:59:12 +00:00
hannken
45fa9d7920 Update getsockopt(SO_ERROR) to behave like soreceive() and
return and clear so->so_rerror if so->so_error is zero.

Ok: christos@
2018-11-07 09:58:19 +00:00