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:
Kinjal Pravinbhai Patel 2015-10-16 18:06:37 +05:30 committed by Nava kishore Manne
parent 676a985bc1
commit b239d6a0db

View file

@ -110,7 +110,7 @@ extern "C" {
/* Memory Operations */
#define ldr(adr) ({u32 rval; \
#define ldr(adr) ({u64 rval; \
__asm__ __volatile__(\
"ldr %0,[%1]"\
: "=r" (rval) : "r" (adr)\
@ -151,7 +151,7 @@ extern "C" {
#define mtcptlbi(reg) asm("tlbi " #reg)
#define mtcpat(reg,val) asm("at " #reg ",%0" : : "r" (val))
/* CP15 operations */
#define mfcp(reg) ({u32 rval;\
#define mfcp(reg) ({u64 rval;\
asm("mrs %0, " #reg : "=r" (rval));\
rval;\
})