Instantly share code, notes, and snippets.

Embed
What would you like to do?

iOS-v12.0-16A366-iPhone11,6

instructions about setting pac key

__text:FFFFFFF007A0834C                 LDR             X0, =0xFEEDFACEFEEDFACF ; LDR X0, #348, 0xFFFFFFF007A084A8
__text:FFFFFFF007A08350                 MSR             #0, c2, c1, #2, X0 ; APIBKeyLo_EL1
__text:FFFFFFF007A08354                 MSR             #0, c2, c1, #3, X0 ; APIBKeyHi_EL1
__text:FFFFFFF007A08358                 ADD             X0, X0, #1
__text:FFFFFFF007A0835C                 MSR             #0, c2, c2, #2, X0 ; APDBKeyLo_EL1
__text:FFFFFFF007A08360                 MSR             #0, c2, c2, #3, X0 ; APDBKeyHi_EL1
__text:FFFFFFF007A08364                 ADD             X0, X0, #1
__text:FFFFFFF007A08368                 MSR             S3_4_C15_C1_0, X0
__text:FFFFFFF007A0836C                 MSR             S3_4_C15_C1_1, X0
__text:FFFFFFF007A08370                 ADD             X0, X0, #1
__text:FFFFFFF007A08374                 MSR             #0, c2, c1, #0, X0 ; APIAKeyLo_EL1
__text:FFFFFFF007A08378                 MSR             #0, c2, c1, #1, X0 ; APIAKeyHi_EL1
__text:FFFFFFF007A0837C                 ADD             X0, X0, #1
__text:FFFFFFF007A08380                 MSR             #0, c2, c2, #0, X0 ; APDAKeyLo_EL1
__text:FFFFFFF007A08384                 MSR             #0, c2, c2, #1, X0 ; APDAKeyHi_EL1
__text:FFFFFFF007A08388                 ADD             X0, X0, #1
__text:FFFFFFF007A0838C                 MSR             #0, c2, c3, #0, X0 ; APGAKeyLo_EL1
__text:FFFFFFF007A08390                 MSR             #0, c2, c3, #1, X0 ; APGAKeyHi_EL1
__text:FFFFFFF007A08580                 MSR             #0, c2, c1, #2, X1 ; APIBKeyLo_EL1
__text:FFFFFFF007A08584                 MSR             #0, c2, c1, #3, X1 ; APIBKeyHi_EL1
__text:FFFFFFF007A08588                 ADD             X1, X1, #1
__text:FFFFFFF007A0858C                 MSR             #0, c2, c2, #2, X1 ; APDBKeyLo_EL1
__text:FFFFFFF007A08590                 MSR             #0, c2, c2, #3, X1 ; APDBKeyHi_EL1
__text:FFFFFFF007A085C8                 MSR             #0, c2, c1, #2, X5 ; APIBKeyLo_EL1
__text:FFFFFFF007A085CC                 MSR             #0, c2, c1, #3, X5 ; APIBKeyHi_EL1
__text:FFFFFFF007A085D0                 ADD             X5, X5, #1
__text:FFFFFFF007A085D4                 MSR             #0, c2, c2, #2, X5 ; APDBKeyLo_EL1
__text:FFFFFFF007A085D8                 MSR             #0, c2, c2, #3, X5 ; APDBKeyHi_EL1
__text:FFFFFFF007A08754                 MSR             #0, c2, c1, #2, X3 ; APIBKeyLo_EL1
__text:FFFFFFF007A08758                 MSR             #0, c2, c1, #3, X3 ; APIBKeyHi_EL1
__text:FFFFFFF007A0875C                 ADD             X3, X3, #1
__text:FFFFFFF007A08760                 MSR             #0, c2, c2, #2, X3 ; APDBKeyLo_EL1
__text:FFFFFFF007A08764                 MSR             #0, c2, c2, #3, X3 ; APDBKeyHi_EL1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment