Commit 5273868f authored by Russ Cox's avatar Russ Cox

32-bit stack switching bug fix

R=ken
OCL=29412
CL=29412
parent 51ddddc6
...@@ -135,7 +135,7 @@ TEXT setspgoto(SB), 7, $0 ...@@ -135,7 +135,7 @@ TEXT setspgoto(SB), 7, $0
MOVL AX, SP MOVL AX, SP
PUSHL CX PUSHL CX
JMP BX JMP BX
POPL AX POPL AX // not reached
RET RET
// bool cas(int32 *val, int32 old, int32 new) // bool cas(int32 *val, int32 old, int32 new)
......
...@@ -705,7 +705,7 @@ newstack(void) ...@@ -705,7 +705,7 @@ newstack(void)
#pragma textflag 7 #pragma textflag 7
void void
sys·morestack(uint64 u) sys·morestack(uintptr u)
{ {
while(g == m->g0) { while(g == m->g0) {
// very bad news // very bad news
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment