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
01c44ddd
Commit
01c44ddd
authored
5 years ago
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__" into integration
parents
f61469e5
d5dfdeb6
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
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
90
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
include/lib/utils_def.h
+1
-1
include/lib/utils_def.h
include/lib/xlat_tables/xlat_mmu_helpers.h
+2
-2
include/lib/xlat_tables/xlat_mmu_helpers.h
include/lib/xlat_tables/xlat_tables.h
+2
-2
include/lib/xlat_tables/xlat_tables.h
include/lib/xlat_tables/xlat_tables_v2.h
+2
-2
include/lib/xlat_tables/xlat_tables_v2.h
include/lib/xlat_tables/xlat_tables_v2_helpers.h
+2
-2
include/lib/xlat_tables/xlat_tables_v2_helpers.h
include/plat/arm/board/common/board_css_def.h
+2
-2
include/plat/arm/board/common/board_css_def.h
include/plat/arm/css/common/css_def.h
+2
-2
include/plat/arm/css/common/css_def.h
include/services/spm_svc.h
+2
-2
include/services/spm_svc.h
lib/romlib/Makefile
+1
-1
lib/romlib/Makefile
make_helpers/build_macros.mk
+1
-1
make_helpers/build_macros.mk
plat/arm/css/sgi/include/sgi_base_platform_def.h
+2
-2
plat/arm/css/sgi/include/sgi_base_platform_def.h
plat/arm/css/sgm/include/sgm_base_platform_def.h
+2
-2
plat/arm/css/sgm/include/sgm_base_platform_def.h
plat/hisilicon/hikey/include/hisi_pwrc.h
+2
-2
plat/hisilicon/hikey/include/hisi_pwrc.h
plat/imx/common/include/imx8_lpuart.h
+2
-2
plat/imx/common/include/imx8_lpuart.h
plat/imx/common/include/imx_uart.h
+2
-2
plat/imx/common/include/imx_uart.h
plat/layerscape/common/include/ls_16550.h
+2
-2
plat/layerscape/common/include/ls_16550.h
plat/marvell/a3700/common/include/platform_def.h
+2
-2
plat/marvell/a3700/common/include/platform_def.h
plat/marvell/a8k/common/include/platform_def.h
+2
-2
plat/marvell/a8k/common/include/platform_def.h
plat/mediatek/mt8183/drivers/mcsi/mcsi.h
+2
-2
plat/mediatek/mt8183/drivers/mcsi/mcsi.h
plat/nvidia/tegra/include/drivers/memctrl_v2.h
+2
-2
plat/nvidia/tegra/include/drivers/memctrl_v2.h
with
37 additions
and
37 deletions
+37
-37
include/lib/utils_def.h
View file @
01c44ddd
...
...
@@ -32,7 +32,7 @@
* position @h. For example
* GENMASK_64(39, 21) gives us the 64bit vector 0x000000ffffe00000.
*/
#if defined(__LINKER__) || defined(__ASSEMBL
Y
__)
#if defined(__LINKER__) || defined(__ASSEMBL
ER
__)
#define GENMASK_32(h, l) \
(((0xFFFFFFFF) << (l)) & (0xFFFFFFFF >> (32 - 1 - (h))))
...
...
This diff is collapsed.
Click to expand it.
include/lib/xlat_tables/xlat_mmu_helpers.h
View file @
01c44ddd
...
...
@@ -50,7 +50,7 @@
#define MMU_CFG_TTBR0 2
#define MMU_CFG_PARAM_MAX 3
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdbool.h>
#include <stdint.h>
...
...
@@ -86,6 +86,6 @@ void enable_mmu_direct_el3(unsigned int flags);
bool
xlat_arch_is_granule_size_supported
(
size_t
size
);
size_t
xlat_arch_get_max_supported_granule_size
(
void
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* XLAT_MMU_HELPERS_H */
This diff is collapsed.
Click to expand it.
include/lib/xlat_tables/xlat_tables.h
View file @
01c44ddd
...
...
@@ -9,7 +9,7 @@
#include <lib/xlat_tables/xlat_tables_defs.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stddef.h>
#include <stdint.h>
...
...
@@ -88,5 +88,5 @@ void mmap_add_region(unsigned long long base_pa, uintptr_t base_va,
size_t
size
,
unsigned
int
attr
);
void
mmap_add
(
const
mmap_region_t
*
mm
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* XLAT_TABLES_H */
This diff is collapsed.
Click to expand it.
include/lib/xlat_tables/xlat_tables_v2.h
View file @
01c44ddd
...
...
@@ -10,7 +10,7 @@
#include <lib/xlat_tables/xlat_tables_defs.h>
#include <lib/xlat_tables/xlat_tables_v2_helpers.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stddef.h>
#include <stdint.h>
...
...
@@ -364,5 +364,5 @@ int xlat_get_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va,
uint32_t
*
attr
);
int
xlat_get_mem_attributes
(
uintptr_t
base_va
,
uint32_t
*
attr
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* XLAT_TABLES_V2_H */
This diff is collapsed.
Click to expand it.
include/lib/xlat_tables/xlat_tables_v2_helpers.h
View file @
01c44ddd
...
...
@@ -16,7 +16,7 @@
#error "Do not include this header file directly. Include xlat_tables_v2.h instead."
#endif
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdbool.h>
#include <stddef.h>
...
...
@@ -160,6 +160,6 @@ struct xlat_ctx {
.initialized = false, \
}
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* XLAT_TABLES_V2_HELPERS_H */
This diff is collapsed.
Click to expand it.
include/plat/arm/board/common/board_css_def.h
View file @
01c44ddd
...
...
@@ -29,7 +29,7 @@
#define BOARD_CSS_PLAT_TYPE_EMULATOR 0x02
#define BOARD_CSS_PLAT_TYPE_FVP 0x03
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <lib/mmio.h>
...
...
@@ -37,7 +37,7 @@
((mmio_read_32(addr) & BOARD_CSS_PLAT_ID_REG_ID_MASK) \
>> BOARD_CSS_PLAT_ID_REG_ID_SHIFT)
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#define MAX_IO_DEVICES 3
...
...
This diff is collapsed.
Click to expand it.
include/plat/arm/css/common/css_def.h
View file @
01c44ddd
...
...
@@ -136,7 +136,7 @@
#define SPIDEN_INT_CLR_SHIFT 6
#define SPIDEN_SEL_SET_SHIFT 7
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/* SSC_VERSION related accessors */
...
...
@@ -150,7 +150,7 @@
(((val) >> SSC_VERSION_CONFIG_SHIFT) & \
SSC_VERSION_CONFIG_MASK)
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
/*************************************************************************
* Required platform porting definitions common to all
...
...
This diff is collapsed.
Click to expand it.
include/services/spm_svc.h
View file @
01c44ddd
...
...
@@ -63,7 +63,7 @@
#endif
/* SPM_MM */
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -85,6 +85,6 @@ uint64_t spm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3);
#endif
/* SPM_MM */
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* SPM_SVC_H */
This diff is collapsed.
Click to expand it.
lib/romlib/Makefile
View file @
01c44ddd
...
...
@@ -15,7 +15,7 @@ LIB_DIR = ../../$(BUILD_PLAT)/lib
WRAPPER_DIR
=
../../
$(BUILD_PLAT)
/libwrapper
LIBS
=
-lmbedtls
-lfdt
-lc
INC
=
$
(
INCLUDES:-I%
=
-I
../../%
)
PPFLAGS
=
$(INC)
$(DEFINES)
-P
-
D__ASSEMBLY__
-D__LINKER__
-MD
-MP
-MT
$(BUILD_DIR)
/romlib.ld
PPFLAGS
=
$(INC)
$(DEFINES)
-P
-
x
assembler-with-cpp
-D__LINKER__
-MD
-MP
-MT
$(BUILD_DIR)
/romlib.ld
OBJS
=
$(BUILD_DIR)
/jmptbl.o
$(BUILD_DIR)
/init.o
MAPFILE
=
../../
$(BUILD_PLAT)
/romlib/romlib.map
...
...
This diff is collapsed.
Click to expand it.
make_helpers/build_macros.mk
View file @
01c44ddd
...
...
@@ -273,7 +273,7 @@ $(eval IMAGE := IMAGE_BL$(call uppercase,$(3)))
$(1)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | bl$(3)_dirs
$
$(ECHO)
" PP
$$
<"
$
$(Q)
$
$(CPP)
$
$(CPPFLAGS)
-P
-
D__ASSEMBLY__
-D__LINKER__
$(MAKE_DEP)
-D
$(IMAGE)
-o
$$
@
$$
<
$
$(Q)
$
$(CPP)
$
$(CPPFLAGS)
-P
-
x
assembler-with-cpp
-D__LINKER__
$(MAKE_DEP)
-D
$(IMAGE)
-o
$$
@
$$
<
-include
$(DEP)
...
...
This diff is collapsed.
Click to expand it.
plat/arm/css/sgi/include/sgi_base_platform_def.h
View file @
01c44ddd
...
...
@@ -187,7 +187,7 @@
/* Platform ID address */
#define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/* SSC_VERSION related accessors */
/* Returns the part number of the platform */
#define GET_SGI_PART_NUM \
...
...
@@ -195,7 +195,7 @@
/* Returns the configuration number of the platform */
#define GET_SGI_CONFIG_NUM \
GET_SSC_VERSION_CONFIG(mmio_read_32(SSC_VERSION))
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
/*******************************************************************************
* Memprotect definitions
...
...
This diff is collapsed.
Click to expand it.
plat/arm/css/sgm/include/sgm_base_platform_def.h
View file @
01c44ddd
...
...
@@ -51,7 +51,7 @@
/* Platform ID address */
#define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
/* SSC_VERSION related accessors */
/* Returns the part number of the platform */
#define GET_PLAT_PART_NUM \
...
...
@@ -59,7 +59,7 @@
/* Returns the configuration number of the platform */
#define GET_PLAT_CONFIG_NUM \
GET_SSC_VERSION_CONFIG(mmio_read_32(SSC_VERSION))
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
/*************************************************************************
...
...
This diff is collapsed.
Click to expand it.
plat/hisilicon/hikey/include/hisi_pwrc.h
View file @
01c44ddd
...
...
@@ -7,7 +7,7 @@
#ifndef HISI_PWRC_H
#define HISI_PWRC_H
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
void
hisi_pwrc_set_cluster_wfi
(
unsigned
int
id
);
void
hisi_pwrc_set_core_bx_addr
(
unsigned
int
core
,
...
...
@@ -17,6 +17,6 @@ void hisi_pwrc_enable_debug(unsigned int core,
unsigned
int
cluster
);
int
hisi_pwrc_setup
(
void
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* HISI_PWRC_H */
This diff is collapsed.
Click to expand it.
plat/imx/common/include/imx8_lpuart.h
View file @
01c44ddd
...
...
@@ -50,7 +50,7 @@
#define LPUART_BAUD_BOTHEDGE_MASK (0x20000U)
#define LPUART_BAUD_M10_MASK (0x20000000U)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -61,6 +61,6 @@ typedef struct {
int
console_lpuart_register
(
uintptr_t
baseaddr
,
uint32_t
clock
,
uint32_t
baud
,
console_lpuart_t
*
console
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* IMX8_LPUART_H */
This diff is collapsed.
Click to expand it.
plat/imx/common/include/imx_uart.h
View file @
01c44ddd
...
...
@@ -9,7 +9,7 @@
#include <drivers/console.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
typedef
struct
{
console_t
console
;
...
...
@@ -18,6 +18,6 @@ typedef struct {
int
console_imx_uart_register
(
uintptr_t
baseaddr
,
uint32_t
clock
,
uint32_t
baud
,
console_uart_t
*
console
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* IMX_UART_H */
This diff is collapsed.
Click to expand it.
plat/layerscape/common/include/ls_16550.h
View file @
01c44ddd
...
...
@@ -63,7 +63,7 @@
#define CONSOLE_T_16550_BASE CONSOLE_T_DRVDATA
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdint.h>
...
...
@@ -81,6 +81,6 @@ typedef struct {
int
console_ls_16550_register
(
uintptr_t
baseaddr
,
uint32_t
clock
,
uint32_t
baud
,
console_ls_16550_t
*
console
);
#endif
/*__ASSEMBL
Y
__*/
#endif
/*__ASSEMBL
ER
__*/
#endif
/* LS_16550_H */
This diff is collapsed.
Click to expand it.
plat/marvell/a3700/common/include/platform_def.h
View file @
01c44ddd
...
...
@@ -8,9 +8,9 @@
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdio.h>
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#include <board_marvell_def.h>
#include <mvebu_def.h>
...
...
This diff is collapsed.
Click to expand it.
plat/marvell/a8k/common/include/platform_def.h
View file @
01c44ddd
...
...
@@ -8,9 +8,9 @@
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <stdio.h>
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#include <common/interrupt_props.h>
#include <drivers/arm/gic_common.h>
...
...
This diff is collapsed.
Click to expand it.
plat/mediatek/mt8183/drivers/mcsi/mcsi.h
View file @
01c44ddd
...
...
@@ -85,7 +85,7 @@
#define CCI_CLK_CTRL (MCUCFG_BASE + 0x660)
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <plat/common/common_def.h>
#include <stdint.h>
...
...
@@ -112,5 +112,5 @@ void cci_secure_switch(unsigned int ns);
void
cci_init_sf
(
void
);
unsigned
long
cci_reg_access
(
unsigned
int
op
,
unsigned
long
offset
,
unsigned
long
val
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* MCSI_H */
This diff is collapsed.
Click to expand it.
plat/nvidia/tegra/include/drivers/memctrl_v2.h
View file @
01c44ddd
...
...
@@ -9,7 +9,7 @@
#include <tegra_def.h>
#ifndef __ASSEMBL
Y
__
#ifndef __ASSEMBL
ER
__
#include <lib/mmio.h>
#include <stdint.h>
...
...
@@ -173,6 +173,6 @@ tegra_mc_settings_t *tegra_get_mc_settings(void);
******************************************************************************/
void
plat_memctrl_tzdram_setup
(
uint64_t
phys_base
,
uint64_t
size_in_bytes
);
#endif
/* __ASSEMBL
Y
__ */
#endif
/* __ASSEMBL
ER
__ */
#endif
/* MEMCTRL_V2_H */
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help