Commit Graph

287552 Commits

Author SHA1 Message Date
jdolecek 23c31e7fd3 disable MSI for SiI3124 - interrupts don't seem to work on this old board
when MSI is enabled, maybe because it's behind a PCI bridge

PR kern/55115 by John D. Baker
2021-05-05 19:30:51 +00:00
thorpej d150dc8d01 Remove unneeded Makefile dependency for things which have long since
used opt_*.h headers.
2021-05-05 15:39:39 +00:00
thorpej 8c0088cdb7 Remove unused dot_conv() function. 2021-05-05 15:36:17 +00:00
thorpej f19bd5bd6d Disable preemption around the main work of badaddr_read() and delay();
they both use "current CPU" resources.
2021-05-05 15:34:54 +00:00
thorpej 9927e7a8be Make scb_strat() static. 2021-05-05 14:58:57 +00:00
christos 20fa0b90d9 PR/56147: Miroslav Lichvar: Avoid memory leak if strdup fails. 2021-05-05 14:49:59 +00:00
jmcneill cd8fccb48b Add loadfile_machdep.h for riscv 2021-05-05 12:47:02 +00:00
jmcneill 0b0528ef1b evbarm: Add support for Allwinner V3s SoCs. 2021-05-05 10:25:36 +00:00
jmcneill 6c4affb922 Add support for Allwinner V3s, from Rui-Xiang Guo. 2021-05-05 10:24:04 +00:00
mrg 3a698d51e8 don't assume host BUFSIZ is sufficent. small BUFSIZ leads to
always happens errors in the testsuite.  switch all these buffers
to be 4KiB sized.  reported by embr <git@liclac.eu>
2021-05-05 07:41:48 +00:00
mrg ddeab5ea7f include <stdint.h>. bozo_unconst() uses uintptr_t defined here.
from embr <git@liclac.eu>.
2021-05-05 07:09:19 +00:00
simonb 9067f6d4d2 Sprinkle some static. 2021-05-05 06:47:29 +00:00
simonb cc8be526c0 The watchdog setup code isn't used (yet), so don't compile in the
octeon_nmi_stack that it uses either.
2021-05-05 06:46:37 +00:00
thorpej efdf627147 Decorate cpu_info_list with __read_mostly; it's never modified once
all the CPUs are attached.
2021-05-05 03:54:16 +00:00
thorpej 0cdcacbb9b Moar static. 2021-05-05 02:15:18 +00:00
thorpej af8fe53583 Add a linker script for the kernel. The main difference vs the
standard built-in for "ld -N" is to actually process the
.data.cacheline_aligned and .data.read_mostly sections correctly.
2021-05-05 01:35:35 +00:00
khorben 6af4ccb24b prekern: add warnings upon problems collecting entropy
As submitted on port-amd64@ (part 3/3)

Tested on NetBSD/amd64.
2021-05-04 21:13:38 +00:00
khorben c4e02ad6ec prekern: do not choke on bad entropy files
As submitted on port-amd64@ (part 2/3)

Tested on NetBSD/amd64.
2021-05-04 21:10:25 +00:00
khorben dadf0eef45 prekern: add support for warning messages
As submitted on port-amd64@ (part 1/3)

Tested on NetBSD/amd64.
2021-05-04 21:09:16 +00:00
rillig d16694fc52 tests/lint: make test for message 118 platform-independent 2021-05-04 19:57:56 +00:00
jmcneill facc67ca98 Set VERSIONMACHINE to ${MACHINE} instead of evbarm (oops) 2021-05-04 19:07:19 +00:00
christos 88ec8e1e1c Fix code example (from RVP) 2021-05-04 17:51:55 +00:00
christos 87874d0971 Fix incorrect structure name (Rocky Hotas) 2021-05-04 17:47:51 +00:00
rillig 77a04ba4f7 libXaw: fix Clang build
--- Pixmap.pico ---
error: unknown warning option '-Wno-discarded-qualifiers'; did you mean
'-Wno-ignored-qualifiers'? [-Werror,-Wunknown-warning-option]
2021-05-04 17:47:05 +00:00
rillig 9b7284c255 compiler_rt: build .a.syms files as part of dependall
The previous target 'all' is a top-level target intended to be specified
by the user.  During the regular build, 'dependall' is used instead of
'all'.  The target 'realall' is common to those two.
2021-05-04 17:23:53 +00:00
rillig 2ef2b36bb5 bind: remove unnecessary CONSTCOND
Lint does not need this anymore, since 2021-01-31.
2021-05-04 13:40:34 +00:00
rillig b640b0e245 bind: fix Clang build
I had already fixed this on 2021-03-27, but the fix was accidentally
reverted on 2021-04-29 when updating to bind 9.16.15.
2021-05-04 13:16:06 +00:00
skrll ff9dfaecc9 Always expose pmap_tlb_update_addr now that all current PMAP_HWPAGEWALKERs
(arm) users provide the required functions.
2021-05-04 09:05:34 +00:00
skrll 45c27783d3 Provide pte_{value,valid_p} 2021-05-04 09:02:21 +00:00
rillig 8d96908096 lint: fix assertion failure when promoting a bit-field larger than int 2021-05-04 05:40:10 +00:00
rillig 249bb67fed tests/lint: demonstrate assertion failure "len == size_in_bits(INT)"
Seen on sparc64 in hdtoa.c:341 since sparc64 is one of the platforms
that has 128-bit long double and defines struct ieee_ext.ext_frach:48
based on uint64_t, which is a GCC extension.  Plain C99 only allows
_Bool, signed int and unsigned int as base type for bit-fields.
2021-05-04 05:32:52 +00:00
skrll 034e13e3b5 Sort __HAVE_ #defines. NFCI. 2021-05-03 20:07:57 +00:00
skrll e57b205ea8 Remove unnecssary brackets. Same binary before and after. 2021-05-03 19:33:09 +00:00
tnn c10b316a83 bcm2838_pcie: match brcm,bcm2711-pcie 2021-05-03 18:56:38 +00:00
simonb e85380d6f9 Add links for the other functions documented in arc4random(3). 2021-05-03 11:07:55 +00:00
rin 6bcd046821 genet(4): Add support for rnd(9). 2021-05-03 10:28:26 +00:00
fcambus e8311a17cd Remove duplicate #ifdef block. 2021-05-03 10:25:14 +00:00
nakayama ed748a1dd8 Remove duplicate lines. 2021-05-03 08:44:05 +00:00
simonb 0cdd944264 Whitespace police. 2021-05-03 08:30:30 +00:00
rillig 2bdae3c73f lint: undefine macros for defining keywords after use
No functional change.
2021-05-03 08:03:45 +00:00
rillig fd5ea9b204 if_wm: do not return a void value from a void function
This is a GCC extension.
2021-05-03 07:43:31 +00:00
rillig d6845656c5 lint: remove redundancy when defining classic keywords
No functional change.
2021-05-03 07:30:19 +00:00
rillig f34b241711 lint: reduce redundancy when defining GCC attributes
This macro would have prevented the unintended inconsistency in the
attribute 'pcs' (for ARM).

No functional change.  The generated code is the same, except for the
line numbers in lint_assert.
2021-05-03 07:25:08 +00:00
rillig 58cf05d8c5 lint: allow variables to be named 'pcs' 2021-05-03 07:08:54 +00:00
rillig 5615754a21 tests/lint: demonstrate bug in the lexer for GCC attributes 2021-05-03 06:24:18 +00:00
rillig 944c465b9d lint: fix parsing of __typeof__ after statement in ({ ... })
Since C99, declarations and statements can be freely mixed, and GCC
supported this even before 1999.
2021-05-03 05:24:44 +00:00
rillig 413a9598ba tests/lint: remove outdated comment
The test d_gcc_extension is already activated in line 121.
2021-05-03 03:50:43 +00:00
rillig fd32325145 lint: fix compiler warning about signedness mismatch
No functional change.
2021-05-03 03:46:55 +00:00
rillig 9491476953 lint: allow large integer types for bit-fields in GCC mode
These types are explicitly allowed by GCC.

I'm not sure which of the flags -g and -p should be stronger.  That is,
if both -g and -p are given, should 'unsigned char' be allowed as a
bit-field type since -g would allow it, or should it be warned about
since -p warns about it?  For now, continue to warn about these.
2021-05-02 22:07:49 +00:00
rillig 46bc06fdbe lint: extract check_bit_field_type from declare_bit_field
No functional change.
2021-05-02 21:48:53 +00:00