pmap: don't conditionally #define PMAP_KMPAGE as non-zero
Don't conditionally #define PMAP_KMPAGE as non-zero based on if
PMAP_ENABLE_PMAP_KMPAGE is defined. Instead always define PMAP_KMPAGE
with a value and provide a pmap_is_kmpage_p which will only ever
perform a test on platforms where PMAP_ENABLE_PMAP_KMPAGE is defined.
This allows moving the include of machine/pmap.h after the flags
definition which will be useful for future flags.
Save and restore the X register around mod/div functions.
Normal builds aren't affected because mod/div don't clobber
the X register on any architecture with MKSLJIT=yes by default.
Building tests with -finstrument-functions triggers the bug.
aarch64: better reporting of ID_AA64PFR0_EL1.GIC
GIC Meaning
0b0000 GIC CPU interface System registers not implemented.
0b0001 System register interface to versions 3.0 and 4.0 of the GIC CPU interface is supported.
0b0011 System register interface to version 4.1 of the GIC CPU interface is supported.
To check the status of the the DS248x chip family the data sheet
indicates that one does a I2C READ without STOP on a particular chip
register. This will be a problem with controllers that do not support
I2C READ without STOP.
With some experimentation, a status checking mode was found that uses
I2C READ with STOP that appears to work on the DS2482 and DS2484
members of the chip family, the only ones really tested at this point
and the members of the chip family that are the most common. The data
sheet does not disallow this mode and it appears to be legal in all
respects, just not documented explicitly. The cost of this mode is
some additional latency that may not be desirable if it can be
avoided.
Introduce another sysctl that lets the status checking mode be set to
use I2C READ with STOP as an option.
[5 lines not shown]
imxclock: Fix timekeeping errors.
The following two warnings appeared in dmesg on every NetWalker boot.
Before this change, they appeared every time about 21 seconds after
boot:
WARNING: lwp 29 (system sdmmc0) ...: timecounter went backwards
... in netbsd:mi_switch+0xf0
WARNING: pid ... (devpubd): negative runtime; monotonic clock has
gone backwards
The time difference in the warnings was about 0.576 s, which matches
the value computed in cause 1 below.
Cause 1: the value goes back right after a reload (a 0.576 s step).
imx_epit_get_timecount() returned base - CNT. When the value goes
back, the difference in kern_tc.c (tc_delta) wraps to nearly 2^32, the
multiplication overflows, and the time jumps forward by
frac((2^32 - LR) / f). On a NetWalker (66.5 MHz, LR = 664999), this
[17 lines not shown]
inet: do not treat reject/blackhole routes as error
Reject/blackhole routes can have a loopback interface. Don't return
an ICMP error for a packet being forwarding on such routes.
Patch from oohashi at IIJ
hxtool(1) embryo page (not hooked into the build)
Hopefully, this provides enough mdoc boilerplate for someone with an
actual clue to add the rest of the commands.
PR bin/61120
Include the ad.arm entries in ad.earmv7 and ad.earmv7hf
This will hopefully finally fix the evbarm-earmv7hf build failures.
Note: I did not copy the obsolete entries, based upon the assumption
that no earmv7 or earmv7hf systems would have existed when those
old files were part of the build. If that is incorrect, by all means,
add them back (that won't affect the daily autobuilds, or any other
fully clean build, as those never experience files from a previous generation).
PR/61113: Edmund: Apply Sun's BSD relicensing, like FreeBSD did in 2013:
"Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
with the explicit permission of Sun Microsystems in 2009"
PR/61113: Edmund: Apply Sun's BSD relicensing, like FreeBSD did in 2013:
"Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
with the explicit permission of Sun Microsystems in 2009"
ntxec, kobo: add reboot and power off support
Use the embedded controller (ntxec) to reset and power off the Kobo.
Write a single byte to the reset register. Writing two bytes resets
the system but reports a spurious I2C error.
Wait 5 seconds after requesting power off, since the EC takes some
time to cut the power.
Tested on Kobo Glo: reboot restarts from U-Boot and poweroff turns the
power off, both without warnings. Built KOBO.
ntxec: make RTC read and write robust
Order the RTC register reads and writes so that a carry from seconds
into minutes, hours and so on during the access is handled.
Tested on Kobo Glo: the time is read correctly at boot, and a time set
with date(1) is kept across a power cycle. Built KOBO.
imxuart: fix IMXUART_RBUF_SPACE
It computed the free space in the receive ring buffer incorrectly.
With one character left in the buffer, the receive interrupt handler
read nothing from the FIFO and disabled receive interrupts until the
soft interrupt drained the buffer. When the buffer was more than half
full, it could overwrite data that had not been read yet.
Tested on Kobo Glo: boots to the login prompt. Built KOBO,
NETWALKER, and GENERIC.