christos
78be1c9f56
move a{md,arch}64 to gcc 8
2019-10-22 13:49:30 +00:00
hauke
496b616768
When building r128drm(4), gcc objects to shifting into bit 31 of a
...
(signed) int. Make sure we are shifting an unsigned in those cases.
See also <http://mail-index.netbsd.org/tech-x11/2019/08/01/msg002010.html >.
XXX There are probably more of these in the header.
2019-10-22 13:19:47 +00:00
martin
09149b14be
Fix channel locking - patch from Christos.
2019-10-22 12:09:11 +00:00
uki
823b76dc06
Give syspkg names to xetc files
2019-10-22 06:28:18 +00:00
uki
5111726743
Give syspkg names to xcomp all online manuals
2019-10-22 03:01:53 +00:00
christos
c92e4f2582
follow the channel locking protocol during probe (like the other drivers)
2019-10-21 19:00:11 +00:00
christos
22c0f21763
chuq does not like insomniac allocations so unlock-alloc-lock instead.
2019-10-21 18:58:57 +00:00
christos
7693ab4db6
Fix assert_sleepable() panic by allocating with NOSLEEP. The alternative is
...
to unlock and relock the channel, but seems more dangerous to do so.
2019-10-21 18:37:47 +00:00
kamil
a73248db21
Remove preprocessor switch TEST_LWP_ENABLED in t_ptrace_wait*
...
LWP tests are now enabled always and confirmed to be stable.
2019-10-21 18:36:08 +00:00
kamil
eb8ea5d12d
Remove preprocessor switch TEST_VFORK_ENABLED in t_ptrace_wait*
...
vfork(2) tests are now enabled always and confirmed to be stable.
2019-10-21 18:31:40 +00:00
mgorny
050caffe42
Fix a race condition when handling concurrent LWP signals and add a test
...
Fix a race condition that caused PT_GET_SIGINFO to return incorrect
information when multiple signals were delivered concurrently
to different LWPs. Add a regression test that verifies that when 50
threads concurrently use pthread_kill() on themselves, the debugger
receives all signals with correct information.
The kernel uses separate signal queues for each LWP. However,
the signal context used to implement PT_GET_SIGINFO is stored in 'struct
proc' and therefore common to all LWPs in the process. Previously,
this member was filled in kpsignal2(), i.e. when the signal was sent.
This meant that if another LWP managed to send another signal
concurrently, the data was overwritten before the process was stopped.
As a result, PT_GET_SIGINFO did not report the correct LWP and signal
(it could even report a different signal than wait()). This can be
quite reliably reproduced with the number of 20 LWPs, however it can
also occur with 10.
This patch moves setting of signal context to issignal(), just before
the process is actually stopped. The data is taken from per-LWP
or per-process signal queue. The added test confirms that the debugger
correctly receives all signals, and PT_GET_SIGINFO reports both correct
LWP and signal number.
Reviewed by kamil.
2019-10-21 17:07:00 +00:00
martin
e1c382678c
Skip unwanted (zero sized) partitions.
2019-10-21 16:10:54 +00:00
martin
10ffbb5073
When translating (internal) indices to device names, properly deal with
...
gaps in partition allocations (e.g. no swap partition).
2019-10-21 16:09:59 +00:00
christos
0263994f06
regen
2019-10-21 14:23:53 +00:00
martin
df91044bef
Remove a hardcoded assumption that for BIOS boot we always will have
...
the first partition as root - in mixed EFI/BIOS setups this might not
be true (and in general the user is free to define arbitrary orders).
Pointed out by Robert Nestor.
2019-10-21 14:07:42 +00:00
uki
03eb71223f
Give syspkg names. catman, htmlman, man are remaining
2019-10-21 11:59:01 +00:00
maxv
d47b30fb94
Call cpu_probe_fpu() only once (from cpu0), and style.
2019-10-21 10:09:24 +00:00
msaitoh
26dc6040af
if_percpuq(9) automatically increments if_ipackets, so don't increment it in
...
the driver itself to prevent double count.
2019-10-21 08:22:06 +00:00
msaitoh
806b3dee8c
if_ipackets is incremented in can_input(), so don't increment it in
...
sunxi_can_rx_intr to prevent double count. OK'd by bouyer@.
2019-10-21 08:00:58 +00:00
ozaki-r
a14bf9da9d
vlan: get rid of unnecessary if_ipackets++ in vlan_input
...
It's done by if_input() below now.
Pointed out by msaitoh@
2019-10-21 06:26:12 +00:00
wiz
a7c88536f5
Mark up argon2 description. Restore removed lines/text from previous
...
commit.
2019-10-21 05:16:51 +00:00
jhigh
b302373f87
adding argon2 support to libcrypt. argon2 user authentication now
...
available via MKARGON2=yes (3 variants supported; argon2id recommended)
before using, please read argon2 paper at
https://github.com/P-H-C/phc-winner-argon2
2019-10-21 02:36:48 +00:00
thorpej
818db7dc5a
Add a device tree Overlay for the Orange Pi Zero NAS expansion board for
...
Orange Pi Zero and Orange Pi Zero Plus.
2019-10-20 23:47:14 +00:00
sevan
6827e7dc90
CIA ISMS
2019-10-20 21:53:42 +00:00
wiz
4a4aaff12c
Be consistent in not marking up "GPIO".
2019-10-20 17:45:08 +00:00
christos
d35ed14f2a
opening a symlink with O_NOFOLLOW is expected to fail.
2019-10-20 16:02:11 +00:00
jmcneill
74297fa00a
cpu_hatched_p only for MULTIPROCESSOR
2019-10-20 14:25:14 +00:00
jmcneill
eabed2a835
Use separate cacheline aligned arrays for mbox and hatched as before.
2019-10-20 14:03:51 +00:00
skrll
7848bd4ac4
Avoid overlap between BP and last AP stack. AP stacks are now in order of
...
increasing address order.
Spotted by and idea from mlelstv.
2019-10-20 12:25:43 +00:00
jmcneill
d123fff0f1
Invalidate dcache before polling AP hatched status
2019-10-20 11:17:41 +00:00
tnn
bbae070d2b
gpioctl: implement support for "gpioctl gpioN list". Like pcictl(8).
...
For drivers that name their pins, this can be used to determine how the
logical pins are mapped to physical pins. Example from sunxigpio(4):
# gpioctl gpio0 list
0: PA0
1: PA1
2: PA2
...
2019-10-20 09:41:53 +00:00
tnn
9a3d6b2058
gpio: make GPIOREAD return also the symbolic name of the pin, if it is set
2019-10-20 09:35:18 +00:00
skrll
af0cb0a34c
Define and use VM_PAGEMD_PVLIST_EMPTY_P
2019-10-20 08:29:38 +00:00
skrll
0126296dc0
Whitespace
2019-10-20 07:58:21 +00:00
skrll
5f7d8e837b
Re-order _P() macros to match bit definitions. NFCI
2019-10-20 07:54:29 +00:00
skrll
b6e3ab3307
Whitespace
2019-10-20 07:22:51 +00:00
skrll
8535470345
Remove KASSERT(!VM_PAGEMD_PVLIST_LOCKED_P(mdpg)) - can only assert that it
...
is owned
2019-10-20 07:18:22 +00:00
maxv
e1d43b1e6d
Put back 'default', because llvm apparently doesn't realize that all cases
...
are covered in the switch.
2019-10-19 19:45:10 +00:00
jmcneill
29224e5ead
Increase aarch64 MAXCPUS to 256.
2019-10-19 18:04:26 +00:00
christos
cc53e0eeb8
- factor out common code
...
- use llabs because time_t can be long long.
2019-10-19 15:55:50 +00:00
christos
0854090a8d
fix printf format (llvm)
2019-10-19 15:48:48 +00:00
christos
8451d1ca24
use stdarg, annotate function as __printflike and fix broken formats.
2019-10-19 15:44:31 +00:00
tsutsui
b501e5aaf3
Fix a build error with options VERBOSE_INIT_ARM.
2019-10-19 14:42:30 +00:00
tnn
0817dc97a0
evbarm: add dwcwdt(4) to GENERIC64
2019-10-19 13:09:57 +00:00
tnn
849f0a348f
dwcwdt: make this work correctly
...
- sysmon_wdog.smw_period is seconds, not milliseconds
- tickle the watchdog before enabling it
2019-10-19 13:08:52 +00:00
tnn
560ec699fa
rk3399: add definition for the watchdog timer clock gate
...
The watchdog timer clock gate is a bit special because it's a secure
gate that can only be accessed from EL3. We still need a dummy gate
definition for it so that dwcwdt(4) can infer the frequency via the
parent clock. The gate is enabled by default by U-Boot.
2019-10-19 12:55:21 +00:00
tnn
5e68d55213
awge: drop redundant m_adj(). Handled via uipc_mbuf.c r1.235 instead.
2019-10-19 06:40:20 +00:00
tnn
4d0eb0fca4
mcl_cache: align items to COHERENCY_UNIT
...
Because we do cache incoherent DMA to/from mbufs we cannot safely share
share cache lines with adjacent items that may be concurrently accessed.
2019-10-19 06:36:47 +00:00
msaitoh
480b09a72e
From OpenBSD:
...
- Mark ETHERCAP_VLAN_MTU.
- Clear the powerdown mode. Fixes PR kern/24911 reported by Werner Backes.
- Set proper LED modes.
2019-10-18 23:08:29 +00:00
msaitoh
a8baf8a20c
- Add missing splnet()/splx() around mii_tick(). Same as OpenBSD rev. 1.23
...
- Use device_printf() instead of aprint_error_dev)() in bce_watchdog().
- Remove unneccesary inclusion.
2019-10-18 23:06:57 +00:00