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
73a96051
Unverified
Commit
73a96051
authored
Feb 28, 2018
by
davidcunado-arm
Committed by
GitHub
Feb 28, 2018
Browse files
Merge pull request #1282 from robertovargas-arm/misra-changes
Misra changes
parents
fd50c18a
fd116b9f
Changes
75
Hide whitespace changes
Inline
Side-by-side
plat/arm/common/arm_bl2u_setup.c
View file @
73a96051
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -10,6 +10,7 @@
#include <console.h>
#include <plat_arm.h>
#include <platform_def.h>
#include <platform.h>
#include <string.h>
/* Weak definitions may be overridden in specific ARM standard platform */
...
...
plat/arm/common/arm_common.c
View file @
73a96051
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -11,6 +11,7 @@
#include <mmio.h>
#include <plat_arm.h>
#include <platform_def.h>
#include <platform.h>
#include <secure_partition.h>
extern
const
mmap_region_t
plat_arm_mmap
[];
...
...
plat/arm/common/arm_gicv3.c
View file @
73a96051
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -35,8 +35,8 @@ static const interrupt_prop_t arm_interrupt_props[] = {
* We save and restore the GICv3 context on system suspend. Allocate the
* data in the designated EL3 Secure carve-out memory
*/
gicv3_redist_ctx_t
rdist_ctx
__section
(
"arm_el3_tzc_dram"
);
gicv3_dist_ctx_t
dist_ctx
__section
(
"arm_el3_tzc_dram"
);
static
gicv3_redist_ctx_t
rdist_ctx
__section
(
"arm_el3_tzc_dram"
);
static
gicv3_dist_ctx_t
dist_ctx
__section
(
"arm_el3_tzc_dram"
);
/*
* MPIDR hashing function for translating MPIDRs read from GICR_TYPER register
...
...
@@ -58,7 +58,7 @@ static unsigned int arm_gicv3_mpidr_hash(u_register_t mpidr)
return
plat_arm_calc_core_pos
(
mpidr
);
}
const
gicv3_driver_data_t
arm_gic_data
=
{
static
const
gicv3_driver_data_t
arm_gic_data
__unused
=
{
.
gicd_base
=
PLAT_ARM_GICD_BASE
,
.
gicr_base
=
PLAT_ARM_GICR_BASE
,
.
interrupt_props
=
arm_interrupt_props
,
...
...
plat/arm/common/arm_io_storage.c
View file @
73a96051
...
...
@@ -10,6 +10,8 @@
#include <io_fip.h>
#include <io_memmap.h>
#include <io_storage.h>
#include <plat_arm.h>
#include <platform.h>
#include <platform_def.h>
#include <string.h>
#include <utils.h>
...
...
plat/arm/common/arm_nor_psci_mem_protect.c
View file @
73a96051
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -12,7 +12,7 @@
#include <psci.h>
#include <utils.h>
mem_region_t
arm_ram_ranges
[]
=
{
static
mem_region_t
arm_ram_ranges
[]
=
{
{
ARM_NS_DRAM1_BASE
,
ARM_NS_DRAM1_SIZE
},
#ifdef AARCH64
{
ARM_DRAM2_BASE
,
ARM_DRAM2_SIZE
},
...
...
plat/arm/common/arm_tzc400.c
View file @
73a96051
/*
* Copyright (c) 2014-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -7,6 +7,7 @@
#include <arm_def.h>
#include <arm_spm_def.h>
#include <debug.h>
#include <plat_arm.h>
#include <platform_def.h>
#include <tzc400.h>
...
...
plat/arm/css/common/css_bl1_setup.c
View file @
73a96051
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2018
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -7,6 +7,7 @@
#include <bl_common.h>
#include <debug.h>
#include <plat_arm.h>
#include <platform.h>
#include <soc_css.h>
void
bl1_platform_setup
(
void
)
...
...
plat/arm/css/common/css_bl2u_setup.c
View file @
73a96051
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -7,6 +7,7 @@
#include <bl_common.h>
#include <debug.h>
#include <plat_arm.h>
#include <platform.h>
#include "../drivers/scp/css_scp.h"
/* Weak definition may be overridden in specific CSS based platform */
...
...
plat/arm/css/common/css_topology.c
View file @
73a96051
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <plat_arm.h>
#include <platform.h>
#if ARM_PLAT_MT
#pragma weak plat_arm_get_cpu_pe_count
...
...
plat/arm/css/drivers/scp/css_bom_bootloader.c
View file @
73a96051
/*
* Copyright (c) 2014-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -12,6 +12,7 @@
#include <stdint.h>
#include "../scpi/css_mhu.h"
#include "../scpi/css_scpi.h"
#include "css_scp.h"
/* ID of the MHU slot used for the BOM protocol */
#define BOM_MHU_SLOT_ID 0
...
...
plat/arm/css/drivers/scp/css_pm_scmi.c
View file @
73a96051
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -61,17 +61,11 @@ typedef enum {
scmi_power_state_sleep
=
2
,
}
scmi_power_state_t
;
/*
* This mapping array has to be exported by the platform. Each element at
* a given index maps that core to an SCMI power domain.
*/
extern
uint32_t
plat_css_core_pos_to_scmi_dmn_id_map
[];
/*
* The global handle for invoking the SCMI driver APIs after the driver
* has been initialized.
*/
void
*
scmi_handle
;
static
void
*
scmi_handle
;
/* The SCMI channel global object */
static
scmi_channel_t
scmi_channel
;
...
...
plat/arm/soc/common/soc_css_security.c
View file @
73a96051
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2018
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -8,6 +8,7 @@
#include <mmio.h>
#include <nic_400.h>
#include <platform_def.h>
#include <soc_css.h>
#include <soc_css_def.h>
void
soc_css_init_nic400
(
void
)
...
...
plat/common/plat_bl_common.c
View file @
73a96051
...
...
@@ -36,6 +36,7 @@ void bl2_plat_preload_setup(void)
{
}
#if LOAD_IMAGE_V2
int
bl2_plat_handle_pre_image_load
(
unsigned
int
image_id
)
{
return
0
;
...
...
@@ -45,6 +46,7 @@ int bl2_plat_handle_post_image_load(unsigned int image_id)
{
return
0
;
}
#endif
int
plat_try_next_boot_source
(
void
)
{
...
...
services/arm_arch_svc/arm_arch_svc_setup.c
View file @
73a96051
...
...
@@ -33,7 +33,7 @@ static int32_t smccc_arch_features(u_register_t arg)
/*
* Top-level Arm Architectural Service SMC handler.
*/
uintptr_t
arm_arch_svc_smc_handler
(
uint32_t
smc_fid
,
static
uintptr_t
arm_arch_svc_smc_handler
(
uint32_t
smc_fid
,
u_register_t
x1
,
u_register_t
x2
,
u_register_t
x3
,
...
...
services/std_svc/std_svc_setup.c
View file @
73a96051
/*
* Copyright (c) 2014-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -58,7 +58,7 @@ static int32_t std_svc_setup(void)
* Top-level Standard Service SMC handler. This handler will in turn dispatch
* calls to PSCI SMC handler
*/
uintptr_t
std_svc_smc_handler
(
uint32_t
smc_fid
,
static
uintptr_t
std_svc_smc_handler
(
uint32_t
smc_fid
,
u_register_t
x1
,
u_register_t
x2
,
u_register_t
x3
,
...
...
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