feat: error parse in panic
This commit is contained in:
@@ -16,3 +16,9 @@ static inline void CPUDisableInterrupts() {
|
||||
static inline void CPUEnableInterrupts() {
|
||||
__asm__ volatile ("msr daifclr, #3" ::: "memory");
|
||||
}
|
||||
|
||||
static inline UInt64 CPUGetFAR() {
|
||||
UInt64 far;
|
||||
__asm__ volatile ("mrs %0, far_el1" : "=r" (far));
|
||||
return far;
|
||||
}
|
||||
Reference in New Issue
Block a user