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
Pipeline #10375 failed
...@@ -201,11 +201,9 @@ impl Tcb { ...@@ -201,11 +201,9 @@ impl Tcb {
unsafe fn arch_read(offset: usize) -> usize { unsafe fn arch_read(offset: usize) -> usize {
// TODO: s/llvm_asm/asm/g // TODO: s/llvm_asm/asm/g
let tp: usize; let tp: usize;
llvm_asm!("mrs $0, tpidr_el0" asm!(
: "=r"(tp) "mrs {}, tpidr_el0",
: out(reg) tp,
:
: "volatile"
); );
*((tp + offset) as *const usize) *((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