test/termination/cases.rad 959 B 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;