diff options
| author | 2022-07-19 23:44:41 +0200 | |
|---|---|---|
| committer | 2022-08-31 05:17:44 -0700 | |
| commit | aa73a86cda26705c7f0af1afe9bb255a52accf87 (patch) | |
| tree | a976abeb99590058e95b486e51e714c3c0a45a74 /tools/scripts/ssh:/git@git.zx2c4.com | |
| parent | selftests/nolibc: exit with poweroff on success when getpid() == 1 (diff) | |
| download | linux-dev-aa73a86cda26705c7f0af1afe9bb255a52accf87.tar.xz linux-dev-aa73a86cda26705c7f0af1afe9bb255a52accf87.zip | |
selftests/nolibc: on x86, support exiting with isa-debug-exit
QEMU, when started with "-device isa-debug-exit -no-reboot" will exit
with status code 2N+1 when N is written to 0x501. This is particularly
convenient for automated tests but this is not portable. As such we
only enable this on x86_64 when pid==1. In addition, this requires an
ioperm() call but in order not to have to define arch-specific syscalls
we just perform the syscall by hand there.
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
