Skip to main content

hvc5

Macro hvc5 

Source
macro_rules! hvc5 {
    ($num:expr, $arg0:expr, $arg1:expr, $arg2:expr, $arg3:expr, $arg4:expr) => { ... };
}
Expand description

Generate an HVC call with 5 parameters

Puts the first argument in the instruction, and the parameters in r0-r4. Gives you back the value left in r0 by the handler.

const HYPERCALL_FOO: u32 = 0x100;
let result = hvc5!(0x00, HYPERCALL_FOO, 1, 2, 3, 4);