bsp: a53: asm instructions have been modified to return proper value
This patch modifies asm instruction ldr and mfcp for a53 64bit mode to return 64bit values Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com> Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
parent
676a985bc1
commit
b239d6a0db
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
/* Memory Operations */
|
/* Memory Operations */
|
||||||
#define ldr(adr) ({u32 rval; \
|
#define ldr(adr) ({u64 rval; \
|
||||||
__asm__ __volatile__(\
|
__asm__ __volatile__(\
|
||||||
"ldr %0,[%1]"\
|
"ldr %0,[%1]"\
|
||||||
: "=r" (rval) : "r" (adr)\
|
: "=r" (rval) : "r" (adr)\
|
||||||
|
@ -151,7 +151,7 @@ extern "C" {
|
||||||
#define mtcptlbi(reg) asm("tlbi " #reg)
|
#define mtcptlbi(reg) asm("tlbi " #reg)
|
||||||
#define mtcpat(reg,val) asm("at " #reg ",%0" : : "r" (val))
|
#define mtcpat(reg,val) asm("at " #reg ",%0" : : "r" (val))
|
||||||
/* CP15 operations */
|
/* CP15 operations */
|
||||||
#define mfcp(reg) ({u32 rval;\
|
#define mfcp(reg) ({u64 rval;\
|
||||||
asm("mrs %0, " #reg : "=r" (rval));\
|
asm("mrs %0, " #reg : "=r" (rval));\
|
||||||
rval;\
|
rval;\
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue