1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Change C++ to Rust

This commit is contained in:
Stephen Marz 2019-10-12 21:33:27 -04:00
parent e82192913f
commit a10926df76

View File

@ -301,6 +301,7 @@ extern "C" fn kmain() {
unsafe {
let val = 0x0200_0000 as *mut u32;
val.write_volatile(1);
asm!("ecall");
}
// If we get here, the Box, vec, and String should all be freed since
// they go out of scope. This calls their "Drop" trait.