mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
base-hw: unprivileged cache maintenance on ARMv8
Set 'Sctlr_el1::Uci' bit to allow for executing cache clean and invalidate instruction from user space. Issue #4339.
This commit is contained in:
parent
8fe7fa5532
commit
e8f748cfed
@ -199,6 +199,7 @@ unsigned Bootstrap::Platform::enable_mmu()
|
||||
Cpu::Sctlr::Sa0::set(sctlr, 1);
|
||||
Cpu::Sctlr::Sa::set(sctlr, 0);
|
||||
Cpu::Sctlr::Uct::set(sctlr, 1);
|
||||
Cpu::Sctlr::Uci::set(sctlr, 1);
|
||||
Cpu::Sctlr_el1::write(sctlr);
|
||||
|
||||
return cpu_id;
|
||||
|
@ -168,6 +168,7 @@ struct Hw::Arm_64_cpu
|
||||
struct I : Bitfield<12, 1> { };
|
||||
struct Uct : Bitfield<15, 1> { };
|
||||
struct Wxn : Bitfield<19, 1> { };
|
||||
struct Uci : Bitfield<26, 1> { };
|
||||
};
|
||||
|
||||
SYSTEM_REGISTER(64, Sctlr_el1, sctlr_el1);
|
||||
|
Loading…
Reference in New Issue
Block a user