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
c6213c7e
Commit
c6213c7e
authored
Aug 11, 2020
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Aug 11, 2020
Browse files
Merge "plat/arm: Reduce size of BL31 binary" into integration
parents
8f09da46
fa1fdb22
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/plat/arm/common/arm_reclaim_init.ld.S
View file @
c6213c7e
...
...
@@ -13,8 +13,6 @@ SECTIONS
.
=
ALIGN
(
PAGE_SIZE
)
;
__INIT_CODE_START__
=
.
;
*(*
text.init
*)
;
__INIT_CODE_UNALIGNED__
=
.
;
.
=
ALIGN
(
PAGE_SIZE
)
;
__INIT_CODE_END__
=
.
;
}
>
RAM
...
...
@@ -42,6 +40,7 @@ SECTIONS
/
*
Offset
mask
*/
\
MASK
=
ABS
(
SIGN
>>
63
)
-
1
; \
.
+=
ABS
(
OFFSET
)
&
ABS
(
MASK
)
; \
.
=
ALIGN
(
PAGE_SIZE
)
; \
__STACKS_END__
=
.
; \
/
*
Total
stack
size
*/
\
SIZE
=
ABS
(
.
-
__STACKS_START__
)
; \
...
...
plat/arm/common/arm_bl31_setup.c
View file @
c6213c7e
...
...
@@ -46,7 +46,10 @@ CASSERT(BL31_BASE >= ARM_FW_CONFIG_LIMIT, assert_bl31_base_overflows);
MT_MEMORY | MT_RW | MT_SECURE)
#if RECLAIM_INIT_CODE
IMPORT_SYM
(
unsigned
long
,
__INIT_CODE_START__
,
BL_INIT_CODE_BASE
);
IMPORT_SYM
(
unsigned
long
,
__INIT_CODE_END__
,
BL_INIT_CODE_END
);
IMPORT_SYM
(
unsigned
long
,
__INIT_CODE_END__
,
BL_CODE_END_UNALIGNED
);
#define BL_INIT_CODE_END ((BL_CODE_END_UNALIGNED + PAGE_SIZE - 1) & \
~(PAGE_SIZE - 1))
#define MAP_BL_INIT_CODE MAP_REGION_FLAT( \
BL_INIT_CODE_BASE, \
...
...
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