nios2: properly set NANO_ESF pointer for _Fault()

We want to pass along the stack pointer, not dereference it.

Change-Id: I554eff316bffe50654942746e7960b561abb413b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-28 09:51:55 -07:00 committed by Inaky Perez-Gonzalez
parent a0464b802b
commit 2de74a93ea

View file

@ -194,7 +194,7 @@ SECTION_FUNC(exception.entry, _exception_enter_fault)
* C domain
*/
ldw r4, 0(sp)
mov r4, sp
call _Fault
jmpi _exception_exit