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
01c44ddd
Commit
01c44ddd
authored
Aug 02, 2019
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Aug 02, 2019
Browse files
Merge "Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__" into integration
parents
f61469e5
d5dfdeb6
Changes
90
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
01c44ddd
...
...
@@ -273,8 +273,7 @@ endif
CPPFLAGS
=
${DEFINES}
${INCLUDES}
${MBEDTLS_INC}
-nostdinc
\
-Wmissing-include-dirs
$(ERRORS)
$(WARNINGS)
ASFLAGS
+=
$(CPPFLAGS)
$
(
ASFLAGS_
$(ARCH)
)
\
-D__ASSEMBLY__
-ffreestanding
\
-Wa
,--fatal-warnings
-ffreestanding
-Wa
,--fatal-warnings
TF_CFLAGS
+=
$(CPPFLAGS)
$
(
TF_CFLAGS_
$(ARCH)
)
\
-ffreestanding
-fno-builtin
-Wall
-std
=
gnu99
\
-Os
-ffunction-sections
-fdata-sections
...
...
@@ -763,14 +762,16 @@ all: msg_start
msg_start:
@echo "
Building
${PLAT}"
# Check if deprecated declarations and cpp warnings should be treated as error or not.
ifeq
(${ERROR_DEPRECATED},0)
# Check if deprecated declarations and cpp warnings should be treated as error or not.
ifneq
($(findstring clang,$(notdir $(CC))),)
CPPFLAGS
+=
-Wno-error
=
deprecated-declarations
else
CPPFLAGS
+=
-Wno-error
=
deprecated-declarations
-Wno-error
=
cpp
endif
endif
# __ASSEMBLY__ is deprecated in favor of the compiler-builtin __ASSEMBLER__.
ASFLAGS
+=
-D__ASSEMBLY__
endif
# !ERROR_DEPRECATED
$(eval
$(call
MAKE_LIB_DIRS))
$(eval
$(call
MAKE_LIB,c))
...
...
bl32/tsp/tsp_private.h
View file @
01c44ddd
...
...
@@ -20,7 +20,7 @@
#define TSP_ARGS_END 0x40
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -148,6 +148,6 @@ tsp_args_t *tsp_system_off_main(uint64_t arg0,
uint64_t
arg7
);
uint64_t
tsp_main
(
void
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* TSP_PRIVATE_H */
drivers/arm/css/sds/sds_private.h
View file @
01c44ddd
...
...
@@ -58,7 +58,7 @@
#define SDS_REGION_REGIONSIZE_OFFSET 0x4
#define SDS_REGION_DESC_SIZE 0x8
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stddef.h>
#include <stdint.h>
...
...
@@ -95,6 +95,6 @@ typedef struct region_descriptor {
& SDS_REGION_SCH_VERSION_MASK)
#define GET_SDS_REGION_SIZE(region) ((((region_desc_t *)(region))->reg[1]))
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* SDS_PRIVATE_H */
drivers/imx/uart/imx_uart.h
View file @
01c44ddd
...
...
@@ -152,7 +152,7 @@
#define IMX_UART_TS_RXFULL BIT(3)
#define IMX_UART_TS_SOFTRST BIT(0)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
typedef
struct
{
console_t
console
;
...
...
@@ -163,6 +163,6 @@ int console_imx_uart_register(uintptr_t baseaddr,
uint32_t
clock
,
uint32_t
baud
,
console_imx_uart_t
*
console
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* IMX_UART_H */
drivers/renesas/rcar/delay/micro_delay.h
View file @
01c44ddd
...
...
@@ -7,7 +7,7 @@
#ifndef MICRO_DELAY_H
#define MICRO_DELAY_H
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
void
rcar_micro_delay
(
uint64_t
micro_sec
);
#endif
...
...
drivers/renesas/rcar/pwrc/pwrc.c
View file @
01c44ddd
...
...
@@ -148,7 +148,7 @@ RCAR_INSTANTIATE_LOCK
#define IS_CA57(c) ((c) == RCAR_CLUSTER_CA57)
#define IS_CA53(c) ((c) == RCAR_CLUSTER_CA53)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
IMPORT_SYM
(
unsigned
long
,
__system_ram_start__
,
SYSTEM_RAM_START
);
IMPORT_SYM
(
unsigned
long
,
__system_ram_end__
,
SYSTEM_RAM_END
);
IMPORT_SYM
(
unsigned
long
,
__SRAM_COPY_START__
,
SRAM_COPY_START
);
...
...
drivers/renesas/rcar/pwrc/pwrc.h
View file @
01c44ddd
...
...
@@ -38,7 +38,7 @@
#define RCAR_CLUSTER_CA53 (1U)
#define RCAR_CLUSTER_CA57 (2U)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
void
rcar_pwrc_disable_interrupt_wakeup
(
uint64_t
mpidr
);
void
rcar_pwrc_enable_interrupt_wakeup
(
uint64_t
mpidr
);
void
rcar_pwrc_clusteroff
(
uint64_t
mpidr
);
...
...
include/arch/aarch32/smccc_helpers.h
View file @
01c44ddd
...
...
@@ -24,7 +24,7 @@
#define SMC_CTX_PMCR U(0x88)
#define SMC_CTX_SIZE U(0x90)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -156,6 +156,6 @@ 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
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* SMCCC_HELPERS_H */
include/arch/aarch64/smccc_helpers.h
View file @
01c44ddd
...
...
@@ -9,7 +9,7 @@
#include <lib/smccc.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdbool.h>
...
...
@@ -82,6 +82,6 @@
_x4 = read_ctx_reg(regs, CTX_GPREG_X4); \
} while (false)
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* SMCCC_HELPERS_H */
include/bl1/bl1.h
View file @
01c44ddd
...
...
@@ -61,7 +61,7 @@
#define is_fwu_fid(_fid) \
((_fid >= FWU_SMC_FID_START) && (_fid <= FWU_SMC_FID_END))
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <lib/cassert.h>
...
...
@@ -98,5 +98,5 @@ CASSERT(FWU_NUM_SMC_CALLS == \
void
bl1_calc_bl2_mem_layout
(
const
meminfo_t
*
bl1_mem_layout
,
meminfo_t
*
bl2_mem_layout
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* BL1_H */
include/bl31/ehf.h
View file @
01c44ddd
...
...
@@ -7,7 +7,7 @@
#ifndef EHF_H
#define EHF_H
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <cdefs.h>
#include <stdint.h>
...
...
@@ -87,6 +87,6 @@ void ehf_register_priority_handler(unsigned int pri, ehf_handler_t handler);
void
ehf_allow_ns_preemption
(
uint64_t
preempt_ret_code
);
unsigned
int
ehf_is_ns_preemption_allowed
(
void
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* EHF_H */
include/bl31/interrupt_mgmt.h
View file @
01c44ddd
...
...
@@ -79,7 +79,7 @@
#define get_interrupt_src_ss(flag) (((flag) >> INTR_SRC_SS_FLAG_SHIFT) & \
INTR_SRC_SS_FLAG_MASK)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <errno.h>
#include <stdint.h>
...
...
@@ -143,5 +143,5 @@ interrupt_type_handler_t get_interrupt_type_handler(uint32_t type);
int
disable_intr_rm_local
(
uint32_t
type
,
uint32_t
security_state
);
int
enable_intr_rm_local
(
uint32_t
type
,
uint32_t
security_state
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* INTERRUPT_MGMT_H */
include/bl32/tsp/tsp.h
View file @
01c44ddd
...
...
@@ -84,7 +84,7 @@
#define TOS_CALL_VERSION 0xbf00ff03
/* Trusted OS Call Version */
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -106,6 +106,6 @@ typedef struct tsp_vectors {
void
tsp_setup
(
void
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* TSP_H */
include/common/bl_common.h
View file @
01c44ddd
...
...
@@ -11,11 +11,11 @@
#include <common/param_header.h>
#include <lib/utils_def.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stddef.h>
#include <stdint.h>
#include <lib/cassert.h>
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#include <export/common/bl_common_exp.h>
...
...
@@ -91,7 +91,7 @@
#define __TEXT_END__ Load$$__TEXT_EPILOGUE__$$Base
#endif
/* USE_ARM_LINK */
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/*
* Declarations of linker defined symbols to help determine memory layout of
...
...
@@ -178,6 +178,6 @@ void setup_page_tables(const struct mmap_region *bl_regions,
void
bl_handle_pauth
(
void
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* BL_COMMON_H */
include/common/debug.h
View file @
01c44ddd
...
...
@@ -27,7 +27,7 @@
#define LOG_LEVEL_INFO U(40)
#define LOG_LEVEL_VERBOSE U(50)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <cdefs.h>
#include <stdarg.h>
...
...
@@ -110,5 +110,5 @@ void __dead2 __stack_chk_fail(void);
void
tf_log
(
const
char
*
fmt
,
...)
__printflike
(
1
,
2
);
void
tf_log_set_max_level
(
unsigned
int
log_level
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* DEBUG_H */
include/common/ep_info.h
View file @
01c44ddd
...
...
@@ -9,10 +9,10 @@
#include <common/param_header.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
#include <lib/cassert.h>
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#include <export/common/ep_info_exp.h>
...
...
@@ -30,7 +30,7 @@
#define SET_SECURITY_STATE(x, security) \
((x) = ((x) & ~EP_SECURITY_MASK) | (security))
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/*
* Compile time assertions related to the 'entry_point_info' structure to
...
...
@@ -56,6 +56,6 @@ CASSERT(sizeof(uintptr_t) ==
__builtin_offsetof
(
entry_point_info_t
,
pc
),
\
assert_entrypoint_and_spsr_should_be_adjacent
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* EP_INFO_H */
include/common/interrupt_props.h
View file @
01c44ddd
...
...
@@ -7,7 +7,7 @@
#ifndef INTERRUPT_PROPS_H
#define INTERRUPT_PROPS_H
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/* Create an interrupt property descriptor from various interrupt properties */
#define INTR_PROP_DESC(num, pri, grp, cfg) \
...
...
@@ -25,5 +25,5 @@ typedef struct interrupt_prop {
unsigned
int
intr_cfg
:
2
;
}
interrupt_prop_t
;
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* INTERRUPT_PROPS_H */
include/common/param_header.h
View file @
01c44ddd
...
...
@@ -9,9 +9,9 @@
#include <stdbool.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#include <export/common/param_header_exp.h>
...
...
include/common/runtime_svc.h
View file @
01c44ddd
...
...
@@ -39,7 +39,7 @@
*/
#define MAX_RT_SVCS U(128)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/* Prototype for runtime service initializing function */
typedef
int32_t
(
*
rt_svc_init_t
)(
void
);
...
...
@@ -134,5 +134,5 @@ void init_crash_reporting(void);
extern
uint8_t
rt_svc_descs_indices
[
MAX_RT_SVCS
];
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* RUNTIME_SVC_H */
include/drivers/arm/cci.h
View file @
01c44ddd
...
...
@@ -100,7 +100,7 @@
#define SLAVE_IF_UNUSED -1
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -121,5 +121,5 @@ void cci_init(uintptr_t base, const int *map, unsigned int num_cci_masters);
void
cci_enable_snoop_dvm_reqs
(
unsigned
int
master_id
);
void
cci_disable_snoop_dvm_reqs
(
unsigned
int
master_id
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* CCI_H */
Prev
1
2
3
4
5
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