blob: d7794881ddebd75401e2a4052990953bbfa05831 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Fixes from the PaX team to eliminate TEXTRELs
--- src/hermes/x86_main.asm
+++ src/hermes/x86_main.asm
@@ -17,11 +17,6 @@ GLOBAL _x86return
GLOBAL _Hermes_X86_CPU
-SECTION .data
-
-cpu_flags dd 0
-
-
SECTION .text
;; _ConvertX86:
@@ -110,16 +105,13 @@ _Hermes_X86_CPU:
xor eax,ecx
je .L1
- pusha
-
+ push ebx
+
mov eax,1
cpuid
+ mov eax,edx
- mov [cpu_flags],edx
-
- popa
-
- mov eax,[cpu_flags]
+ pop ebx
.L1:
ret
|