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
ccd130ea
Unverified
Commit
ccd130ea
authored
May 01, 2018
by
danh-arm
Committed by
GitHub
May 01, 2018
Browse files
Merge pull request #1255 from masahir0y/int-ll64
Use consistent int-ll64 typedefs for aarch32 and aarch64
parents
a8d9550b
0a2d5b43
Changes
27
Hide whitespace changes
Inline
Side-by-side
bl32/tsp/tsp_interrupt.c
View file @
ccd130ea
...
...
@@ -33,7 +33,7 @@ void tsp_update_sync_sel1_intr_stats(uint32_t type, uint64_t elr_el3)
#if LOG_LEVEL >= LOG_LEVEL_VERBOSE
spin_lock
(
&
console_lock
);
VERBOSE
(
"TSP: cpu 0x%lx sync s-el1 interrupt request from 0x%lx
\n
"
,
VERBOSE
(
"TSP: cpu 0x%lx sync s-el1 interrupt request from 0x%
l
lx
\n
"
,
read_mpidr
(),
elr_el3
);
VERBOSE
(
"TSP: cpu 0x%lx: %d sync s-el1 interrupt requests,"
" %d sync s-el1 interrupt returns
\n
"
,
...
...
bl32/tsp/tsp_main.c
View file @
ccd130ea
...
...
@@ -247,7 +247,7 @@ tsp_args_t *tsp_cpu_resume_main(uint64_t max_off_pwrlvl,
#if LOG_LEVEL >= LOG_LEVEL_INFO
spin_lock
(
&
console_lock
);
INFO
(
"TSP: cpu 0x%lx resumed. maximum off power level %ld
\n
"
,
INFO
(
"TSP: cpu 0x%lx resumed. maximum off power level %
l
ld
\n
"
,
read_mpidr
(),
max_off_pwrlvl
);
INFO
(
"TSP: cpu 0x%lx: %d smcs, %d erets %d cpu suspend requests
\n
"
,
read_mpidr
(),
...
...
@@ -347,7 +347,7 @@ tsp_args_t *tsp_smc_handler(uint64_t func,
tsp_stats
[
linear_id
].
smc_count
++
;
tsp_stats
[
linear_id
].
eret_count
++
;
INFO
(
"TSP: cpu 0x%lx received %s smc 0x%lx
\n
"
,
read_mpidr
(),
INFO
(
"TSP: cpu 0x%lx received %s smc 0x%
l
lx
\n
"
,
read_mpidr
(),
((
func
>>
31
)
&
1
)
==
1
?
"fast"
:
"yielding"
,
func
);
INFO
(
"TSP: cpu 0x%lx: %d smcs, %d erets
\n
"
,
read_mpidr
(),
...
...
drivers/arm/gic/gic_v3.c
View file @
ccd130ea
...
...
@@ -8,7 +8,7 @@
#include <debug.h>
#include <gic_v3.h>
uintptr_t
gicv3_get_rdist
(
uintptr_t
gicr_base
,
u
int64
_t
mpidr
)
uintptr_t
gicv3_get_rdist
(
uintptr_t
gicr_base
,
u
_register
_t
mpidr
)
{
uint32_t
cpu_aff
,
gicr_aff
;
uint64_t
gicr_typer
;
...
...
include/lib/aarch64/arch_helpers.h
View file @
ccd130ea
...
...
@@ -18,15 +18,15 @@
*********************************************************************/
#define _DEFINE_SYSREG_READ_FUNC(_name, _reg_name) \
static inline u
int64
_t read_ ## _name(void) \
static inline u
_register
_t read_ ## _name(void) \
{ \
u
int64
_t v; \
u
_register
_t v; \
__asm__ volatile ("mrs %0, " #_reg_name : "=r" (v)); \
return v; \
}
#define _DEFINE_SYSREG_WRITE_FUNC(_name, _reg_name) \
static inline void write_ ## _name(u
int64
_t v)
\
static inline void write_ ## _name(u
_register
_t v) \
{ \
__asm__ volatile ("msr " #_reg_name ", %0" : : "r" (v)); \
}
...
...
include/lib/stdlib/machine/_types.h
View file @
ccd130ea
...
...
@@ -52,56 +52,19 @@ typedef short __int16_t;
typedef
unsigned
short
__uint16_t
;
typedef
int
__int32_t
;
typedef
unsigned
int
__uint32_t
;
/*
* Standard type definitions which are different in AArch64 and AArch32
*/
#ifdef AARCH32
typedef
long
long
__int64_t
;
typedef
unsigned
long
long
__uint64_t
;
typedef
__int32_t
__critical_t
;
typedef
__int32_t
__intfptr_t
;
typedef
__int32_t
__intptr_t
;
typedef
__int32_t
__ptrdiff_t
;
/* ptr1 - ptr2 */
typedef
__int32_t
__register_t
;
typedef
__int32_t
__segsz_t
;
/* segment size (in pages) */
typedef
__uint32_t
__size_t
;
/* sizeof() */
typedef
__int32_t
__ssize_t
;
/* byte count or error */
typedef
__uint32_t
__uintfptr_t
;
typedef
__uint32_t
__uintptr_t
;
typedef
__uint32_t
__u_register_t
;
typedef
__uint32_t
__vm_offset_t
;
typedef
__uint32_t
__vm_paddr_t
;
typedef
__uint32_t
__vm_size_t
;
#elif defined AARCH64
typedef
long
__int64_t
;
typedef
unsigned
long
__uint64_t
;
typedef
__int64_t
__critical_t
;
typedef
__int64_t
__intfptr_t
;
typedef
__int64_t
__intptr_t
;
typedef
__int64_t
__ptrdiff_t
;
/* ptr1 - ptr2 */
typedef
__int64_t
__register_t
;
typedef
__int64_t
__segsz_t
;
/* segment size (in pages) */
typedef
__uint64_t
__size_t
;
/* sizeof() */
typedef
__int64_t
__ssize_t
;
/* byte count or error */
typedef
__uint64_t
__uintfptr_t
;
typedef
__uint64_t
__uintptr_t
;
typedef
__uint64_t
__u_register_t
;
typedef
__uint64_t
__vm_offset_t
;
typedef
__uint64_t
__vm_paddr_t
;
typedef
__uint64_t
__vm_size_t
;
#else
#error "Only AArch32 or AArch64 supported"
#endif
/* AARCH32 */
/*
* Standard type definitions.
*/
typedef
__int32_t
__clock_t
;
/* clock()... */
typedef
long
__critical_t
;
typedef
double
__double_t
;
typedef
float
__float_t
;
typedef
long
__intfptr_t
;
typedef
__int64_t
__intmax_t
;
typedef
long
__intptr_t
;
typedef
__int32_t
__int_fast8_t
;
typedef
__int32_t
__int_fast16_t
;
typedef
__int32_t
__int_fast32_t
;
...
...
@@ -110,8 +73,22 @@ typedef __int8_t __int_least8_t;
typedef
__int16_t
__int_least16_t
;
typedef
__int32_t
__int_least32_t
;
typedef
__int64_t
__int_least64_t
;
typedef
long
__ptrdiff_t
;
/* ptr1 - ptr2 */
typedef
long
__register_t
;
typedef
long
__segsz_t
;
/* segment size (in pages) */
#ifdef AARCH32
typedef
unsigned
int
__size_t
;
/* sizeof() */
typedef
int
__ssize_t
;
/* byte count or error */
#elif defined AARCH64
typedef
unsigned
long
__size_t
;
/* sizeof() */
typedef
long
__ssize_t
;
/* byte count or error */
#else
#error "Only AArch32 or AArch64 supported"
#endif
/* AARCH32 */
typedef
__int64_t
__time_t
;
/* time()... */
typedef
unsigned
long
__uintfptr_t
;
typedef
__uint64_t
__uintmax_t
;
typedef
unsigned
long
__uintptr_t
;
typedef
__uint32_t
__uint_fast8_t
;
typedef
__uint32_t
__uint_fast16_t
;
typedef
__uint32_t
__uint_fast32_t
;
...
...
@@ -120,8 +97,12 @@ typedef __uint8_t __uint_least8_t;
typedef
__uint16_t
__uint_least16_t
;
typedef
__uint32_t
__uint_least32_t
;
typedef
__uint64_t
__uint_least64_t
;
typedef
unsigned
long
__u_register_t
;
typedef
unsigned
long
__vm_offset_t
;
typedef
__int64_t
__vm_ooffset_t
;
typedef
unsigned
long
__vm_paddr_t
;
typedef
__uint64_t
__vm_pindex_t
;
typedef
unsigned
long
__vm_size_t
;
/*
* Unusual type definitions.
...
...
plat/common/aarch64/plat_common.c
View file @
ccd130ea
...
...
@@ -93,7 +93,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
*/
void
plat_sdei_handle_masked_trigger
(
uint64_t
mpidr
,
unsigned
int
intr
)
{
WARN
(
"Spurious SDEI interrupt %u on masked PE %lx
\n
"
,
intr
,
mpidr
);
WARN
(
"Spurious SDEI interrupt %u on masked PE %
l
lx
\n
"
,
intr
,
mpidr
);
}
/*
...
...
plat/hisilicon/hikey/hikey_bl1_setup.c
View file @
ccd130ea
...
...
@@ -172,7 +172,7 @@ void bl1_plat_set_ep_info(unsigned int image_id,
__asm__
volatile
(
"msr cpacr_el1, %0"
:
:
"r"
(
data
));
__asm__
volatile
(
"mrs %0, cpacr_el1"
:
"=r"
(
data
));
}
while
((
data
&
(
3
<<
20
))
!=
(
3
<<
20
));
INFO
(
"cpacr_el1:0x%lx
\n
"
,
data
);
INFO
(
"cpacr_el1:0x%
l
lx
\n
"
,
data
);
ep_info
->
args
.
arg0
=
0xffff
&
read_mpidr
();
ep_info
->
spsr
=
SPSR_64
(
MODE_EL1
,
MODE_SP_ELX
,
...
...
plat/mediatek/common/custom/oem_svc.c
View file @
ccd130ea
...
...
@@ -32,14 +32,14 @@ static int32_t oem_svc_setup(void)
/*******************************************************************************
* OEM top level handler for servicing SMCs.
******************************************************************************/
uint
64
_t
oem_smc_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
uint
ptr
_t
oem_smc_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
WARN
(
"Unimplemented OEM Call: 0x%x
\n
"
,
smc_fid
);
SMC_RET1
(
handle
,
SMC_UNK
);
...
...
@@ -49,14 +49,14 @@ uint64_t oem_smc_handler(uint32_t smc_fid,
* Top-level OEM Service SMC handler. This handler will in turn dispatch
* calls to related SMC handler
*/
uint
64
_t
oem_svc_smc_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
uint
ptr
_t
oem_svc_smc_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
/*
* Dispatch OEM calls to OEM Common handler and return its return value
...
...
plat/mediatek/common/mtk_plat_common.c
View file @
ccd130ea
...
...
@@ -19,10 +19,10 @@
struct
atf_arg_t
gteearg
;
void
clean_top_32b_of_param
(
uint32_t
smc_fid
,
u
int64
_t
*
px1
,
u
int64
_t
*
px2
,
u
int64
_t
*
px3
,
u
int64
_t
*
px4
)
u
_register
_t
*
px1
,
u
_register
_t
*
px2
,
u
_register
_t
*
px3
,
u
_register
_t
*
px4
)
{
/* if parameters from SMC32. Clean top 32 bits */
if
(
0
==
(
smc_fid
&
SMC_AARCH64_BIT
))
{
...
...
plat/mediatek/common/mtk_plat_common.h
View file @
ccd130ea
...
...
@@ -48,10 +48,10 @@ struct mtk_bl_param_t {
/* Declarations for mtk_plat_common.c */
uint32_t
plat_get_spsr_for_bl32_entry
(
void
);
uint32_t
plat_get_spsr_for_bl33_entry
(
void
);
void
clean_top_32b_of_param
(
uint32_t
smc_fid
,
u
int64
_t
*
x1
,
u
int64
_t
*
x2
,
u
int64
_t
*
x3
,
u
int64
_t
*
x4
);
void
clean_top_32b_of_param
(
uint32_t
smc_fid
,
u
_register
_t
*
x1
,
u
_register
_t
*
x2
,
u
_register
_t
*
x3
,
u
_register
_t
*
x4
);
void
bl31_prepare_kernel_entry
(
uint64_t
k32_64
);
void
enable_ns_access_to_cpuectlr
(
void
);
void
boot_to_kernel
(
uint64_t
x1
,
uint64_t
x2
,
uint64_t
x3
,
uint64_t
x4
);
...
...
plat/mediatek/common/mtk_sip_svc.c
View file @
ccd130ea
...
...
@@ -19,14 +19,14 @@ DEFINE_SVC_UUID(mtk_sip_svc_uid,
0x8f
,
0x95
,
0x05
,
0x00
,
0x0f
,
0x3d
);
#pragma weak mediatek_plat_sip_handler
uint
64
_t
mediatek_plat_sip_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
uint
ptr
_t
mediatek_plat_sip_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
ERROR
(
"%s: unhandled SMC (0x%x)
\n
"
,
__func__
,
smc_fid
);
SMC_RET1
(
handle
,
SMC_UNK
);
...
...
@@ -34,14 +34,14 @@ uint64_t mediatek_plat_sip_handler(uint32_t smc_fid,
/*
* This function handles Mediatek defined SiP Calls */
uint
64
_t
mediatek_sip_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
uint
ptr
_t
mediatek_sip_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
uint32_t
ns
;
...
...
@@ -85,14 +85,14 @@ uint64_t mediatek_sip_handler(uint32_t smc_fid,
/*
* This function is responsible for handling all SiP calls from the NS world
*/
uint
64
_t
sip_smc_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
uint
ptr
_t
sip_smc_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
switch
(
smc_fid
)
{
case
SIP_SVC_CALL_COUNT
:
...
...
plat/nvidia/tegra/common/tegra_sip_calls.c
View file @
ccd130ea
...
...
@@ -49,14 +49,14 @@ int plat_sip_handler(uint32_t smc_fid,
/*******************************************************************************
* This function is responsible for handling all SiP calls
******************************************************************************/
uint
64
_t
tegra_sip_handler
(
uint32_t
smc_fid
,
uint64
_t
x1
,
uint64
_t
x2
,
uint64
_t
x3
,
uint64
_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64
_t
flags
)
uint
ptr
_t
tegra_sip_handler
(
uint32_t
smc_fid
,
u_register
_t
x1
,
u_register
_t
x2
,
u_register
_t
x3
,
u_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u_register
_t
flags
)
{
uint32_t
regval
;
int
err
;
...
...
plat/nvidia/tegra/soc/t186/drivers/mce/mce.c
View file @
ccd130ea
...
...
@@ -382,7 +382,7 @@ int32_t mce_command_handler(uint64_t cmd, uint64_t arg0, uint64_t arg1,
break
;
default:
ERROR
(
"unknown MCE command (%lu)
\n
"
,
cmd
);
ERROR
(
"unknown MCE command (%
l
lu)
\n
"
,
cmd
);
ret
=
EINVAL
;
break
;
}
...
...
plat/rockchip/common/params_setup.c
View file @
ccd130ea
...
...
@@ -92,7 +92,7 @@ void params_early_setup(void *plat_param_from_bl2)
break
;
#endif
default:
ERROR
(
"not expected type found %ld
\n
"
,
ERROR
(
"not expected type found %
l
ld
\n
"
,
bl2_param
->
type
);
break
;
}
...
...
plat/rockchip/common/rockchip_sip_svc.c
View file @
ccd130ea
...
...
@@ -18,14 +18,14 @@ DEFINE_SVC_UUID(rk_sip_svc_uid,
0x8f
,
0x88
,
0xee
,
0x74
,
0x7b
,
0x72
);
#pragma weak rockchip_plat_sip_handler
uint
64
_t
rockchip_plat_sip_handler
(
uint32_t
smc_fid
,
uint64
_t
x1
,
uint64
_t
x2
,
uint64
_t
x3
,
uint64
_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64
_t
flags
)
uint
ptr
_t
rockchip_plat_sip_handler
(
uint32_t
smc_fid
,
u_register
_t
x1
,
u_register
_t
x2
,
u_register
_t
x3
,
u_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u_register
_t
flags
)
{
ERROR
(
"%s: unhandled SMC (0x%x)
\n
"
,
__func__
,
smc_fid
);
SMC_RET1
(
handle
,
SMC_UNK
);
...
...
@@ -34,14 +34,14 @@ uint64_t rockchip_plat_sip_handler(uint32_t smc_fid,
/*
* This function is responsible for handling all SiP calls from the NS world
*/
uint
64
_t
sip_smc_handler
(
uint32_t
smc_fid
,
uint64
_t
x1
,
uint64
_t
x2
,
uint64
_t
x3
,
uint64
_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64
_t
flags
)
uint
ptr
_t
sip_smc_handler
(
uint32_t
smc_fid
,
u_register
_t
x1
,
u_register
_t
x2
,
u_register
_t
x3
,
u_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u_register
_t
flags
)
{
uint32_t
ns
;
...
...
plat/rockchip/rk3368/plat_sip_calls.c
View file @
ccd130ea
...
...
@@ -10,14 +10,14 @@
#include <rockchip_sip_svc.h>
#include <runtime_svc.h>
uint
64
_t
rockchip_plat_sip_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
uint
ptr
_t
rockchip_plat_sip_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
ERROR
(
"%s: unhandled SMC (0x%x)
\n
"
,
__func__
,
smc_fid
);
SMC_RET1
(
handle
,
SMC_UNK
);
...
...
plat/rockchip/rk3399/plat_sip_calls.c
View file @
ccd130ea
...
...
@@ -47,14 +47,14 @@ uint32_t ddr_smc_handler(uint64_t arg0, uint64_t arg1,
return
0
;
}
uint
64
_t
rockchip_plat_sip_handler
(
uint32_t
smc_fid
,
uint64
_t
x1
,
uint64
_t
x2
,
uint64
_t
x3
,
uint64
_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64
_t
flags
)
uint
ptr
_t
rockchip_plat_sip_handler
(
uint32_t
smc_fid
,
u_register
_t
x1
,
u_register
_t
x2
,
u_register
_t
x3
,
u_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u_register
_t
flags
)
{
uint64_t
x5
,
x6
;
...
...
plat/xilinx/zynqmp/plat_startup.c
View file @
ccd130ea
...
...
@@ -166,12 +166,12 @@ void fsbl_atf_handover(entry_point_info_t *bl32, entry_point_info_t *bl33)
(
ATFHandoffParams
->
magic
[
1
]
!=
'L'
)
||
(
ATFHandoffParams
->
magic
[
2
]
!=
'N'
)
||
(
ATFHandoffParams
->
magic
[
3
]
!=
'X'
))
{
ERROR
(
"BL31: invalid ATF handoff structure at %lx
\n
"
,
ERROR
(
"BL31: invalid ATF handoff structure at %
l
lx
\n
"
,
atf_handoff_addr
);
panic
();
}
VERBOSE
(
"BL31: ATF handoff params at:0x%lx, entries:%u
\n
"
,
VERBOSE
(
"BL31: ATF handoff params at:0x%
l
lx, entries:%u
\n
"
,
atf_handoff_addr
,
ATFHandoffParams
->
num_entries
);
if
(
ATFHandoffParams
->
num_entries
>
FSBL_MAX_PARTITIONS
)
{
ERROR
(
"BL31: ATF handoff params: too many partitions (%u/%u)
\n
"
,
...
...
@@ -189,7 +189,7 @@ void fsbl_atf_handover(entry_point_info_t *bl32, entry_point_info_t *bl33)
int
target_estate
,
target_secure
;
int
target_cpu
,
target_endianness
,
target_el
;
VERBOSE
(
"BL31: %zd: entry:0x%lx, flags:0x%lx
\n
"
,
i
,
VERBOSE
(
"BL31: %zd: entry:0x%
l
lx, flags:0x%
l
lx
\n
"
,
i
,
ATFHandoffParams
->
partition
[
i
].
entry_point
,
ATFHandoffParams
->
partition
[
i
].
flags
);
...
...
@@ -250,7 +250,7 @@ void fsbl_atf_handover(entry_point_info_t *bl32, entry_point_info_t *bl33)
}
}
VERBOSE
(
"Setting up %s entry point to:%lx, el:%x
\n
"
,
VERBOSE
(
"Setting up %s entry point to:%
l
lx, el:%x
\n
"
,
target_secure
==
FSBL_FLAGS_SECURE
?
"BL32"
:
"BL33"
,
ATFHandoffParams
->
partition
[
i
].
entry_point
,
target_el
);
...
...
plat/xilinx/zynqmp/sip_svc_setup.c
View file @
ccd130ea
...
...
@@ -52,14 +52,14 @@ static int32_t sip_svc_setup(void)
* Handler for all SiP SMC calls. Handles standard SIP requests
* and calls PM SMC handler if the call is for a PM-API function.
*/
uint
64
_t
sip_svc_smc_handler
(
uint32_t
smc_fid
,
uint64
_t
x1
,
uint64
_t
x2
,
uint64
_t
x3
,
uint64
_t
x4
,
void
*
cookie
,
void
*
handle
,
uint64
_t
flags
)
uint
ptr
_t
sip_svc_smc_handler
(
uint32_t
smc_fid
,
u_register
_t
x1
,
u_register
_t
x2
,
u_register
_t
x3
,
u_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u_register
_t
flags
)
{
/* Let PM SMC handler deal with PM-related requests */
if
(
is_pm_fid
(
smc_fid
))
{
...
...
services/spd/opteed/opteed_main.c
View file @
ccd130ea
...
...
@@ -90,7 +90,7 @@ static uint64_t opteed_sel1_interrupt_handler(uint32_t id,
* (aarch32/aarch64) if not already known and initialises the context for entry
* into OPTEE for its initialization.
******************************************************************************/
int32_t
opteed_setup
(
void
)
static
int32_t
opteed_setup
(
void
)
{
entry_point_info_t
*
optee_ep_info
;
uint32_t
linear_id
;
...
...
@@ -187,14 +187,14 @@ static int32_t opteed_init(void)
* state. Lastly it will also return any information that OPTEE needs to do
* the work assigned to it.
******************************************************************************/
uint
64
_t
opteed_smc_handler
(
uint32_t
smc_fid
,
u
int64
_t
x1
,
u
int64
_t
x2
,
u
int64
_t
x3
,
u
int64
_t
x4
,
static
uint
ptr
_t
opteed_smc_handler
(
uint32_t
smc_fid
,
u
_register
_t
x1
,
u
_register
_t
x2
,
u
_register
_t
x3
,
u
_register
_t
x4
,
void
*
cookie
,
void
*
handle
,
u
int64
_t
flags
)
u
_register
_t
flags
)
{
cpu_context_t
*
ns_cpu_context
;
uint32_t
linear_id
=
plat_my_core_pos
();
...
...
Prev
1
2
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