Replace llvm_asm! with asm

This commit is contained in:
Yifan Wu 2021-07-18 18:59:54 +08:00
parent 7b815ac2f5
commit fd00e8de3a
3 changed files with 8 additions and 7 deletions

View file

@ -57,7 +57,7 @@ pub fn load_apps() {
core::slice::from_raw_parts(num_app_ptr.add(1), num_app + 1)
};
// clear i-cache first
unsafe { llvm_asm!("fence.i" :::: "volatile"); }
unsafe { asm!("fence.i"); }
// load apps
for i in 0..num_app {
let base_i = get_base_i(i);