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
22e002da
Commit
22e002da
authored
May 27, 2014
by
Dan Handley
Browse files
Merge pull request #112 from danh-arm:dh/refactor-plat-header-v4 into for-v0.4
parents
f53d0fce
9865ac15
Changes
74
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
22e002da
...
...
@@ -160,9 +160,9 @@ INCLUDES += -Iinclude/bl1 \
-Iinclude
/drivers/arm
\
-Iinclude
/lib
\
-Iinclude
/lib/aarch64
\
-Iinclude
/plat/common
\
-Iinclude
/stdlib
\
-Iinclude
/stdlib/sys
\
-Iplat
/
${PLAT}
\
${PLAT_INCLUDES}
\
${SPD_INCLUDES}
...
...
bl1/bl1.ld.S
View file @
22e002da
...
...
@@ -28,7 +28,7 @@
*
POSSIBILITY
OF
SUCH
DAMAGE
.
*/
#include <platform.h>
#include <platform
_def
.h>
OUTPUT_FORMAT
(
PLATFORM_LINKER_FORMAT
)
OUTPUT_ARCH
(
PLATFORM_LINKER_ARCH
)
...
...
bl1/bl1_main.c
View file @
22e002da
...
...
@@ -32,9 +32,9 @@
#include <arch_helpers.h>
#include <assert.h>
#include <bl_common.h>
#include <bl1.h>
#include <debug.h>
#include <platform.h>
#include <platform_def.h>
#include <stdio.h>
#include "bl1_private.h"
...
...
bl1/bl1_private.h
View file @
22e002da
...
...
@@ -34,7 +34,7 @@
/******************************************
* Function prototypes
*****************************************/
extern
void
bl1_arch_setup
(
void
);
extern
void
bl1_arch_next_el_setup
(
void
);
void
bl1_arch_setup
(
void
);
void
bl1_arch_next_el_setup
(
void
);
#endif
/* __BL1_PRIVATE_H__ */
bl2/bl2.ld.S
View file @
22e002da
...
...
@@ -28,7 +28,7 @@
*
POSSIBILITY
OF
SUCH
DAMAGE
.
*/
#include <platform.h>
#include <platform
_def
.h>
OUTPUT_FORMAT
(
PLATFORM_LINKER_FORMAT
)
OUTPUT_ARCH
(
PLATFORM_LINKER_ARCH
)
...
...
bl2/bl2_main.c
View file @
22e002da
...
...
@@ -32,9 +32,9 @@
#include <arch_helpers.h>
#include <assert.h>
#include <bl_common.h>
#include <bl2.h>
#include <debug.h>
#include <platform.h>
#include <platform_def.h>
#include <stdio.h>
#include "bl2_private.h"
...
...
bl2/bl2_private.h
View file @
22e002da
...
...
@@ -34,6 +34,6 @@
/******************************************
* Function prototypes
*****************************************/
extern
void
bl2_arch_setup
(
void
);
void
bl2_arch_setup
(
void
);
#endif
/* __BL2_PRIVATE_H__ */
bl31/aarch64/runtime_exceptions.S
View file @
22e002da
...
...
@@ -32,7 +32,7 @@
#include <asm_macros.S>
#include <context.h>
#include <interrupt_mgmt.h>
#include <platform.h>
#include <platform
_def
.h>
#include <runtime_svc.h>
.
globl
runtime_exceptions
...
...
@@ -84,7 +84,7 @@
*
interrupt
controller
reports
a
spurious
interrupt
then
*
return
to
where
we
came
from
.
*/
bl
ic_get_pending_interrupt_type
bl
plat_
ic_get_pending_interrupt_type
cmp
x0
,
#
INTR_TYPE_INVAL
b.eq
interrupt_exit_
\
label
...
...
@@ -105,7 +105,7 @@
*
Read
the
id
of
the
highest
priority
pending
interrupt
.
If
*
no
interrupt
is
asserted
then
return
to
where
we
came
from
.
*/
bl
ic_get_pending_interrupt_id
bl
plat_
ic_get_pending_interrupt_id
cmp
x0
,
#
INTR_ID_UNAVAILABLE
b.eq
interrupt_exit_
\
label
#endif
...
...
bl31/bl31.ld.S
View file @
22e002da
...
...
@@ -28,7 +28,7 @@
*
POSSIBILITY
OF
SUCH
DAMAGE
.
*/
#include <platform.h>
#include <platform
_def
.h>
OUTPUT_FORMAT
(
PLATFORM_LINKER_FORMAT
)
OUTPUT_ARCH
(
PLATFORM_LINKER_ARCH
)
...
...
bl31/bl31_main.c
View file @
22e002da
...
...
@@ -34,6 +34,7 @@
#include <bl_common.h>
#include <bl31.h>
#include <context_mgmt.h>
#include <platform.h>
#include <runtime_svc.h>
#include <stdio.h>
...
...
@@ -164,7 +165,7 @@ void bl31_prepare_next_image_entry()
bl31_next_el_arch_setup
(
image_type
);
/* Program EL3 registers to enable entry into the next EL */
next_image_info
=
bl31_get_next_image_info
(
image_type
);
next_image_info
=
bl31_
plat_
get_next_image_
ep_
info
(
image_type
);
assert
(
next_image_info
);
scr
=
read_scr
();
...
...
bl31/context_mgmt.c
View file @
22e002da
...
...
@@ -37,6 +37,7 @@
#include <context_mgmt.h>
#include <interrupt_mgmt.h>
#include <platform.h>
#include <platform_def.h>
#include <runtime_svc.h>
/*******************************************************************************
...
...
bl32/tsp/aarch64/tsp_entrypoint.S
View file @
22e002da
...
...
@@ -220,7 +220,7 @@ func tsp_cpu_on_entry
*
Initialise
the
MMU
*
---------------------------------------------
*/
bl
enable_mmu
_el1
bl
bl32_plat_
enable_mmu
/
*
---------------------------------------------
*
Give
ourselves
a
stack
allocated
in
Normal
...
...
bl32/tsp/tsp-fvp.mk
View file @
22e002da
...
...
@@ -31,7 +31,7 @@
# TSP source files specific to FVP platform
BL32_SOURCES
+=
drivers/arm/gic/gic_v2.c
\
plat/common/aarch64/platform_mp_stack.S
\
plat/fvp/aarch64/
plat
_common.c
\
plat/fvp/aarch64/
plat
_helpers.S
\
plat/fvp/bl32_
plat
_setup.c
\
plat/fvp/
plat
_gic.c
plat/fvp/aarch64/
fvp
_common.c
\
plat/fvp/aarch64/
fvp
_helpers.S
\
plat/fvp/bl32_
fvp
_setup.c
\
plat/fvp/
fvp
_gic.c
bl32/tsp/tsp.ld.S
View file @
22e002da
...
...
@@ -28,7 +28,7 @@
*
POSSIBILITY
OF
SUCH
DAMAGE
.
*/
#include <platform.h>
#include <platform
_def
.h>
OUTPUT_FORMAT
(
PLATFORM_LINKER_FORMAT
)
OUTPUT_ARCH
(
PLATFORM_LINKER_ARCH
)
...
...
bl32/tsp/tsp_interrupt.c
View file @
22e002da
...
...
@@ -34,6 +34,7 @@
#include <gic_v2.h>
#include <tsp.h>
#include <platform.h>
#include <platform_def.h>
/*******************************************************************************
* This function updates the TSP statistics for FIQs handled synchronously i.e
...
...
@@ -81,7 +82,7 @@ int32_t tsp_fiq_handler()
* secure physical generic timer interrupt in which case, handle it.
* Otherwise throw this interrupt at the EL3 firmware.
*/
id
=
ic_get_pending_interrupt_id
();
id
=
plat_
ic_get_pending_interrupt_id
();
/* TSP can only handle the secure physical timer interrupt */
if
(
id
!=
IRQ_SEC_PHY_TIMER
)
...
...
@@ -91,10 +92,10 @@ int32_t tsp_fiq_handler()
* Handle the interrupt. Also sanity check if it has been preempted by
* another secure interrupt through an assertion.
*/
id
=
ic_acknowledge_interrupt
();
id
=
plat_
ic_acknowledge_interrupt
();
assert
(
id
==
IRQ_SEC_PHY_TIMER
);
tsp_generic_timer_handler
();
ic_end_of_interrupt
(
id
);
plat_
ic_end_of_interrupt
(
id
);
/* Update the statistics and print some messages */
tsp_stats
[
linear_id
].
fiq_count
++
;
...
...
bl32/tsp/tsp_main.c
View file @
22e002da
...
...
@@ -30,9 +30,9 @@
#include <arch_helpers.h>
#include <bl_common.h>
#include <bl32.h>
#include <debug.h>
#include <platform.h>
#include <platform_def.h>
#include <spinlock.h>
#include <stdio.h>
#include <tsp.h>
...
...
bl32/tsp/tsp_timer.c
View file @
22e002da
...
...
@@ -29,6 +29,7 @@
*/
#include <arch_helpers.h>
#include <assert.h>
#include <platform.h>
#include <tsp.h>
/*******************************************************************************
...
...
common/bl_common.c
View file @
22e002da
...
...
@@ -74,9 +74,10 @@ void change_security_state(unsigned int target_security_state)
/*******************************************************************************
* The next function
i
s a weak definition. Platform specific
*
code can override
it if it wishes to.
* The next function
ha
s a weak definition. Platform specific
code can override
* it if it wishes to.
******************************************************************************/
#pragma weak init_bl2_mem_layout
/*******************************************************************************
* Function that takes a memory layout into which BL2 has been either top or
...
...
drivers/arm/cci400/cci400.c
View file @
22e002da
...
...
@@ -30,7 +30,7 @@
#include <cci400.h>
#include <mmio.h>
#include <platform.h>
#include <platform
_def
.h>
static
inline
unsigned
long
get_slave_iface_base
(
unsigned
long
mpidr
)
{
...
...
drivers/arm/pl011/pl011.c
View file @
22e002da
...
...
@@ -29,7 +29,6 @@
*/
#include <assert.h>
#include <platform.h>
#include <pl011.h>
void
pl011_setbaudrate
(
unsigned
long
base_addr
,
unsigned
int
baudrate
)
...
...
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