progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / base / regdump-arm64.S
index 81c9f8e..1dacf2c 100644 (file)
@@ -56,10 +56,6 @@ FUNC(regdump_gpsave)
        stp     x2, x3, [sp, #16]
        stp     x4, x5, [sp, #32]
        stp     x6, x7, [sp, #48]
-       stp     x8, x9, [sp, #64]
-       stp     x10, x11, [sp, #80]
-       stp     x12, x13, [sp, #96]
-       stp     x14, x15, [sp, #112]
        stp     x18, x19, [sp, #144]
        stp     x20, x21, [sp, #160]
        stp     x22, x23, [sp, #176]
@@ -73,10 +69,6 @@ FUNC(regdump_gpsave)
        add     x0, x20, #REGDUMP_GPSIZE
        str     x0, [x20, #31*8]
 
-       // Capture the status flags.
-       mrs     x0, nzcv
-       str     x0, [x20, #8*REGIX_NZCV]
-
        // Set the return address as our PC.
        str     x30, [x20, #8*REGIX_PC]
 
@@ -127,7 +119,8 @@ FUNC(regdump_xtsave)
   endprologue
        // On entry, sp points to an extended save area, of size determined
        // by `regdump_gpsave' above.  On exit, the save area is filled in
-       // and a handy map placed at its base.
+       // and a handy map placed at its base, and x21 is left pointing
+       // pointing to the register map.
 
        // Set up the map/extended save area pointer.
        mov     x21, sp