ryoon
7e169e0a45
pnpbios.4 is in i386
2019-08-05 15:06:47 +00:00
maya
771183eb32
Consistent indentation / whitespace
2019-08-05 13:50:58 +00:00
maya
0189925033
KNF for loops
2019-08-05 13:49:10 +00:00
maya
e203dacf10
Remove duplicate check for curpkt > 13
...
We already guarantee this above:
if (numpkts < 1 || numpkts > 13) {
return -1;
2019-08-05 13:45:01 +00:00
maya
538e47f18a
Avoid read overflows
2019-08-05 13:39:18 +00:00
msaitoh
d3751be22c
Cast uint32_t to avoid undefined behavior in bridge_rthash(). Found by kUBSan.
2019-08-05 13:30:21 +00:00
msaitoh
e8a5e6e284
Use unsigned to avoid undefined behavior in gen7_get_stolen_reserved().
...
Found by kUBSan.
2019-08-05 13:28:31 +00:00
hkenken
6f46a07033
Add "fsl,imx6qp" (i.MX6QP) to ARM_PLATFORM list.
2019-08-05 12:44:01 +00:00
hkenken
221bf36688
Remove debug print message.
2019-08-05 12:30:13 +00:00
hkenken
f1a2c92f97
Add support FDT.
2019-08-05 12:21:00 +00:00
christos
7e26066147
add forward decl
2019-08-05 10:25:41 +00:00
msaitoh
24a7ac9193
Avoid undefined behavior. Found by kUBSan.
2019-08-05 10:14:19 +00:00
msaitoh
ea49612167
- Fix a bug that acpiec_space_handler() doesn't access more than 64bit
...
correctly. Found by kUBSan on Thinkpad X220. acpiec0 accessed 128bits from
address 0xa0. The error message was:
UBSan: Undefined Behavior in ../../../../dev/acpi/acpi_ec.c:672:32, shift exponent 64 is too large for 64-bit type 'long unsigned int'
- KNF.
The error message was:
2019-08-05 10:12:04 +00:00
msaitoh
432f5bfca0
Fix undefined behavior in thinkpad_mask_init(). Found by kUBSan.
2019-08-05 10:09:35 +00:00
skrll
61aabaa0fe
Typo in error message
2019-08-05 07:03:55 +00:00
tnn
409d6598dd
remove useless splbio() in sunxispi_start
...
We raised spl already in sunxispi_transfer.
XXX spi(4) should be made MPSAFE
2019-08-04 22:26:40 +00:00
tnn
8bb11c75f4
m25p: change devices recently added from 4kB "sector size" to 64kB ...
...
... even though it is wrong and these devices really use 4kB sector size.
Despite the struct member being named sector size it is actually used as
block size. Our spiflash driver doesn't issue sector erase commands.
Stopgap measure to fix data corruption until the driver is fixed.
2019-08-04 22:13:24 +00:00
tnn
e9ef85cfea
m25p: add GigaDevice 25Q127CSIG
...
(This is the boot ROM found on ROCKPro64.)
2019-08-04 20:49:54 +00:00
mrg
916d2ae82c
move / re-add some headers to fix INET6 builds.
2019-08-04 18:04:18 +00:00
tnn
6673691289
rk3399_cru: add definitions for SPI clocks
2019-08-04 17:09:07 +00:00
maxv
79bd11acc0
Fix info leaks.
2019-08-04 14:30:36 +00:00
martin
6477ac5760
Fix copy&pasto: when we find a FFSv1 filesystem, properly record it
...
that way - so the correct bootblocks get installed on system upgrades.
2019-08-04 10:29:41 +00:00
mrg
c564f35f60
add a list of done/todo items to the shared ethernet driver code.
2019-08-04 09:10:48 +00:00
mrg
20f8866f0d
convert axe(4) and ure(4) to usbnet.
...
axe loses 838 lines (37%) and ure loses 716 lines (36%).
2019-08-04 09:03:46 +00:00
mrg
fa8dd7eff9
- adjust usbnet interface to allow usbd_open_pipe_intr(), from the
...
new comment:
* if un_intr_buf is not NULL, use usbd_open_pipe_intr() not
* usbd_open_pipe() for USBNET_ENDPT_INTR, with this buffer,
* size, and interval.
the standard handling is in usbnet.c, with a callback to deal with
the interrupt it self. not fully tested, designed for if_aue.c
and a few others not yet converted.
- make usbhist for usbnet.c work, thanks paulg
- usbnet_init_rx_tx() clears out all allocations upon failure now
- add usbnet_ec() to get a pointer to the struct ethercom
- add usbnet_{lock,unlock,owned}*() to lock/unlock the various locks
and *owned*() for asserting
welcome 9.99.3!
2019-08-04 08:59:13 +00:00
uwe
a4a4fa9898
Minor markup tweaks.
2019-08-04 01:22:49 +00:00
tnn
b567307faa
make function prototype consistent
2019-08-03 19:56:42 +00:00
skrll
a51c6b3a0b
Trailing white space
2019-08-03 15:58:14 +00:00
tnn
4a1c6b68d5
sun6i_spi: bring over non-intrusive improvements from sun4i_spi
...
- simplify attach error handling
- calculate minfreq & maxfreq instead of hardcoding
- print configured value of SPI_SCLK
- add convenience macro for reading/writing SPI register
- clean up commented out debug printfs
2019-08-03 14:42:24 +00:00
martin
9b4c571a0a
When reading an existing gpt, match the wedges already existing ons
...
on the parent device, so we can use them directly if we should proceed
with an unmodified partition table.
2019-08-03 14:00:42 +00:00
tnn
4d01c773be
sun4ispi* at fdt?
2019-08-03 13:33:10 +00:00
tnn
dbb0007161
sun4i_spi: spi(4) driver for Allwinner A10/A20 platform
2019-08-03 13:28:42 +00:00
jmcneill
1dc95d4f1e
Properly honour max_type arg to pci_intr_alloc
2019-08-03 12:55:46 +00:00
martin
a8e7688bfa
Properly handle partitions that we were requested to mount but not newfs.
2019-08-03 12:09:22 +00:00
maxv
20e0cdbea1
Replace || by && in KASAN, to increase the pool coverage.
...
Strictly speaking, what we want to avoid is poisoning buffers that were
referenced in a global list as part of the ctor. But, if a buffer indeed
got referenced as part of the ctor, it necessarily has to be unreferenced
in the dtor; which implies it has to have a dtor. So we want both a ctor
and a dtor, and not just one of them.
Note that POOL_QUARANTINE already implicitly provides this increased
coverage.
2019-08-03 09:31:07 +00:00
nonaka
ab7d8aa285
x86 efiboot: version 1.1.
2019-08-03 08:13:36 +00:00
christos
558326f791
PR/54433: Hisashi Todd Fujinaka: Empty $MAILTO causes cron to crash
2019-08-03 07:06:47 +00:00
rin
c1e991c827
Protect rasops_copy{rows,cols}() by _RASOPS_PRIVATE.
2019-08-03 06:29:52 +00:00
isaki
002042ffe7
Fix a trivial wrong comment. x68k's arch is not m68010.
2019-08-03 04:21:37 +00:00
tnn
55423e6fd6
m25p: add some ~2010 vintage parts found in junk drawer
2019-08-03 02:22:06 +00:00
tnn
c0d3233ca1
m25p: print vendor & device id before bailing out on unknown devices
2019-08-03 00:46:02 +00:00
rin
e9f5314169
Real fix for 24-bpp color:
...
- When centering screen, locate effective base address of framebuffer to
both word and 24-bit color boundary.
- Consistently convert ri_devcmap to ``big endian'' if not RI_BSWAP.
Also, fix possible bug for 15/16-bpp with RI_BSWAP (not tested).
2019-08-02 23:24:37 +00:00
rin
5a0cb99821
Fix unaligned word write's to buffer, introduced in rev 1.42:
...
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops24.c#rev1.42
2019-08-02 23:05:42 +00:00
kamil
75a7ede06f
Update our vm resource use for sysctl(3) call reading kinfo_proc*
...
Without this change RSS properties are zeroed unless a process exits or
calls getrusage(2).
2019-08-02 22:46:44 +00:00
nakayama
8ea8ce4449
Change uname and gname to sync with etc/mtree/special.
...
It was missing in rev 1.195 changes.
2019-08-02 19:58:00 +00:00
jmcneill
1750c741db
Ignore AccessWidth (PL011 and SBSA console always needs 32-bit access)
2019-08-02 19:49:17 +00:00
hauke
76b938c44a
Deal with gcc's "warning: this statement may fall through
...
[-Wimplicit-fallthrough=]" by adding the missing KNF FALLTHROUGH
comments.
christos@ approved.
2019-08-02 14:55:57 +00:00
joerg
3dbc6e4c72
ARMv6KZ has been misspelled by GCC since forever, but clang only
...
provides the correct name. Support both.
2019-08-02 12:07:24 +00:00
joerg
015826c2f0
Force use of GNU as for acorn32 boot code (pre-unified assembly)
2019-08-02 12:06:20 +00:00
joerg
c51cec6ce0
Bump sparc miniroot by 100KB for the clang-based build.
2019-08-02 12:04:45 +00:00