diff src/hermes/x86_main.asm @ 2134:180fa05e98e2

Merged r3106:3107 from branches/SDL-1.2: Hermes PIC fixes.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 27 Jun 2007 10:17:35 +0000
parents eb4d9d99849b
children
line wrap: on
line diff
--- a/src/hermes/x86_main.asm	Thu Jun 21 18:50:00 2007 +0000
+++ b/src/hermes/x86_main.asm	Wed Jun 27 10:17:35 2007 +0000
@@ -14,9 +14,6 @@
 %include "common.inc"
 
 SDL_FUNC _ConvertX86
-SDL_FUNC _x86return
-	
-SDL_FUNC _Hermes_X86_CPU
 
 SECTION .text
 		
@@ -55,9 +52,8 @@
 y_loop:	
 	mov ecx,[ebp+4]
 
-	jmp [ebp+32]
+	call [ebp+32]
 
-_x86return:	
 	add esi,[ebp+12]
 	add edi,[ebp+28]
 	
@@ -74,49 +70,6 @@
 
 
 
-;; Hermes_X86_CPU returns the CPUID flags in eax
-	
-_Hermes_X86_CPU:
-	pushfd
-	pop eax
-	
-	mov ecx,eax
-	
-	xor eax,040000h
-	push eax
-	
-	popfd
-	pushfd
-
-	pop eax
-	xor eax,ecx
-	jz .L1			; Processor is 386
-
-	push ecx
-	popfd
-
-	mov eax,ecx
-	xor eax,200000h
-
-	push eax
-	popfd
-	pushfd
-
-	pop eax
-	xor eax,ecx
-	je .L1
-	
-	push ebx
-
-	mov eax,1
-	cpuid
-	mov eax,edx
-
-	pop ebx
-
-.L1:	
-	ret
-
 %ifidn __OUTPUT_FORMAT__,elf
 section .note.GNU-stack noalloc noexec nowrite progbits
 %endif