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
06e3a5e1
Unverified
Commit
06e3a5e1
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1297 from soby-mathew/sm/fix_aarch32_plat_cmn
Remove sp_min functions from plat_common.c
parents
c208d812
0ed8c001
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
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
bl32/sp_min/sp_min.mk
+1
-0
bl32/sp_min/sp_min.mk
include/plat/arm/common/plat_arm.h
+4
-0
include/plat/arm/common/plat_arm.h
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
+1
-1
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
plat/arm/common/sp_min/arm_sp_min_setup.c
+12
-3
plat/arm/common/sp_min/arm_sp_min_setup.c
plat/common/aarch32/plat_common.c
+1
-23
plat/common/aarch32/plat_common.c
plat/common/aarch32/plat_sp_min_common.c
+36
-0
plat/common/aarch32/plat_sp_min_common.c
with
55 additions
and
27 deletions
+55
-27
bl32/sp_min/sp_min.mk
View file @
06e3a5e1
...
...
@@ -15,6 +15,7 @@ INCLUDES += -Iinclude/bl32/sp_min
BL32_SOURCES
+=
bl32/sp_min/sp_min_main.c
\
bl32/sp_min/aarch32/entrypoint.S
\
common/runtime_svc.c
\
plat/common/aarch32/plat_sp_min_common.c
\
services/std_svc/std_svc_setup.c
\
${PSCI_LIB_SOURCES}
...
...
This diff is collapsed.
Click to expand it.
include/plat/arm/common/plat_arm.h
View file @
06e3a5e1
...
...
@@ -237,6 +237,10 @@ int arm_execution_state_switch(unsigned int smc_fid,
uint32_t
cookie_lo
,
void
*
handle
);
/* Optional functions for SP_MIN */
void
plat_arm_sp_min_early_platform_setup
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
);
/* global variables */
extern
plat_psci_ops_t
plat_arm_psci_pm_ops
;
extern
const
mmap_region_t
plat_arm_mmap
[];
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
View file @
06e3a5e1
...
...
@@ -7,7 +7,7 @@
#include <plat_arm.h>
#include "../fvp_private.h"
void
sp_min_early_platform_setup
2
(
u_register_t
arg0
,
u_register_t
arg1
,
void
plat_arm_
sp_min_early_platform_setup
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
)
{
arm_sp_min_early_platform_setup
((
void
*
)
arg0
,
arg1
,
arg2
,
(
void
*
)
arg3
);
...
...
This diff is collapsed.
Click to expand it.
plat/arm/common/sp_min/arm_sp_min_setup.c
View file @
06e3a5e1
...
...
@@ -18,9 +18,9 @@
static
entry_point_info_t
bl33_image_ep_info
;
/* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak sp_min_early_platform_setup2
#pragma weak sp_min_platform_setup
#pragma weak sp_min_plat_arch_setup
#pragma weak plat_arm_sp_min_early_platform_setup
/*******************************************************************************
...
...
@@ -46,7 +46,7 @@ entry_point_info_t *sp_min_plat_get_bl33_ep_info(void)
}
/*******************************************************************************
*
P
erform early platform setup.
*
Utility function to p
erform early platform setup.
******************************************************************************/
void
arm_sp_min_early_platform_setup
(
void
*
from_bl2
,
uintptr_t
tos_fw_config
,
uintptr_t
hw_config
,
void
*
plat_params_from_bl2
)
...
...
@@ -105,7 +105,10 @@ void arm_sp_min_early_platform_setup(void *from_bl2, uintptr_t tos_fw_config,
}
void
sp_min_early_platform_setup2
(
u_register_t
arg0
,
u_register_t
arg1
,
/*******************************************************************************
* Default implementation for sp_min_platform_setup2() for ARM platforms
******************************************************************************/
void
plat_arm_sp_min_early_platform_setup
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
)
{
arm_sp_min_early_platform_setup
((
void
*
)
arg0
,
arg1
,
arg2
,
(
void
*
)
arg3
);
...
...
@@ -127,6 +130,12 @@ void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1,
plat_arm_interconnect_enter_coherency
();
}
void
sp_min_early_platform_setup2
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
)
{
plat_arm_sp_min_early_platform_setup
(
arg0
,
arg1
,
arg2
,
arg3
);
}
/*******************************************************************************
* Perform any SP_MIN platform runtime setup prior to SP_MIN exit.
* Common to ARM standard platforms.
...
...
This diff is collapsed.
Click to expand it.
plat/common/aarch32/plat_common.c
View file @
06e3a5e1
...
...
@@ -4,9 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <console.h>
#include <platform.h>
#include <platform_sp_min.h>
#include <xlat_mmu_helpers.h>
/*
...
...
@@ -15,29 +13,9 @@
* platforms but may also be overridden by a platform if required.
*/
#pragma weak bl32_plat_enable_mmu
#pragma weak sp_min_plat_runtime_setup
void
bl32_plat_enable_mmu
(
uint32_t
flags
)
{
enable_mmu_secure
(
flags
);
}
void
sp_min_plat_runtime_setup
(
void
)
{
/*
* Finish the use of console driver in SP_MIN so that any runtime logs
* from SP_MIN will be suppressed.
*/
console_uninit
();
}
#if !ERROR_DEPRECATED
#pragma weak sp_min_early_platform_setup2
void
sp_min_early_platform_setup2
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
)
{
sp_min_early_platform_setup
((
void
*
)
arg0
,
(
void
*
)
arg1
);
}
#endif
This diff is collapsed.
Click to expand it.
plat/common/aarch32/plat_sp_min_common.c
0 → 100644
View file @
06e3a5e1
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <console.h>
#include <platform.h>
#include <platform_sp_min.h>
/*
* The following platform setup functions are weakly defined. They
* provide typical implementations that may be re-used by multiple
* platforms but may also be overridden by a platform if required.
*/
#pragma weak sp_min_plat_runtime_setup
void
sp_min_plat_runtime_setup
(
void
)
{
/*
* Finish the use of console driver in SP_MIN so that any runtime logs
* from SP_MIN will be suppressed.
*/
console_uninit
();
}
#if !ERROR_DEPRECATED
#pragma weak sp_min_early_platform_setup2
void
sp_min_early_platform_setup2
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
)
{
sp_min_early_platform_setup
((
void
*
)
arg0
,
(
void
*
)
arg1
);
}
#endif
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