Update incorrect comments.
authorChris Hanson <org/chris-hanson/cph>
Tue, 17 Sep 2019 06:16:14 +0000 (23:16 -0700)
committerChris Hanson <org/chris-hanson/cph>
Tue, 17 Sep 2019 06:16:14 +0000 (23:16 -0700)
src/microcode/cmpauxmd/x86-64.m4

index 0b2ee76fb4e5f26bbff63d17a08d6f3aa8dc7612..0038a6385e929f9009bea05ec9be232b90442355 100644 (file)
@@ -425,7 +425,7 @@ define_c_label(C_to_interface)
        OP(push,q)      REG(r15)
        OP(push,q)      IMM(0)                          # Align stack
        OP(mov,q)       TW(REG(rdi),REG(rcx))           # rcx := entry ptr
-       OP(mov,q)       TW(REG(rsi),REG(rdx))           # rcx := entry pc
+       OP(mov,q)       TW(REG(rsi),REG(rdx))           # rdx := entry pc
                                                        # Preserve frame ptr
        OP(mov,q)       TW(REG(rbp),ABS(EVR(C_Frame_Pointer)))
                                                        # Preserve stack ptr
@@ -503,7 +503,7 @@ define_debugging_label(scheme_to_interface_return)
        jmp             IJMP(REG(rax))          # Invoke handler
 
 define_c_label(interface_to_scheme)
-       # rax = interface_to_scheme
+       # rax = interface_to_scheme [??? -- not referred to]
        # rcx = compiled entry/return address, needed by compiled code
        # rdx = compiled PC, or interface_to_scheme_return
 ifdef(`WIN32',                                         # Register block = %rsi