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
f2c3b1ba
Commit
f2c3b1ba
authored
Jun 04, 2020
by
Lauren Wehrmeister
Committed by
TrustedFirmware Code Review
Jun 04, 2020
Browse files
Merge "xlat_tables_v2: add base table section name parameter for spm_mm" into integration
parents
b53139c3
0922e481
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/lib/xlat_tables/xlat_tables_v2.h
View file @
f2c3b1ba
...
...
@@ -201,16 +201,20 @@ typedef struct xlat_ctx xlat_ctx_t;
* _section_name:
* Specify the name of the section where the translation tables have to be
* placed by the linker.
*
* _base_table_section_name:
* Specify the name of the section where the base translation tables have to
* be placed by the linker.
*/
#define REGISTER_XLAT_CONTEXT2(_ctx_name, _mmap_count, _xlat_tables_count, \
_virt_addr_space_size, _phy_addr_space_size, \
_xlat_regime, _section_name
)
\
_xlat_regime, _section_name
, _base_table_section_name)
\
REGISTER_XLAT_CONTEXT_FULL_SPEC(_ctx_name, (_mmap_count), \
(_xlat_tables_count), \
(_virt_addr_space_size), \
(_phy_addr_space_size), \
(_xlat_regime), \
(_section_name),
".bss"
\
(_section_name),
(_base_table_section_name)
\
)
/******************************************************************************
...
...
plat/socionext/synquacer/include/plat.ld.S
View file @
f2c3b1ba
...
...
@@ -25,7 +25,6 @@ SECTIONS
*/
sp_xlat_table
(
NOLOAD
)
:
ALIGN
(
PAGE_SIZE
)
{
*(
sp_xlat_table
)
*(.
bss.
sp_base_xlat_table
)
}
>
SP_DRAM
}
...
...
plat/socionext/synquacer/include/platform_def.h
View file @
f2c3b1ba
...
...
@@ -144,6 +144,7 @@
#define PLAT_SP_IMAGE_MMAP_REGIONS 30
#define PLAT_SP_IMAGE_MAX_XLAT_TABLES 20
#define PLAT_SP_IMAGE_XLAT_SECTION_NAME "sp_xlat_table"
#define PLAT_SP_IMAGE_BASE_XLAT_SECTION_NAME "sp_xlat_table"
#define PLAT_SQ_UART1_BASE PLAT_SQ_BOOT_UART_BASE
#define PLAT_SQ_UART1_SIZE ULL(0x1000)
...
...
services/std_svc/spm_mm/spm_mm_xlat.c
View file @
f2c3b1ba
...
...
@@ -21,13 +21,17 @@
#ifndef PLAT_SP_IMAGE_XLAT_SECTION_NAME
#define PLAT_SP_IMAGE_XLAT_SECTION_NAME "xlat_table"
#endif
#ifndef PLAT_SP_IMAGE_BASE_XLAT_SECTION_NAME
#define PLAT_SP_IMAGE_BASE_XLAT_SECTION_NAME ".bss"
#endif
/* Allocate and initialise the translation context for the secure partitions. */
REGISTER_XLAT_CONTEXT2
(
sp
,
PLAT_SP_IMAGE_MMAP_REGIONS
,
PLAT_SP_IMAGE_MAX_XLAT_TABLES
,
PLAT_VIRT_ADDR_SPACE_SIZE
,
PLAT_PHY_ADDR_SPACE_SIZE
,
EL1_EL0_REGIME
,
PLAT_SP_IMAGE_XLAT_SECTION_NAME
);
EL1_EL0_REGIME
,
PLAT_SP_IMAGE_XLAT_SECTION_NAME
,
PLAT_SP_IMAGE_BASE_XLAT_SECTION_NAME
);
/* Lock used for SP_MEMORY_ATTRIBUTES_GET and SP_MEMORY_ATTRIBUTES_SET */
static
spinlock_t
mem_attr_smc_lock
;
...
...
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