aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_amd64.s
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-12-15 15:07:35 -0800
committerKen Thompson <ken@golang.org>2008-12-15 15:07:35 -0800
commit8f53bc06127bcb3f01ee2771f01277e10d2c81b2 (patch)
treeed5a9ede9044f26d04667a191f258e5a08786b1b /src/runtime/rt0_amd64.s
parentae5a475e20815a01d430f8fd412d317ef4a9c5b6 (diff)
downloadgo-8f53bc06127bcb3f01ee2771f01277e10d2c81b2.tar.xz
new convention, direction bit is
always left cleared. changed compiler generated memcpy and memset to assume CLD. R=r OCL=21215 CL=21215
Diffstat (limited to 'src/runtime/rt0_amd64.s')
-rw-r--r--src/runtime/rt0_amd64.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/rt0_amd64.s b/src/runtime/rt0_amd64.s
index 73e9251210..61a768f7e2 100644
--- a/src/runtime/rt0_amd64.s
+++ b/src/runtime/rt0_amd64.s
@@ -26,6 +26,7 @@ TEXT _rt0_amd64(SB),7,$-8
MOVQ AX, 0(R15) // 0(R15) is stack limit (w 104b guard)
MOVQ SP, 8(R15) // 8(R15) is base
+ CLD // convention is D is always left cleared
CALL check(SB)
MOVL 16(SP), AX // copy argc