Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
d70a7d0c
Commit
d70a7d0c
authored
7 years ago
by
danh-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #978 from etienne-lms/minor-build
Minor build fixes
parents
38fe380a
d60e6bae
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
bl1/aarch32/bl1_arch_setup.c
+1
-0
bl1/aarch32/bl1_arch_setup.c
bl1/aarch32/bl1_context_mgmt.c
+3
-2
bl1/aarch32/bl1_context_mgmt.c
bl1/aarch64/bl1_arch_setup.c
+1
-0
bl1/aarch64/bl1_arch_setup.c
bl1/aarch64/bl1_context_mgmt.c
+1
-0
bl1/aarch64/bl1_context_mgmt.c
bl1/bl1_fwu.c
+0
-2
bl1/bl1_fwu.c
bl32/sp_min/sp_min_main.c
+2
-2
bl32/sp_min/sp_min_main.c
drivers/delay_timer/delay_timer.c
+4
-4
drivers/delay_timer/delay_timer.c
drivers/delay_timer/generic_delay_timer.c
+1
-0
drivers/delay_timer/generic_delay_timer.c
drivers/io/io_dummy.c
+2
-1
drivers/io/io_dummy.c
drivers/io/io_storage.c
+1
-1
drivers/io/io_storage.c
include/lib/aarch32/smcc_helpers.h
+2
-2
include/lib/aarch32/smcc_helpers.h
include/lib/el3_runtime/context_mgmt.h
+1
-0
include/lib/el3_runtime/context_mgmt.h
lib/psci/psci_system_off.c
+2
-2
lib/psci/psci_system_off.c
with
21 additions
and
16 deletions
+21
-16
bl1/aarch32/bl1_arch_setup.c
View file @
d70a7d0c
...
...
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "../bl1_private.h"
/*******************************************************************************
* TODO: Function that does the first bit of architectural setup.
...
...
This diff is collapsed.
Click to expand it.
bl1/aarch32/bl1_context_mgmt.c
View file @
d70a7d0c
...
...
@@ -11,6 +11,7 @@
#include <debug.h>
#include <platform.h>
#include <smcc_helpers.h>
#include "../bl1_private.h"
/*
* Following arrays will be used for context management.
...
...
@@ -26,13 +27,13 @@ static void *bl1_next_cpu_context_ptr;
static
void
*
bl1_next_smc_context_ptr
;
/* Following functions are used for SMC context handling */
void
*
smc_get_ctx
(
int
security_state
)
void
*
smc_get_ctx
(
unsigned
int
security_state
)
{
assert
(
sec_state_is_valid
(
security_state
));
return
&
bl1_smc_context
[
security_state
];
}
void
smc_set_next_ctx
(
int
security_state
)
void
smc_set_next_ctx
(
unsigned
int
security_state
)
{
assert
(
sec_state_is_valid
(
security_state
));
bl1_next_smc_context_ptr
=
&
bl1_smc_context
[
security_state
];
...
...
This diff is collapsed.
Click to expand it.
bl1/aarch64/bl1_arch_setup.c
View file @
d70a7d0c
...
...
@@ -6,6 +6,7 @@
#include <arch.h>
#include <arch_helpers.h>
#include "../bl1_private.h"
/*******************************************************************************
* Function that does the first bit of architectural setup that affects
...
...
This diff is collapsed.
Click to expand it.
bl1/aarch64/bl1_context_mgmt.c
View file @
d70a7d0c
...
...
@@ -10,6 +10,7 @@
#include <context_mgmt.h>
#include <debug.h>
#include <platform.h>
#include "../bl1_private.h"
/*
* Following array will be used for context management.
...
...
This diff is collapsed.
Click to expand it.
bl1/bl1_fwu.c
View file @
d70a7d0c
...
...
@@ -52,8 +52,6 @@ static unsigned int sec_exec_image_id = INVALID_IMAGE_ID;
/* Authentication status of each image. */
extern
unsigned
int
auth_img_flags
[];
void
cm_set_next_context
(
void
*
cpu_context
);
/*******************************************************************************
* Top level handler for servicing FWU SMCs.
******************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
bl32/sp_min/sp_min_main.c
View file @
d70a7d0c
...
...
@@ -34,13 +34,13 @@ static smc_ctx_t sp_min_smc_context[PLATFORM_CORE_COUNT];
/******************************************************************************
* Define the smcc helper library API's
*****************************************************************************/
void
*
smc_get_ctx
(
int
security_state
)
void
*
smc_get_ctx
(
unsigned
int
security_state
)
{
assert
(
security_state
==
NON_SECURE
);
return
&
sp_min_smc_context
[
plat_my_core_pos
()];
}
void
smc_set_next_ctx
(
int
security_state
)
void
smc_set_next_ctx
(
unsigned
int
security_state
)
{
assert
(
security_state
==
NON_SECURE
);
/* SP_MIN stores only non secure smc context. Nothing to do here */
...
...
This diff is collapsed.
Click to expand it.
drivers/delay_timer/delay_timer.c
View file @
d70a7d0c
...
...
@@ -19,10 +19,10 @@ static const timer_ops_t *ops;
***********************************************************/
void
udelay
(
uint32_t
usec
)
{
assert
(
ops
!=
0
&&
assert
(
ops
!=
NULL
&&
(
ops
->
clk_mult
!=
0
)
&&
(
ops
->
clk_div
!=
0
)
&&
(
ops
->
get_timer_value
!=
0
));
(
ops
->
get_timer_value
!=
NULL
));
uint32_t
start
,
delta
,
total_delta
;
...
...
@@ -57,10 +57,10 @@ void mdelay(uint32_t msec)
***********************************************************/
void
timer_init
(
const
timer_ops_t
*
ops_ptr
)
{
assert
(
ops_ptr
!=
0
&&
assert
(
ops_ptr
!=
NULL
&&
(
ops_ptr
->
clk_mult
!=
0
)
&&
(
ops_ptr
->
clk_div
!=
0
)
&&
(
ops_ptr
->
get_timer_value
!=
0
));
(
ops_ptr
->
get_timer_value
!=
NULL
));
ops
=
ops_ptr
;
}
This diff is collapsed.
Click to expand it.
drivers/delay_timer/generic_delay_timer.c
View file @
d70a7d0c
...
...
@@ -9,6 +9,7 @@
#include <bl_common.h>
#include <debug.h>
#include <delay_timer.h>
#include <generic_delay_timer.h>
#include <platform.h>
/* Ticks elapsed in one second by a signal of 1 MHz */
...
...
This diff is collapsed.
Click to expand it.
drivers/io/io_dummy.c
View file @
d70a7d0c
...
...
@@ -7,6 +7,7 @@
#include <assert.h>
#include <debug.h>
#include <io_driver.h>
#include <io_dummy.h>
#include <io_storage.h>
#include <string.h>
...
...
@@ -18,7 +19,7 @@ struct file_state {
static
struct
file_state
current_file
=
{
0
};
/* Identify the device type as dummy */
io_type_t
device_type_dummy
(
void
)
static
io_type_t
device_type_dummy
(
void
)
{
return
IO_TYPE_DUMMY
;
}
...
...
This diff is collapsed.
Click to expand it.
drivers/io/io_storage.c
View file @
d70a7d0c
...
...
@@ -94,7 +94,7 @@ static void set_handle(uintptr_t *handle, io_entity_t *entity)
static
int
find_first_entity
(
const
io_entity_t
*
entity
,
unsigned
int
*
index_out
)
{
int
result
=
-
ENOENT
;
for
(
int
index
=
0
;
index
<
MAX_IO_HANDLES
;
++
index
)
{
for
(
unsigned
int
index
=
0
;
index
<
MAX_IO_HANDLES
;
++
index
)
{
if
(
entity_map
[
index
]
==
entity
)
{
result
=
0
;
*
index_out
=
index
;
...
...
This diff is collapsed.
Click to expand it.
include/lib/aarch32/smcc_helpers.h
View file @
d70a7d0c
...
...
@@ -144,10 +144,10 @@ CASSERT(SMC_CTX_SIZE == sizeof(smc_ctx_t), assert_smc_ctx_size_mismatch);
*/
/* Get the pointer to `smc_ctx_t` corresponding to the security state. */
void
*
smc_get_ctx
(
int
security_state
);
void
*
smc_get_ctx
(
unsigned
int
security_state
);
/* Set the next `smc_ctx_t` corresponding to the security state. */
void
smc_set_next_ctx
(
int
security_state
);
void
smc_set_next_ctx
(
unsigned
int
security_state
);
/* Get the pointer to next `smc_ctx_t` already set by `smc_set_next_ctx()`. */
void
*
smc_get_next_ctx
(
void
);
...
...
This diff is collapsed.
Click to expand it.
include/lib/el3_runtime/context_mgmt.h
View file @
d70a7d0c
...
...
@@ -86,6 +86,7 @@ static inline void cm_set_next_context(void *context)
#else
void
*
cm_get_next_context
(
void
);
void
cm_set_next_context
(
void
*
context
);
#endif
/* AARCH32 */
#endif
/* __CM_H__ */
This diff is collapsed.
Click to expand it.
lib/psci/psci_system_off.c
View file @
d70a7d0c
...
...
@@ -12,7 +12,7 @@
#include <platform.h>
#include "psci_private.h"
void
psci_system_off
(
void
)
void
__dead2
psci_system_off
(
void
)
{
psci_print_power_domain_map
();
...
...
@@ -31,7 +31,7 @@ void psci_system_off(void)
/* This function does not return. We should never get here */
}
void
psci_system_reset
(
void
)
void
__dead2
psci_system_reset
(
void
)
{
psci_print_power_domain_map
();
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help