_nios2_read_sp: fix register read
We were reading et and not sp. Change-Id: I064e8bebf2107f1900d31c213e7752e1aaead2ca Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e9083dfcd7
commit
0b98056350
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ static inline uint32_t _nios2_read_sp(void)
|
|||
{
|
||||
uint32_t sp;
|
||||
|
||||
__asm__("mov %0, et" : "=r" (sp));
|
||||
__asm__("mov %0, sp" : "=r" (sp));
|
||||
return sp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue