arc: sys_io: fix sys_read32 return value from uint16_t to uint32_t
Fix sys_read32 return value from uint16_t to uint32_t. Current implementation causes read/modify/write of 32bit registers to fail on the high bits. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
parent
f38ba314ea
commit
f27e7bccf9
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr)
|
|||
|
||||
static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr)
|
||||
{
|
||||
uint16_t value;
|
||||
uint32_t value;
|
||||
|
||||
compiler_barrier();
|
||||
value = *(volatile uint32_t *)addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue