unicorn icon indicating copy to clipboard operation
unicorn copied to clipboard

ARM PAC FAQ fix: Read HCR_EL2 instead of clobbering with SCTLR_EL1

Open droe opened this issue 2 months ago • 0 comments

The sample code for setting up PAC is missing the read register call for HCR_EL2. This leads to clobbering HCR_EL2 with whatever the bits in SCTLR_EL1 were.

Fix by adding the missing register read call.

droe avatar Nov 11 '25 22:11 droe