Skip to content

Commit

Permalink
fix(aarch32/sysregs): fix the assessment of the 64-bit register read
Browse files Browse the repository at this point in the history
Signed-off-by: Afonso Santos <[email protected]>
  • Loading branch information
AfonsoSantos96 committed Oct 15, 2024
1 parent 96a78ae commit a4f501f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/armv8/aarch32/inc/arch/subarch/sysregs.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{ \
unsigned long long _temp, _tempH; \
__asm__ volatile("mrrc p15, " #op1 ", %0, %1, " #crm "\n\r" : "=r"(_temp), "=r"(_tempH)); \
return ((_tempH << 32) | _temp); \
return ((_tempH << 32) | ((unsigned long)_temp)); \
} \
static inline void sysreg_##reg##_write(unsigned long long val) \
{ \
Expand Down

0 comments on commit a4f501f

Please sign in to comment.