]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: update arm comments now register m is gone
authorDavid Crawshaw <david.crawshaw@zentus.com>
Mon, 30 Jun 2014 23:10:41 +0000 (19:10 -0400)
committerDavid Crawshaw <david.crawshaw@zentus.com>
Mon, 30 Jun 2014 23:10:41 +0000 (19:10 -0400)
LGTM=minux
R=golang-codereviews, minux
CC=golang-codereviews
https://golang.org/cl/109220046

src/pkg/runtime/asm_arm.s
src/pkg/runtime/cgo/gcc_arm.S

index 7564e96b1ec8d6f7713cd9a852815577a6c9b9f8..4f029c850afcb7677383bb8c510ee3810733ed9f 100644 (file)
@@ -125,7 +125,7 @@ TEXT runtime·gogo(SB), NOSPLIT, $-4-4
        MOVW    gobuf_g(R1), g
        MOVW    0(g), R2                // make sure g != nil
        MOVB    runtime·iscgo(SB), R2
-       CMP     $0, R2 // if in Cgo, we have to save g and m
+       CMP     $0, R2 // if in Cgo, we have to save g
        BL.NE   runtime·save_g(SB) // this call will clobber R0
        MOVW    gobuf_sp(R1), SP        // restore SP
        MOVW    gobuf_lr(R1), LR
@@ -688,10 +688,10 @@ _eqnext:
        MOVB    R7, v+16(FP)
        RET
 
-// We have to resort to TLS variable to save g(R10) and
-// m(R9). One reason is that external code might trigger
+// We have to resort to TLS variable to save g(R10).
+// One reason is that external code might trigger
 // SIGSEGV, and our runtime.sigtramp don't even know we
-// are in external code, and will continue to use R10/R9,
+// are in external code, and will continue to use R10,
 // this might as well result in another SIGSEGV.
 // Note: all three functions will clobber R0, and the last
 // two can be called from 5c ABI code.
@@ -724,7 +724,7 @@ TEXT runtime·load_g(SB),NOSPLIT,$0
        MOVW    0(R0), g
        RET
 
-// void setg_gcc(M*, G*); set m and g called from gcc.
+// void setg_gcc(G*); set g called from gcc.
 TEXT setg_gcc<>(SB),NOSPLIT,$0
        MOVW    R0, g
        B               runtime·save_g(SB)
index 336f8ca62cf4a3828131cd5024c794dc93d8e6a6..2e4b3528ba29d62179f75739933c8e724a4248bb 100644 (file)
@@ -31,7 +31,7 @@ EXT(crosscall_arm1):
        mov r4, r0
        mov r5, r1
        mov r0, r2
-       blx r5 // setmg(g) 
+       blx r5 // setg(g) 
        blx r4 // fn() 
        pop {r4, r5, r6, r7, r8, r9, r10, r11, ip, pc}