Commit Graph

283787 Commits

Author SHA1 Message Date
jmcneill 8d11c11286 acpi: Use acpi_intr_establish to install interrupt handlers
Get rid of bus-specific (isa_intr_establish) and MD (intr_establish) calls
from MI ACPI code, and use acpi_intr_establish everywhere.
2020-12-06 12:23:13 +00:00
dholland ce47fd40df speed limit 80 2020-12-06 11:41:47 +00:00
jmcneill 7e22a6bccc acpi: remove unused acpi_quirks_osi_* functions 2020-12-06 11:38:28 +00:00
dholland 475cad6763 speed limit 80 2020-12-06 11:35:27 +00:00
rillig d0ce656731 make(1): indent buf.h with tabs instead of spaces 2020-12-06 11:00:56 +00:00
rillig 9df90c54cf make(1): inline macros for debug logging
No changes to the resulting binary, except for the line numbers in
assertions.
2020-12-06 10:49:02 +00:00
rillig ab8e02500d make(1): clean up macros for debug logging
Using a do-while loop prevents compiler warnings about possible dangling
else.  It also removes the unnecessary negation.
2020-12-06 10:33:42 +00:00
jdc 468b9986e5 Don't read from the chip when matching, fail the attach instead (requested
by jmcneill).  Reverts previous.
2020-12-06 10:09:36 +00:00
jdc ca0f291d8a Don't read from the chip when matching, fail the attach instead (requested
by jmcneill).  Reverts previous.
While here, handle errors attaching sysmon and acquiring the iic bus lock.
2020-12-06 10:06:15 +00:00
skrll a4c9665c21 Fix build after interval timers refectoring by thorpej@ 2020-12-06 09:03:29 +00:00
christos 9fd8799cb5 regen more mips and aarch64 2020-12-06 05:23:03 +00:00
christos e5d758f832 fix sh3, regen some more 2020-12-06 04:08:51 +00:00
christos ee7936c8ba don't expose vaddr_t to userland. 2020-12-06 03:46:23 +00:00
christos 20c7f62303 fix m68k, ppc, sparc, vax 2020-12-06 03:29:03 +00:00
christos 13f1e6e199 need -lpthread for sun2 2020-12-06 03:28:25 +00:00
christos cde44e7207 undo previous; __register_t is already defined 2020-12-06 03:19:14 +00:00
jmcneill 161b30af53 acpi: add character device for accessing ACPI tables
The /dev/acpi character device gives an aperture into physical memory
that allows only read access to known ACPI tables: RSDP, XSDT/RSDT, and
the root tables. Adapt acpidump(8) to use this interface by default,
falling back to the old /dev/mem method if it is not available or if
ACPIDUMP_USE_DEVMEM=1 is set in the environment. The user visible benefit
of this change is that "options INSECURE" is no longer required to
dump ACPI tables.
2020-12-06 02:57:29 +00:00
christos f9f4337ba5 Don't expose register_t 2020-12-06 02:26:33 +00:00
christos 86fde3415c don't expose register_t 2020-12-06 02:23:12 +00:00
christos d52bc7250a fix hppa 2020-12-05 23:02:25 +00:00
sjg 2699f59671 Don't let gcov mess up results 2020-12-05 22:51:34 +00:00
christos ab55d2aa89 Use __vaddr_t since we don't expose vaddr_t by default to userland. 2020-12-05 22:49:50 +00:00
mrg e9b9ccbba9 bump version for xorg-server 1.20.10. 2020-12-05 22:44:57 +00:00
christos 3909f68e34 fix arm build 2020-12-05 22:24:26 +00:00
christos 5275d28a1c fix alpha build. 2020-12-05 22:14:44 +00:00
nia 05b0f27ac9 Don't install header marked obsolete
pointed out by mrg
2020-12-05 21:36:21 +00:00
christos 575adc5486 Don't bother with gdbserver for archs that don't build it. 2020-12-05 21:27:31 +00:00
christos 992125b748 fix and rege aarch64 2020-12-05 21:27:06 +00:00
christos 417fcb580b add aarch64 bits 2020-12-05 21:26:43 +00:00
rillig eda91dc8cf make(1): indent parse.c with tabs instead of spaces 2020-12-05 19:46:04 +00:00
chs 4650d4123d update the rump copy of uvm_page_unbusy() to match the real version,
in particular handle PG_PAGEOUT.  fixes a few atf tests.
2020-12-05 19:08:50 +00:00
rillig 37d00948af make(1): reduce indentation in ParseDependencySourceKeyword 2020-12-05 19:06:51 +00:00
rillig 4210bc2dad make(1): extract ParseDependencySourceWait 2020-12-05 19:03:45 +00:00
tsutsui 898b1f3481 Inform the default installation directory in the official ftp server. 2020-12-05 18:57:21 +00:00
tsutsui 5f7aa7d27b Use proper release version strings ("9.1" rather than "91") in banners.
Also define and use "MACHINE" variable to describe port names
(no uname(1) or sysctl(8) in miniroot binary list by default).

