.githooks/
compiler/
kernel/
lib/
scripts/
seed/
sublime/
test/
boot/
bootstrap/
compiler/
cycles/
dispatch/
format/
host/
integration/
kernel/
loader/
manifests/
mmio/
native/
packages/
runtime/
scheduling/
shared/
slots/
smp/
std/
sync/
termination/
kernel/
cases.rad
959 B
machine.ras
886 B
spin.rad
1.2 KiB
tests/
trap/
verify/
Makefile
9.2 KiB
kernel.rad
776 B
runner.rad
11.6 KiB
vim/
.gitignore
333 B
.gitsigners
224 B
AGENTS.md
8.3 KiB
CONTRIBUTING
2.1 KiB
LICENSE
1.1 KiB
Makefile
2.5 KiB
README
3.4 KiB
STYLE
3.2 KiB
std.lib
2.1 KiB
std.lib.test
1.1 KiB
test/termination/cases.rad
raw
| 1 | //! User termination scenarios shared with the kernel checker. |
| 2 | |
| 3 | /// Operation selected by the parent through the argument page. |
| 4 | export union Scenario: Copy { |
| 5 | /// Exit without an argument page. |
| 6 | Exit = 0, |
| 7 | /// Abort through the public syscall wrapper. |
| 8 | Abort = 1, |
| 9 | /// Raise a user breakpoint through a failed assertion. |
| 10 | Breakpoint = 2, |
| 11 | /// Destroy the current domain. |
| 12 | DestroySelf = 3, |
| 13 | /// Call the raw query boundary with an invalid self handle. |
| 14 | InvalidSelfQuery = 4, |
| 15 | /// Query the installed finish device. |
| 16 | DeviceQuery = 8, |
| 17 | } |
| 18 | |
| 19 | /// Status returned by the child with no argument page. |
| 20 | export constant EXIT_STATUS: u32 = 37; |
| 21 | /// Status returned after a successful device query. |
| 22 | export constant DEVICE_STATUS: u32 = 51; |
| 23 | /// RISC-V breakpoint exception code reported to the parent. |
| 24 | export constant BREAKPOINT_CAUSE: u32 = 3; |
| 25 | /// Emulator finish-device physical address. |
| 26 | export constant FINISH_ADDRESS: u64 = 0x10001000; |