update rust_payload

This commit is contained in:
Stefan 2021-08-17 09:50:08 +02:00
parent b11654cbc9
commit 21eaf258c1
2 changed files with 10 additions and 7 deletions

View File

@ -45,12 +45,12 @@ fn print_hex_part(u: u8) {
7 => print("7"),
8 => print("8"),
9 => print("9"),
10 => print("A"),
11 => print("B"),
12 => print("C"),
13 => print("D"),
14 => print("E"),
15 => print("F"),
10 => print("a"),
11 => print("b"),
12 => print("c"),
13 => print("d"),
14 => print("e"),
15 => print("f"),
_ => unreachable!(),
}
}

View File

@ -38,7 +38,10 @@ pub fn main() -> ! {
print_usize(register::time::read());
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 {}
}