diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-05-12 22:48:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 22:48:34 +0100 |
commit | 823cc7a9d28aa77a8329f7581bb91038935b4df8 (patch) | |
tree | d4a4fe0496554c7e79494fa6d2b5ae79ebfaf452 /include | |
parent | b4b541cb29e13da89b886c1c6b6fb251f9282a6c (diff) | |
parent | e769db3eb87df6139d68c2e997588ef247923135 (diff) |
Merge pull request #930 from antonio-nino-diaz-arm/an/fixes-xlat-v2
Minor fixes to the xlat tables lib v2
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/xlat_tables/xlat_tables_v2.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/include/lib/xlat_tables/xlat_tables_v2.h b/include/lib/xlat_tables/xlat_tables_v2.h index 2c27e3cd..e7ed2337 100644 --- a/include/lib/xlat_tables/xlat_tables_v2.h +++ b/include/lib/xlat_tables/xlat_tables_v2.h @@ -83,18 +83,25 @@ typedef struct mmap_region { } mmap_region_t; /* Generic translation table APIs */ + +/* + * Initialize translation tables from the current list of mmap regions. Calling + * this function marks the transition point after which static regions can no + * longer be added. + */ void init_xlat_tables(void); /* - * Add a region with defined base PA and base VA. This type of region can only - * be added before initializing the MMU and cannot be removed later. + * Add a static region with defined base PA and base VA. This function can only + * be used before initializing the translation tables. The region cannot be + * removed afterwards. */ void mmap_add_region(unsigned long long base_pa, uintptr_t base_va, size_t size, mmap_attr_t attr); /* - * Add a region with defined base PA and base VA. This type of region can be - * added and removed even if the MMU is enabled. + * Add a dynamic region with defined base PA and base VA. This type of region + * can be added and removed even after the translation tables are initialized. * * Returns: * 0: Success. @@ -107,15 +114,16 @@ int mmap_add_dynamic_region(unsigned long long base_pa, uintptr_t base_va, size_t size, mmap_attr_t attr); /* - * Add an array of static regions with defined base PA and base VA. This type - * of region can only be added before initializing the MMU and cannot be - * removed later. + * Add an array of static regions with defined base PA and base VA. This + * function can only be used before initializing the translation tables. The + * regions cannot be removed afterwards. */ void mmap_add(const mmap_region_t *mm); /* * Remove a region with the specified base VA and size. Only dynamic regions can - * be removed, and they can be removed even if the MMU is enabled. + * be removed, and they can be removed even if the translation tables are + * initialized. * * Returns: * 0: Success. |