]> git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/arm64/AMCC.h
2e7f3d8be1e564b9713ed055d0e087452f8cd3f8
[apple/xnu.git] / pexpert / pexpert / arm64 / AMCC.h
1 /*
2 * Copyright (c) 2016 Apple Inc. All rights reserved.
3 */
4
5 #ifndef _PEXPERT_ARM_AMCC_H
6 #define _PEXPERT_ARM_AMCC_H
7
8 /*
9 * AMCC registers for KTRR/RoRegion related lockdown in early kernel bootstrap.
10 * amcc_base must be retrieved from device tree before using.
11 */
12
13 //#if defined(KERNEL_INTEGRITY_KTRR)
14 #define rMCCGEN (*(volatile uint32_t *) (amcc_base + 0x780))
15 #define rRORGNBASEADDR (*(volatile uint32_t *) (amcc_base + 0x7e4))
16 #define rRORGNENDADDR (*(volatile uint32_t *) (amcc_base + 0x7e8))
17 #define rRORGNLOCK (*(volatile uint32_t *) (amcc_base + 0x7ec))
18 //#endif
19
20
21 #endif /* _PEXPERT_ARM_AMCC_H */