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
3ba92957
Unverified
Commit
3ba92957
authored
Aug 13, 2018
by
Dimitris Papastamos
Committed by
GitHub
Aug 13, 2018
Browse files
Merge pull request #1510 from robertovargas-arm/romlib
Add support for moving libraries to ROM
parents
0983b8b1
1eb735d7
Changes
75
Show whitespace changes
Inline
Side-by-side
include/lib/
std
lib/string.h
→
include/lib/lib
c
/string.h
View file @
3ba92957
File moved
include/lib/
std
lib/strings.h
→
include/lib/lib
c
/strings.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/_null.h
→
include/lib/lib
c
/sys/_null.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/_stdint.h
→
include/lib/lib
c
/sys/_stdint.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/_timespec.h
→
include/lib/lib
c
/sys/_timespec.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/_types.h
→
include/lib/lib
c
/sys/_types.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/cdefs.h
→
include/lib/lib
c
/sys/cdefs.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/ctype.h
→
include/lib/lib
c
/sys/ctype.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/endian.h
→
include/lib/lib
c
/sys/endian.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/errno.h
→
include/lib/lib
c
/sys/errno.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/limits.h
→
include/lib/lib
c
/sys/limits.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/stdarg.h
→
include/lib/lib
c
/sys/stdarg.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/stdint.h
→
include/lib/lib
c
/sys/stdint.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/timespec.h
→
include/lib/lib
c
/sys/timespec.h
View file @
3ba92957
File moved
include/lib/
std
lib/sys/types.h
→
include/lib/lib
c
/sys/types.h
View file @
3ba92957
File moved
include/lib/
std
lib/time.h
→
include/lib/lib
c
/time.h
View file @
3ba92957
File moved
include/lib/
std
lib/xlocale/_strings.h
→
include/lib/lib
c
/xlocale/_strings.h
View file @
3ba92957
File moved
include/lib/
std
lib/xlocale/_time.h
→
include/lib/lib
c
/xlocale/_time.h
View file @
3ba92957
File moved
include/plat/arm/board/common/board_arm_def.h
View file @
3ba92957
...
...
@@ -71,9 +71,12 @@
#elif defined(IMAGE_BL32)
# define PLAT_ARM_MMAP_ENTRIES 8
# define MAX_XLAT_TABLES 5
#el
se
#el
if !USE_ROMLIB
# define PLAT_ARM_MMAP_ENTRIES 11
# define MAX_XLAT_TABLES 5
#else
# define PLAT_ARM_MMAP_ENTRIES 12
# define MAX_XLAT_TABLES 6
#endif
/*
...
...
@@ -82,6 +85,18 @@
*/
#define PLAT_ARM_MAX_BL1_RW_SIZE 0xB000
/*
* PLAT_ARM_MAX_ROMLIB_RW_SIZE is define to use a full page
*/
#if USE_ROMLIB
#define PLAT_ARM_MAX_ROMLIB_RW_SIZE 0x1000
#define PLAT_ARM_MAX_ROMLIB_RO_SIZE 0xe000
#else
#define PLAT_ARM_MAX_ROMLIB_RW_SIZE 0
#define PLAT_ARM_MAX_ROMLIB_RO_SIZE 0
#endif
/*
* PLAT_ARM_MAX_BL2_SIZE is calculated using the current BL2 debug size plus a
* little space for growth.
...
...
include/plat/arm/common/arm_def.h
View file @
3ba92957
...
...
@@ -268,6 +268,17 @@
- BL_COHERENT_RAM_BASE, \
MT_DEVICE | MT_RW | MT_SECURE)
#endif
#if USE_ROMLIB
#define ARM_MAP_ROMLIB_CODE MAP_REGION_FLAT( \
ROMLIB_RO_BASE, \
ROMLIB_RO_LIMIT - ROMLIB_RO_BASE,\
MT_CODE | MT_SECURE)
#define ARM_MAP_ROMLIB_DATA MAP_REGION_FLAT( \
ROMLIB_RW_BASE, \
ROMLIB_RW_END - ROMLIB_RW_BASE,\
MT_MEMORY | MT_RW | MT_SECURE)
#endif
/*
* The max number of regions like RO(code), coherent and data required by
...
...
@@ -346,14 +357,23 @@
******************************************************************************/
#define BL1_RO_BASE PLAT_ARM_TRUSTED_ROM_BASE
#define BL1_RO_LIMIT (PLAT_ARM_TRUSTED_ROM_BASE \
+ PLAT_ARM_TRUSTED_ROM_SIZE)
+ (PLAT_ARM_TRUSTED_ROM_SIZE - \
PLAT_ARM_MAX_ROMLIB_RO_SIZE))
/*
* Put BL1 RW at the top of the Trusted SRAM.
*/
#define BL1_RW_BASE (ARM_BL_RAM_BASE + \
ARM_BL_RAM_SIZE - \
PLAT_ARM_MAX_BL1_RW_SIZE)
#define BL1_RW_LIMIT (ARM_BL_RAM_BASE + ARM_BL_RAM_SIZE)
(PLAT_ARM_MAX_BL1_RW_SIZE +\
PLAT_ARM_MAX_ROMLIB_RW_SIZE))
#define BL1_RW_LIMIT (ARM_BL_RAM_BASE + \
(ARM_BL_RAM_SIZE - PLAT_ARM_MAX_ROMLIB_RW_SIZE))
#define ROMLIB_RO_BASE BL1_RO_LIMIT
#define ROMLIB_RO_LIMIT (PLAT_ARM_TRUSTED_ROM_BASE + PLAT_ARM_TRUSTED_ROM_SIZE)
#define ROMLIB_RW_BASE (BL1_RW_BASE + PLAT_ARM_MAX_BL1_RW_SIZE)
#define ROMLIB_RW_END (ROMLIB_RW_BASE + PLAT_ARM_MAX_ROMLIB_RW_SIZE)
/*******************************************************************************
* BL2 specific defines.
...
...
Prev
1
2
3
4
Next
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