summaryrefslogtreecommitdiff
path: root/src/runtime/memclr_386.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-09 17:12:05 -0400
committerRuss Cox <rsc@golang.org>2014-09-09 17:12:05 -0400
commit9d7bcdf191f29e6c8a993b4d7201bdc74a52d1ec (patch)
treedd6c5d4eb60d6c18ad2cc516990a8c319b70e01d /src/runtime/memclr_386.s
parentd26dbee4ff35cf9e29ac401b18d80cccca37077a (diff)
downloadgo-9d7bcdf191f29e6c8a993b4d7201bdc74a52d1ec.tar.gz
runtime: fix windows/386 build
The difference between the old and the new (from earlier) code is that we set stackguard = stack.lo + StackGuard, while the old code set stackguard = stack.lo. That 512 bytes appears to be the difference between the profileloop function running and not running. We don't know how big the system stack is, but it is likely MUCH bigger than 4k. Give Go/C 8k. TBR=iant CC=golang-codereviews https://codereview.appspot.com/140440044
Diffstat (limited to 'src/runtime/memclr_386.s')
-rw-r--r--src/runtime/memclr_386.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/memclr_386.s b/src/runtime/memclr_386.s
index 8b163923e..1520aea2e 100644
--- a/src/runtime/memclr_386.s
+++ b/src/runtime/memclr_386.s
@@ -6,6 +6,8 @@
#include "textflag.h"
+// NOTE: Windows externalthreadhandler expects memclr to preserve DX.
+
// void runtime·memclr(void*, uintptr)
TEXT runtime·memclr(SB), NOSPLIT, $0-8
MOVL ptr+0(FP), DI