version 1.7, 2020/10/22 07:23:24 |
version 1.8, 2020/10/22 07:31:15 |
Line 91 arm_efirt_md_enter(void) |
|
Line 91 arm_efirt_md_enter(void) |
|
|
|
/* Enable FP access (AArch64 UEFI calling convention) */ |
/* Enable FP access (AArch64 UEFI calling convention) */ |
reg_cpacr_el1_write(CPACR_FPEN_ALL); |
reg_cpacr_el1_write(CPACR_FPEN_ALL); |
__asm __volatile ("isb"); |
isb(); |
|
|
/* |
/* |
* Install custom fault handler. EFI lock is held across calls so |
* Install custom fault handler. EFI lock is held across calls so |
Line 107 arm_efirt_md_exit(void) |
|
Line 107 arm_efirt_md_exit(void) |
|
|
|
/* Disable FP access */ |
/* Disable FP access */ |
reg_cpacr_el1_write(CPACR_FPEN_NONE); |
reg_cpacr_el1_write(CPACR_FPEN_NONE); |
__asm __volatile ("isb"); |
isb(); |
|
|
/* Restore FPU state */ |
/* Restore FPU state */ |
if (arm_efirt_state.fpu_used) |
if (arm_efirt_state.fpu_used) |