Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/tests/sys/compat32/aarch64/swp_test.sh
39566 views
1
#!/bin/sh
2
3
scriptdir=$(dirname $(realpath "$0"))
4
5
. ${scriptdir}/common.sh
6
7
# Ensure emul_swp is enabled just for this test; we'll turn it back off if
8
# it wasn't enabled before the test.
9
emul_swpval=$(sysctl -n compat.arm.emul_swp)
10
sysctl compat.arm.emul_swp=1 >/dev/null
11
${scriptdir}/swp_test_impl
12
if [ "$emul_swpval" -ne 1 ]; then
13
sysctl compat.arm.emul_swp="$emul_swpval" >/dev/null
14
fi
15
16