]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix plan9/amd64 build?
authorRuss Cox <rsc@golang.org>
Tue, 9 Sep 2014 21:16:31 +0000 (17:16 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 9 Sep 2014 21:16:31 +0000 (17:16 -0400)
The only thing I can see that is really Plan 9-specific
is that the stack pointer used for signal handling used
to have more mapped memory above it.
Specifically it used to have at most 88 bytes (StackTop),
so change the allocation of a 40-byte frame to a 128-byte frame.

No idea if this will work, but worth a try.

Note that "fix" here means get it back to timing out
instead of crashing.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/142840043

src/runtime/sys_plan9_amd64.s

index d0586a5ae9da2fabf090a173dd7a268ba96c9ece..36d2d97e20c6fcde47eda803e01fc29719ea5f6d 100644 (file)
@@ -194,7 +194,7 @@ TEXT runtimeĀ·sigtramp(SB),NOSPLIT,$0
        MOVQ    BP, SP
 
        // make room for args and g
-       SUBQ    $40, SP
+       SUBQ    $128, SP
 
        // save g
        MOVQ    g(AX), BP