mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-04 17:53:07 +00:00
parent
ee38504d81
commit
6b09ac59f0
@ -104,6 +104,9 @@ unsigned Bootstrap::Platform::enable_mmu()
|
|||||||
prepare_hypervisor();
|
prepare_hypervisor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* enable performance counter for user-land */
|
||||||
|
Cpu::Pmuserenr_el0::write(0b1111);
|
||||||
|
|
||||||
Cpu::Vbar_el1::write(Hw::Mm::supervisor_exception_vector().base);
|
Cpu::Vbar_el1::write(Hw::Mm::supervisor_exception_vector().base);
|
||||||
|
|
||||||
/* set memory attributes in indirection register */
|
/* set memory attributes in indirection register */
|
||||||
|
@ -97,6 +97,8 @@ struct Hw::Arm_64_cpu
|
|||||||
struct Attr3 : Bitfield<24, 8> {};
|
struct Attr3 : Bitfield<24, 8> {};
|
||||||
);
|
);
|
||||||
|
|
||||||
|
SYSTEM_REGISTER(32, Pmuserenr_el0, pmuserenr_el0);
|
||||||
|
|
||||||
SYSTEM_REGISTER(64, Scr, scr_el3,
|
SYSTEM_REGISTER(64, Scr, scr_el3,
|
||||||
struct Ns : Bitfield<0, 1> {};
|
struct Ns : Bitfield<0, 1> {};
|
||||||
struct Smd : Bitfield<7, 1> {};
|
struct Smd : Bitfield<7, 1> {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user