mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-24 02:16:19 +04:00
Change C++ to Rust
This commit is contained in:
parent
e82192913f
commit
a10926df76
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user