Skip to content
Snippets Groups Projects
Verified Commit 0bd81aa3 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Update llvm_asm to asm for aarch64

parent afb5094c
No related branches found
No related tags found
No related merge requests found
......@@ -201,11 +201,9 @@ impl Tcb {
unsafe fn arch_read(offset: usize) -> usize {
// TODO: s/llvm_asm/asm/g
let tp: usize;
llvm_asm!("mrs $0, tpidr_el0"
: "=r"(tp)
:
:
: "volatile"
asm!(
"mrs {}, tpidr_el0",
out(reg) tp,
);
*((tp + offset) as *const usize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment