parent
b2b7de2c96
commit
ce05c157a7
|
@ -80,7 +80,7 @@ pub fn read_translation_control() -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
asm!("mrs $0, tcr_el1" : "=r"(tcr) ::: "volatile");
|
asm!("mrs $0, tcr_el1" : "=r"(tcr) ::: "volatile");
|
||||||
}
|
}
|
||||||
return tcr;
|
tcr
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_mair() -> u64 {
|
pub fn read_mair() -> u64 {
|
||||||
|
@ -88,7 +88,7 @@ pub fn read_mair() -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
asm!("mrs $0, mair_el1" : "=r"(mair) ::: "volatile");
|
asm!("mrs $0, mair_el1" : "=r"(mair) ::: "volatile");
|
||||||
}
|
}
|
||||||
return mair;
|
mair
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_translation_table_base(base: PhysicalAddress) {
|
pub fn write_translation_table_base(base: PhysicalAddress) {
|
||||||
|
|
Loading…
Reference in New Issue