Don't use pusha and popa.

This commit is contained in:
mycroft 1994-10-09 09:19:29 +00:00
parent 621455a04a
commit ae6f1ba610

View File

@ -37,7 +37,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.84 1994/10/06 03:36:40 mycroft Exp $
* $Id: locore.s,v 1.85 1994/10/09 09:19:29 mycroft Exp $
*/
/*
@ -88,7 +88,13 @@
* These are used on interrupt or trap entry or exit.
*/
#define INTRENTRY \
pushal ; \
pushl %eax ; \
pushl %ecx ; \
pushl %edx ; \
pushl %ebx ; \
pushl %ebp ; \
pushl %esi ; \
pushl %edi ; \
pushl %ds ; \
pushl %es ; \
movl $KDSEL,%eax ; \
@ -99,7 +105,13 @@
#define INTRFASTEXIT \
popl %es ; \
popl %ds ; \
popal ; \
popl %edi ; \
popl %esi ; \
popl %ebp ; \
popl %ebx ; \
popl %edx ; \
popl %ecx ; \
popl %eax ; \
addl $8,%esp ; \
iret