diff --git a/include/arch/x86/asm-macros.h b/include/arch/x86/asm-macros.h index dd7744a8..24cf2702 100644 --- a/include/arch/x86/asm-macros.h +++ b/include/arch/x86/asm-macros.h @@ -65,6 +65,26 @@ rep outsb .endm +.macro SAVE_REGS_32 + push %eax + push %ebx + push %ecx + push %edx + push %esi + push %edi + push %ebp +.endm + +.macro RESTORE_REGS_32 + pop %ebp + pop %edi + pop %esi + pop %edx + pop %ecx + pop %ebx + pop %eax +.endm + .macro SAVE_REGS push %_ASM_AX push %_ASM_BX