fix: race condition and partial state issue on injecting signal context into user...
[lunaix-os.git] / lunaix-os / kernel / asm / x86 / interrupt.S
index 7c4067343b054223cd75a7aa19b1bfe3149b9c55..dc5c4c395ee750abfb379707cd5c26db5b3193bf 100644 (file)
     soft_iret:
         movl %eax, %esp
 
+#ifdef __ASM_INTR_DIAGNOSIS
+        movl %eax, (debug_resv + 8)
+        movl 56(%esp), %eax
+        movl %eax, (debug_resv + 4)
+#endif
+
         popl %eax
         popl %ebx
         popl %ecx