| 69 | } |
| 70 | |
| 71 | static void |
| 72 | vfp_disable(void) |
| 73 | { |
| 74 | uint32_t cpacr; |
| 75 | |
| 76 | cpacr = READ_SPECIALREG(cpacr_el1); |
| 77 | cpacr = (cpacr & ~CPACR_FPEN_MASK) | CPACR_FPEN_TRAP_ALL1; |
| 78 | WRITE_SPECIALREG(cpacr_el1, cpacr); |
| 79 | isb(); |
| 80 | } |
| 81 | |
| 82 | /* |
| 83 | * Called when the thread is dying or when discarding the kernel VFP state. |
no outgoing calls
no test coverage detected