mirror of
https://github.com/golang/go
synced 2024-11-23 18:10:04 -07:00
runtime: fix systemstack tracebacks on nacl/arm
For #11956. Change-Id: Ic9b57cafa197953cc7f435941e44d42b60b3ddf0 Reviewed-on: https://go-review.googlesource.com/13011 Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
b63fb59de8
commit
108ec5f75a
@ -215,6 +215,9 @@ switch:
|
||||
// save our state in g->sched. Pretend to
|
||||
// be systemstack_switch if the G stack is scanned.
|
||||
MOVW $runtime·systemstack_switch(SB), R3
|
||||
#ifdef GOOS_nacl
|
||||
ADD $4, R3, R3 // get past nacl-insert bic instruction
|
||||
#endif
|
||||
ADD $4, R3, R3 // get past push {lr}
|
||||
MOVW R3, (g_sched+gobuf_pc)(g)
|
||||
MOVW R13, (g_sched+gobuf_sp)(g)
|
||||
|
Loading…
Reference in New Issue
Block a user