tianole/scripts/checks/trap.sh

20 lines
363 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/../.."
. ./scripts/lib/check-common.sh
build_kernel KERNEL_TEST_TRAP=1
run_qemu KERNEL_TEST_TRAP=1
check_lines build/debug.log \
"traps initialized" \
"exception: invalid opcode" \
"vector=6 error=0x0000000000000000" \
"rip=0x" \
"rsp=0x" \
"panic: unhandled CPU exception"
cat build/debug.log