Don't use pusha and popa.
This commit is contained in:
parent
621455a04a
commit
ae6f1ba610
@ -37,7 +37,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
* 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.
|
* These are used on interrupt or trap entry or exit.
|
||||||
*/
|
*/
|
||||||
#define INTRENTRY \
|
#define INTRENTRY \
|
||||||
pushal ; \
|
pushl %eax ; \
|
||||||
|
pushl %ecx ; \
|
||||||
|
pushl %edx ; \
|
||||||
|
pushl %ebx ; \
|
||||||
|
pushl %ebp ; \
|
||||||
|
pushl %esi ; \
|
||||||
|
pushl %edi ; \
|
||||||
pushl %ds ; \
|
pushl %ds ; \
|
||||||
pushl %es ; \
|
pushl %es ; \
|
||||||
movl $KDSEL,%eax ; \
|
movl $KDSEL,%eax ; \
|
||||||
@ -99,7 +105,13 @@
|
|||||||
#define INTRFASTEXIT \
|
#define INTRFASTEXIT \
|
||||||
popl %es ; \
|
popl %es ; \
|
||||||
popl %ds ; \
|
popl %ds ; \
|
||||||
popal ; \
|
popl %edi ; \
|
||||||
|
popl %esi ; \
|
||||||
|
popl %ebp ; \
|
||||||
|
popl %ebx ; \
|
||||||
|
popl %edx ; \
|
||||||
|
popl %ecx ; \
|
||||||
|
popl %eax ; \
|
||||||
addl $8,%esp ; \
|
addl $8,%esp ; \
|
||||||
iret
|
iret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user