Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
6770d65f
Commit
6770d65f
authored
Jan 13, 2016
by
danh-arm
Browse files
Merge pull request #485 from jcastillo-arm/jc/max_mmap_reg
Add 'MAX_MMAP_REGIONS' and 'ADDR_SPACE_SIZE' to the Porting Guide
parents
6cf9b6ac
359b60d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/porting-guide.md
View file @
6770d65f
...
...
@@ -413,6 +413,22 @@ constant must also be defined:
used, choose the smallest value needed to map the required virtual addresses
for each BL stage.
*
**#define : MAX_MMAP_REGIONS**
Defines the maximum number of regions that are allocated by the translation
table library code. A region consists of physical base address, virtual base
address, size and attributes (Device/Memory, RO/RW, Secure/Non-Secure), as
defined in the `mmap_region_t` structure. The platform defines the regions
that should be mapped. Then, the translation table library will create the
corresponding tables and descriptors at runtime. To minimize the amount of
runtime memory used, choose the smallest value needed to register the
required regions for each BL stage.
*
**#define : ADDR_SPACE_SIZE**
Defines the total size of the address space in bytes. For example, for a 32
bit address space, this value should be `(1ull << 32)`.
If the platform port uses the IO storage framework, the following constants
must also be defined:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment