mirror of
https://github.com/PiMaker/rvc.git
synced 2024-11-24 21:20:09 +00:00
update rust_payload
This commit is contained in:
parent
b11654cbc9
commit
21eaf258c1
@ -45,12 +45,12 @@ fn print_hex_part(u: u8) {
|
|||||||
7 => print("7"),
|
7 => print("7"),
|
||||||
8 => print("8"),
|
8 => print("8"),
|
||||||
9 => print("9"),
|
9 => print("9"),
|
||||||
10 => print("A"),
|
10 => print("a"),
|
||||||
11 => print("B"),
|
11 => print("b"),
|
||||||
12 => print("C"),
|
12 => print("c"),
|
||||||
13 => print("D"),
|
13 => print("d"),
|
||||||
14 => print("E"),
|
14 => print("e"),
|
||||||
15 => print("F"),
|
15 => print("f"),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,10 @@ pub fn main() -> ! {
|
|||||||
print_usize(register::time::read());
|
print_usize(register::time::read());
|
||||||
print("\n");
|
print("\n");
|
||||||
|
|
||||||
println("Tests done, entering infinite loop!");
|
println("Exiting via 'tohost' ecall...");
|
||||||
|
ecall(93 /* tohost */, 0 /* exit code */, 0, 0);
|
||||||
|
|
||||||
|
println("ecall failed (?), entering infinite loop!");
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user