From 8f53bc06127bcb3f01ee2771f01277e10d2c81b2 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Mon, 15 Dec 2008 15:07:35 -0800 Subject: new convention, direction bit is always left cleared. changed compiler generated memcpy and memset to assume CLD. R=r OCL=21215 CL=21215 --- src/runtime/rt0_amd64.s | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime') 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 -- cgit v1.3