I guess the short format like "91" by ${DISTRIBREV} was used only
for split sets for floppies in 1990's releases.

Worth to pullup to netbsd-9.
2020-12-05 18:52:06 +00:00
rillig ee9186d684 make(1): define constants for enum zero-values 2020-12-05 18:38:02 +00:00
tsutsui 865f9b84f3 Explicitly sort set names fetched via ftp nlist.
Several binary sets are stored as symbolic links on releases and
it seems some ftpd doesn't sort nlist outputs by name in such case.

Worth to pullup to netbsd-9 and netbsd-8.
2020-12-05 18:33:47 +00:00
tsutsui 15362761dc Appease awk warnings on suppressing dmesg timestamps.
> awk: warning: escape sequence `\[' treated as plain `['
>  source line number 1
>  context is
>         { h=$0; >>>  gsub("^[ <<<
> awk: warning: escape sequence `\]' treated as plain `]'
>  source line number 1

Should be pulled up to netbsd-9.
2020-12-05 18:29:50 +00:00
tsutsui 58eaf7a465 Add missing md_get_partition_range() that causes installation failure.
Also reported by Martin Trusler on testing hp300 miniroot.
Should be pulled up to netbsd-9 and netbsd-8.
2020-12-05 18:27:39 +00:00
tsutsui 88b29fde6c Add modules set for default sets on miniroot installation.
Should be pulled up to netbsd-9 and netbsd-8.
2020-12-05 18:24:10 +00:00
thorpej d54d6b7a66 Refactor interval timers to make it possible to support types other than
the BSD/POSIX per-process timers:

- "struct ptimer" is split into "struct itimer" (common interval timer
  data) and "struct ptimer" (per-process timer data, which contains a
  "struct itimer").

- Introduce a new "struct itimer_ops" that supplies information about
  the specific kind of interval timer, including it's processing
  queue, the softint handle used to schedule processing, the function
  to call when the timer fires (which adds it to the queue), and an
  optional function to call when the CLOCK_REALTIME clock is changed by
  a call to clock_settime() or settimeofday().

- Rename some fuctions to clearly identify what they're operating on
  (ptimer vs itimer).

- Use kmem(9) to allocate ptimer-related structures, rather than having
  dedicated pools for them.

Welcome to NetBSD 9.99.77.
2020-12-05 18:17:01 +00:00
tsutsui f018384299 The kernel and X sets should be specified in MD miniroot scripts.
Otherwise they are not listed at least on ftp installation.
The problem was reported by Martin Trusler on port-hp300@:
 https://mail-index.netbsd.org/port-hp300/2020/11/21/msg000174.html

Should be pulled up to netbsd-9 and netbsd-8.
2020-12-05 18:16:11 +00:00
rillig a64151bf73 make(1): remove redundant assignments 2020-12-05 18:15:40 +00:00
rillig 14d2618057 make(1): add test for unknown modifier in :C modifier replacement 2020-12-05 18:13:44 +00:00
rillig 56cb5728d6 make(1): remove unused parameter from meta_needed 2020-12-05 17:46:41 +00:00
rillig 0ca5c11203 make(1): remove unused parameter from JobOutput 2020-12-05 17:44:22 +00:00
thorpej 210879f628 Remove unnecessary inclusion of <sys/timevar.h> 2020-12-05 17:42:29 +00:00
thorpej 33e6765fa8 Remove unnecessary inclusion of <sys/timevar.h>. 2020-12-05 17:33:53 +00:00
rillig e5d879283b make(1): refuse to use vsnprintf that is prone to buffer overflows
Several parts of make intentionally depend on the guarantee that
snprintf and vsnprintf do not overflow their buffer.  If an
implementation cannot provide this guarantee, refuse to use it.
2020-12-05 17:25:41 +00:00
rillig c09eaa11ae make(1): remove unused variable from ArchFindMember 2020-12-05 17:17:37 +00:00