Commit 63c151e
committed
Kernel/aarch64: Allow userspace to access CTR_EL0
CTR_EL0 is a read-only register that contains information about the
architecture of the caches. Both FreeBSD and Linux seem to allow direct
access to this register, so I don't think we should disallow EL0 to
access it.
This register is typically read during `__clear_cache()` to determine
the data/instruction cache line sizes and whether they are coherent.
`__clear_cache()` in turn is used by JITs to ensure that self-modifying
code works properly.1 parent 0409e72 commit 63c151e
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
822 | 825 | | |
823 | 826 | | |
824 | 827 | | |
| |||
0 commit comments