Commit Graph

289317 Commits

Author SHA1 Message Date
andvar 6584ea569e fix various typos in compatibility, mainly in comments. 2021-08-09 20:49:08 +00:00
rillig 9cea3ffa32 lint: warn about 'char * = strchr(const char *, int)'
Found in findcc.c, there are about 25 other instances of this
incongruency in the whole source tree.

For more examples of functions from the C Standard Library that
implicitly remove the 'const' qualifier from an argument, see the C++
include file 'cstring'.
2021-08-09 20:07:23 +00:00
andvar d7fca1ab3d fix typos in asymmetry, asymmetric(al), symmetrical. 2021-08-09 19:57:57 +00:00
andvar 32a556f954 fix various typos in comments and messages. 2021-08-09 19:24:32 +00:00
kre 6a1a2ce2c3 Fix the fix to a typo in one of the comments. 2021-08-09 11:29:30 +00:00
gson a016b984d7 Test errno when the return value from wait() indicates an error, not
when it indicates success.  PR install/56303.
2021-08-09 10:46:39 +00:00
thorpej 925e6da6b6 Fix CVS eff-up. 2021-08-09 04:06:21 +00:00
thorpej cbb54e7dae thorpej-i2c-spi-conf -> thorpej-i2c-spi-conf2. 2021-08-09 00:32:51 +00:00
thorpej 8ee5242d92 Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.
2021-08-09 00:30:08 +00:00
rin 9c8bf6ee9d Fix LIST operations, found by strictly-aligned CPUs, i.e., ARMv5 and IBM403:
- Initialize LIST_HEAD.
- Use LIST_FOREACH_SAFE() where necessary.
2021-08-08 22:26:32 +00:00
andvar db383f4739 s/partion/partition/ s/arrray/array/ in comments. 2021-08-08 21:50:10 +00:00
andvar 2d60d84a8c s/arry/array/ 2021-08-08 21:45:53 +00:00
andvar 6458a9af4a s/propely/properly/ 2021-08-08 20:57:09 +00:00
nia f96b5061e9 perfused: use SOL_LOCAL 2021-08-08 20:56:54 +00:00
uwe 3934175656 Add ddbping example module to SUBDIR list. 2021-08-08 20:55:33 +00:00
nia 213aa76def introduce a SOL_LOCAL for unix-domain socket level socket options
as an alias of the current 0 used for these options, as in FreeBSD.

reviewed by many.
2021-08-08 20:54:48 +00:00
andvar f1229b5389 s/varable/variable s/explictly/explicitly/ s/proerly/properly/ in comments. 2021-08-08 20:50:12 +00:00
skrll 7763cb672f Re-apply
Move 'struct pic_pending' from percpu to struct cpu_info. Saves a few
instructions in splx.

There is(/was) no need to use atomic operations on the percpu / cpu_info
members, so don't.

Finally removng the use of percpu should help avoid problems with "late"
attaching cpus.
2021-08-08 19:28:08 +00:00
jmcneill 9a250646b6 Adjust register base and size 2021-08-08 18:55:12 +00:00
jmcneill 5eb739235d broadcom: ACPI: Add support for mini UART in ACPI mode. 2021-08-08 18:43:21 +00:00
wiz a2b7bc982b Fix Dd argument. 2021-08-08 16:53:53 +00:00
rillig c95069d627 tests/lint: include but don't run read_lp64 on 32-bit platforms
The lint1 tests are all in the machine-independent file list, which
makes it easier to manage them.  At run time, some of them are skipped
based on platform characteristics.  Do the same for the lint2 tests.

Having the lint2 test named read_lp64 as the only machine-dependent test
would complicate things.

The build for i386 had failed because the files for read_lp64 were
listed in distrib/sets/lists/tests/mi but were not actually installed.
2021-08-08 16:35:15 +00:00
jmcneill 04fe20972f Fixup bwfm(4) register bit regarding SDIO device suspend/resume.
From OpenBSD if_bwfm_sdio.h r1.3
2021-08-08 16:23:37 +00:00
rillig af2bca3e81 lint: group global variables by the subprocess
No functional change.
2021-08-08 16:19:18 +00:00
andvar 5712d03cb7 change othersize to otherwise. I believe this is what was meant in the context. 2021-08-08 16:12:10 +00:00
rillig 418f430031 lint: rename list_free to list_clear
The previous name suggested that the function would free the list
itself, which it doesn't.
2021-08-08 16:11:08 +00:00
rillig 10957491ec lint: update and proofread manual page 2021-08-08 15:59:32 +00:00
rillig fba527287b lint: remove dead code for reading from stdin
Since xlint.c 1.27 from 2002-01-31, it has not been possible to read
from stdin anymore.  Apparently nobody missed this feature in the last
19 years.
2021-08-08 15:29:24 +00:00
jmcneill b554808555 fdt: regulator: pre-allocate regulator handle
Workaround for PR# port-evbarm/54664
2021-08-08 15:23:42 +00:00
rillig 40c794a1b5 lint: inline list_add_defines
No functional change.
2021-08-08 15:06:44 +00:00
rillig 862f384edd lint: rename functions for handling string lists
No functional change.
2021-08-08 15:03:47 +00:00
rillig f679779a53 lint: make data flow in findlibs simpler
No functional change.
2021-08-08 14:05:33 +00:00
jmcneill 573d9ab9d5 fix armv7 build 2021-08-08 13:43:09 +00:00
rillig bb42854a54 lint: make memory management in xlint simpler
No functional change.
2021-08-08 13:34:57 +00:00
rillig 0793feb93c tests/lint: mips64 is not a 64-bit platform
See usr.bin/xlint/arch/mips64/targparam.h.
2021-08-08 13:22:22 +00:00
rillig dd4ca8c6ab tests/lint: clean up accept.sh, document test for removed assertion 2021-08-08 13:19:51 +00:00
jmcneill f9f3034040 evbarm: Add support for Arm PCI Configuration Space Access Firmware
Interface (DEN0115).
evbarm: Add support for Broadcom BCM2838 EMMC2 in ACPI mode, as found
	on the Raspberry Pi 4.
evbarm: Add support for shared ACPI platform interrupts.
2021-08-08 12:35:43 +00:00
jmcneill 7ee34f4898 Enable options PCI_SMCCC on 64-bit Arm. 2021-08-08 12:31:42 +00:00
tnn 82e9732108 radeonfb: use BUS_SPACE_MAP_PREFETCHABLE for the framebuffer mapping
Makes the driver work on cia(4) based alpha machines, which can only
do dense access to linear mappings with prefetch. ok macallan@
2021-08-08 12:17:37 +00:00
jmcneill 0a249149af Install the shared PCI INTx interrupt handler at IPL_VM to workaround a
possible interrupt storm at boot. Need to revisit this.
2021-08-08 12:09:52 +00:00
rillig 940ba17e56 make: remove redundant initialization in ApplyModifier_Order
No functional change.
2021-08-08 12:00:30 +00:00
rillig 379b6a2277 lint: force strict bool mode
No functional change.
2021-08-08 11:56:35 +00:00
jmcneill 5d35e63678 Use SMBIOS system product instead of the string "netbsd,generic-acpi"
for firmware loading on ACPI systems.
2021-08-08 11:11:29 +00:00
rillig 686f6eef97 tests/lint: test passing of printf-like strings between lint1 and lint2 2021-08-08 11:07:19 +00:00
jmcneill 985eb50674 disable DMA for now... 2021-08-08 10:59:27 +00:00
martin bcb7e68e0a Fix obvious editor mishap in previous 2021-08-08 10:48:35 +00:00
rillig b972f58e7b lint: condense code for writing the .ln files
No functional change.
2021-08-08 10:41:34 +00:00
jmcneill a776187733 bcm2838: Add ACPI support for the EMMC2 SDHCI controller. 2021-08-08 10:32:26 +00:00
jmcneill deb170c0a7 arm: ACPI: Add support for simple sharing of platform interrupts
Allow sharing of platform interrupts provided that the type, ipl, and
mpsafe-ness are the same.
2021-08-08 10:28:26 +00:00
skrll 1306a159ff Whitespace 2021-08-08 07:17:18 +00:00