diff options
author | achingupta <achin.gupta@arm.com> | 2014-09-25 14:28:59 +0100 |
---|---|---|
committer | achingupta <achin.gupta@arm.com> | 2014-09-25 14:28:59 +0100 |
commit | 7e998c42ce1ffa16101cc712a3b914c311e29788 (patch) | |
tree | 557c6f6ed782f38306ab34b49c3500656eb5f60a /include/lib | |
parent | d402f3dc4c8ff6cd6912cef3ce23ebe8db6cb66b (diff) | |
parent | d0ecd97987a685bd79bc162669563a93a785a467 (diff) |
Merge pull request #214 from soby-mathew/sm/bl_specific_mmap
Create BL stage specific translation tables
Diffstat (limited to 'include/lib')
-rw-r--r-- | include/lib/aarch64/xlat_tables.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/lib/aarch64/xlat_tables.h b/include/lib/aarch64/xlat_tables.h index 2d4a211b..0b5dbdf2 100644 --- a/include/lib/aarch64/xlat_tables.h +++ b/include/lib/aarch64/xlat_tables.h @@ -41,6 +41,16 @@ #ifndef __ASSEMBLY__ #include <stdint.h> +/* Helper macro to define entries for mmap_region_t. It creates + * identity mappings for each region. + */ +#define MAP_REGION_FLAT(adr, sz, attr) MAP_REGION(adr, adr, sz, attr) + +/* Helper macro to define entries for mmap_region_t. It allows to + * re-map address mappings from 'pa' to 'va' for each region. + */ +#define MAP_REGION(pa, va, sz, attr) {(pa), (va), (sz), (attr)} + /* * Flags for building up memory mapping attributes. * These are organised so that a clear bit gives a more restrictive mapping |