Browse Source

use pusha and popa instructions, and on the proper place

ceriel 35 years ago
parent
commit
0fe5503e58
2 changed files with 5 additions and 16 deletions
  1. 0 1
      mach/i386/libem/LIST
  2. 5 15
      mach/i386/libem/error.s

+ 0 - 1
mach/i386/libem/LIST

@@ -29,7 +29,6 @@ ngi.s
 nop.s
 print.s
 rck.s
-return.s
 rmi.s
 rmu.s
 rol.s

+ 5 - 15
mach/i386/libem/error.s

@@ -8,13 +8,6 @@
 	! May only be called with error no's <16
 .sect .text
 .error:
-	push ebp
-	push esi
-	push edi
-	push edx
-	push ecx
-	push ebx
-	push eax
 	mov  ecx,eax
 	mov  ebx,1
 	sal  ebx,cl
@@ -24,19 +17,16 @@
 	jne  2f
 	call    .trp
 2:
-	pop  eax
-	pop  ebx
-	pop  ecx
-	pop  edx
-	pop  edi
-	pop  esi
-	pop  ebp
 	ret
 
 .Xtrp:
+	pusha
 	cmp	eax,16
 	jge	1f
 	call	.error
+	popa
 	ret
 1:
-	jmp	.trp
+	call	.trp
+	popa
+	ret