tsutsui
5bb95625d8
Remove #undefs against INTERRUPT_SAVEREG and INTERRUPT_RESTOREREG.
...
They have been defined in <m68k/asm.h> for years.
2021-01-25 13:08:04 +00:00
thorpej
77507b12b7
Build strlist.c.
...
(Sigh, missed in original commit.)
2021-01-25 12:45:49 +00:00
jmcneill
608e11c703
Add support for ACPI-based I2C mux attachment.
2021-01-25 12:18:18 +00:00
jmcneill
3a8ddc74d3
NetBSD 9.99.79 - struct i2c_attach_args adds 'ia_cookietype' field
2021-01-25 12:17:24 +00:00
jmcneill
02b41e14ea
Add "cookietype" to i2c attach args, so the consumer knows if ia_cookie
...
is either an OF phandle or an ACPI_HANDLE. Add NXP0002 compatible mapping
while here.
2021-01-25 12:15:32 +00:00
jmcneill
10d66639d3
Configure clocks and enable NXP Layerscape quirks in motoi2c
2021-01-25 12:09:58 +00:00
jmcneill
69a6f93785
NXP Layerscape LX2160A has an almost compatible controller, with a few
...
quirks:
- IBCR bit 7 is "module disable" instead of "module enable".
- Status bits in IBSR are W1C.
Add quirk flags for both.
2021-01-25 12:08:47 +00:00
macallan
4f1cc4480a
clear the RI_CURSOR flag when we overwrite the cursor so we can skip clearing
...
it when asked to do it later on
saves a bunch of framebuffer writes
2021-01-25 02:11:41 +00:00
kre
96a8cd3a4f
Correct date for previous (tzdata 2021a update) - seems I cannot read
...
the output of the date(1) command any more...
2021-01-24 22:08:37 +00:00
kre
4f7273886d
Note update of tzdata to 2021a
2021-01-24 22:02:47 +00:00
kre
8ca3abc975
Merge tzdata2021a
2021-01-24 21:59:37 +00:00
kre
00c332b204
Import tzdata2021a from ftp://ftp.iana.org/tz/releases/tzdata2021a.tar.gz
...
Summary of changes in tzdata2021a (2021-01-24 10:54:57 -0800):
South Sudan changes from +03 to +02 on 2021-02-01 at 00:00.
2021-01-24 21:58:58 +00:00
thorpej
869ddac134
malloc(9) -> kmem(9)
2021-01-24 21:48:38 +00:00
rillig
f1a32e5707
make(1): convert SearchPath to struct
...
This prepares for making dotLast a simple struct member instead of a
fake CachedDir, which is easier to understand.
2021-01-24 20:11:55 +00:00
thorpej
0623ee09c3
Rewrite of_network_decode_media() to use strlist_next() and
...
device_compatible_lookup().
2021-01-24 20:09:03 +00:00
rillig
d7a78cdee7
make(1): describe expansion of nested variables in .for values
...
These edge cases are not documented anywhere, and their behavior is
non-intuitive. For now, just describe them, don't try to fix them.
There may be people out there relying on exactly this behavior.
2021-01-24 19:48:11 +00:00
jmcneill
6ca4166a8b
remove part of previous that was committed by mistake
2021-01-24 19:38:49 +00:00
thorpej
e40cc797b4
Rewrite of_compatible() using strlist_match().
2021-01-24 19:38:37 +00:00
jmcneill
988bc6dbc1
trailing whitespace
2021-01-24 19:35:21 +00:00
rillig
f1c0f0e057
make(1): let the test directive-for-escape exit successfully
...
There is no reason for a non-zero exit status here.
2021-01-24 19:30:18 +00:00
jmcneill
9b75b07d12
Add support for NXP Layerscape I2C controllers.
2021-01-24 18:02:51 +00:00
jmcneill
9547a60780
Support non-FDT attachment.
2021-01-24 18:01:13 +00:00
rillig
37de14639f
lint: add test for message 325, undefined static function
2021-01-24 17:55:41 +00:00
rillig
e8cbbabf42
lint: add test for message 329, union cast with incompatible type
2021-01-24 17:44:37 +00:00
thorpej
762c4c996a
Implement of_match_compat_data() using device_compatible_match_strlist().
...
Implement of_search_compatible() using device_compatible_lookup_strlist().
2021-01-24 17:44:16 +00:00
thorpej
2cc04a512c
Refactor and simplify device_compatible_match(), and also provide
...
device_compatible_p{match,lookup}() which treats the strings in the
driver compatible data as pmatch(9) patterns.
Add device_compatible_{,p}{match,lookup}_strlist(), which are the same, but
take an OpenFirmware-style string list rather than an array of strings
for the device data.
2021-01-24 17:42:36 +00:00
thorpej
62be88ee26
Add kmem_tmpbuf_alloc(), a utility function for allocating memory for
...
temporary use where allocation on the stack is desirable, but only up to
a certain size. If the requested size fits within the specified stack
buffer, the stack buffer is returned. Otherwise, memory is allocated with
kmem_alloc(). Add a corresponding kmem_tmpbuf_free() function that frees
the memory using kmem_free() if it is not the tempory stack buffer location.
2021-01-24 17:29:11 +00:00
rillig
c5b23e2249
lint: make path to lint data configurable
...
This is needed for strict bool mode, to make the custom header stdbool.h
available when lint is run as part of build.sh.
2021-01-24 16:55:09 +00:00
thorpej
521520928a
Update a comment.
2021-01-24 16:45:41 +00:00
jmcneill
fd37412cac
Attach dwiic(4) to AMD FCH I2C controllers. These busses are separate
...
from the SMBus that we attach to piixpm(4) today, and support direct
config via ACPI.
2021-01-24 16:33:48 +00:00
thorpej
d2265dc1dc
Change of_search_compable() to return NULL on no-match, which is much more
...
sensible than the previous behavior. As such, back out rev 1.7 of
sunxi_sramc.c. All other of_search_compable() call sites have been audited.
2021-01-24 16:23:05 +00:00
rillig
568ebf3743
lint: fix path to installed stdbool.h for strict bool mode
2021-01-24 16:22:55 +00:00
rillig
fe3677c509
lint: add tests for a few messages
2021-01-24 16:12:45 +00:00
reinoud
0c576d8b82
Remove incorrect comment. It would violate the specs.
...
VirtIO PCI v1.0 attachments can only happen on revision 1 devices as they have
a radical different register layout. Transitional devices have to use revision
0 and have to use the VirtIO PCI v0.9 attachment method but can allow for
features to be negotiated normally found in later versions.
2021-01-24 15:59:35 +00:00
thorpej
0e95ff8892
Use strlist(9).
2021-01-24 15:43:22 +00:00
christos
e2e1ee60e1
Install lint's custom stdbool.h and make lint search for it in the right place.
2021-01-24 15:43:09 +00:00
thorpej
523df2c832
Redefining bus_space functions in drivers is a bad idea, and we just
...
should't be in the habit of doing so. Besides, the previous "solutions"
still did not compile correctly, and this does, so let's be done with
this nonsense, shall we?
2021-01-24 15:34:07 +00:00
reinoud
25f47ada60
On error unmap the pci_mapreg_map()d regions using bus_space_unmap() as
...
suggested by jak@
2021-01-24 15:33:02 +00:00
skrll
bc138cd130
More debug
2021-01-24 14:51:01 +00:00
rillig
8b04e96a79
lint: reduce preprocessor magic for platform target types
2021-01-24 14:47:40 +00:00
tkusumi
ed5947a0ff
fstyp: Fix exfat detection
...
taken-from FreeBSD ddf61156132b610915325769cbb93ea11be0d433
2021-01-24 14:37:32 +00:00
reinoud
8647d884bc
Move definition of NMAPREG to the start
2021-01-24 14:33:49 +00:00
simonb
13775d2957
Fix a tyop in a comment.
2021-01-24 14:17:10 +00:00
reinoud
cf7c091f9e
Prevent potential buffer over runs in number of BARS
2021-01-24 14:12:36 +00:00
martin
203e15b5cb
Obey __HAVE_BUS_SPACE_8
2021-01-24 13:33:56 +00:00
jmcneill
e60d6bc1d4
Use 32K as the default NFSv3 read and write data sizes on aarch64, matching
...
i386 and amd64.
2021-01-24 12:51:32 +00:00
rillig
0ae345d55d
lint: merge duplicate code for interning type names
2021-01-24 11:55:57 +00:00
rillig
a410ccd97a
lint: extract duplicate code into is_null_pointer
...
No functional change.
2021-01-24 11:34:01 +00:00
jdolecek
c99d604e0d
don't check signals while waiting for other kqueue scans to finish
...
reportedly somewhat improves behaviour for PR kern/55946
part of PR kern/50094 fix
2021-01-24 11:31:47 +00:00
rillig
1f640a49f4
lint: fix wrong warning about null pointer comparison
2021-01-24 11:21:58 +00:00