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
e123b2a3
Commit
e123b2a3
authored
Jan 13, 2016
by
danh-arm
Browse files
Merge pull request #483 from soby-mathew/sm/rm_struct_padding
Rearrange fields in TF data structures to reduce padding
parents
0812d49c
b313d755
Changes
3
Show whitespace changes
Inline
Side-by-side
include/bl31/runtime_svc.h
View file @
e123b2a3
...
@@ -89,12 +89,12 @@ typedef struct rt_svc_desc {
...
@@ -89,12 +89,12 @@ typedef struct rt_svc_desc {
#define DECLARE_RT_SVC(_name, _start, _end, _type, _setup, _smch) \
#define DECLARE_RT_SVC(_name, _start, _end, _type, _setup, _smch) \
static const rt_svc_desc_t __svc_desc_ ## _name \
static const rt_svc_desc_t __svc_desc_ ## _name \
__attribute__ ((section("rt_svc_descs"), used)) = { \
__attribute__ ((section("rt_svc_descs"), used)) = { \
_start, \
.start_oen =
_start, \
_end, \
.end_oen =
_end, \
_type, \
.call_type =
_type, \
#_name, \
.name =
#_name, \
_setup, \
.init =
_setup, \
_smch }
.handle =
_smch }
/*
/*
* Compile time assertions related to the 'rt_svc_desc' structure to:
* Compile time assertions related to the 'rt_svc_desc' structure to:
...
...
include/common/bl_common.h
View file @
e123b2a3
...
@@ -202,8 +202,9 @@ typedef struct param_header {
...
@@ -202,8 +202,9 @@ typedef struct param_header {
* switching exception levels. The only two mechanisms to do so are
* switching exception levels. The only two mechanisms to do so are
* ERET & SMC. Security state is indicated using bit zero of header
* ERET & SMC. Security state is indicated using bit zero of header
* attribute
* attribute
* NOTE: BL1 expects entrypoint followed by spsr while processing
* NOTE: BL1 expects entrypoint followed by spsr at an offset from the start
* SMC to jump to BL31 from the start of entry_point_info
* of this structure defined by the macro `ENTRY_POINT_INFO_PC_OFFSET` while
* processing SMC to jump to BL31.
*****************************************************************************/
*****************************************************************************/
typedef
struct
entry_point_info
{
typedef
struct
entry_point_info
{
param_header_t
h
;
param_header_t
h
;
...
@@ -232,13 +233,13 @@ typedef struct image_info {
...
@@ -232,13 +233,13 @@ typedef struct image_info {
typedef
struct
image_desc
{
typedef
struct
image_desc
{
/* Contains unique image id for the image. */
/* Contains unique image id for the image. */
unsigned
int
image_id
;
unsigned
int
image_id
;
image_info_t
image_info
;
entry_point_info_t
ep_info
;
/*
/*
* This member contains Image state information.
* This member contains Image state information.
* Refer IMAGE_STATE_XXX defined above.
* Refer IMAGE_STATE_XXX defined above.
*/
*/
unsigned
int
state
;
unsigned
int
state
;
image_info_t
image_info
;
entry_point_info_t
ep_info
;
}
image_desc_t
;
}
image_desc_t
;
/*******************************************************************************
/*******************************************************************************
...
...
include/drivers/auth/auth_mod.h
View file @
e123b2a3
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
*/
*/
typedef
struct
auth_img_desc_s
{
typedef
struct
auth_img_desc_s
{
unsigned
int
img_id
;
unsigned
int
img_id
;
const
struct
auth_img_desc_s
*
parent
;
img_type_t
img_type
;
img_type_t
img_type
;
const
struct
auth_img_desc_s
*
parent
;
auth_method_desc_t
img_auth_methods
[
AUTH_METHOD_NUM
];
auth_method_desc_t
img_auth_methods
[
AUTH_METHOD_NUM
];
auth_param_desc_t
authenticated_data
[
COT_MAX_VERIFIED_PARAMS
];
auth_param_desc_t
authenticated_data
[
COT_MAX_VERIFIED_PARAMS
];
}
auth_img_desc_t
;
}
auth_img_desc_t
;
...
...
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