fibb_tsc: poprawka timestamp(), zabezpieczenie EBX/RBX
This commit is contained in:
@@ -6,8 +6,11 @@
|
||||
.text
|
||||
|
||||
timestamp:
|
||||
push %ebx
|
||||
|
||||
xor %eax, %eax
|
||||
cpuid
|
||||
rdtsc
|
||||
|
||||
pop %ebx
|
||||
ret
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
.text
|
||||
|
||||
timestamp:
|
||||
push %rbx
|
||||
|
||||
xor %rax, %rax
|
||||
cpuid
|
||||
rdtsc
|
||||
@@ -13,4 +15,5 @@ rdtsc
|
||||
shl $32, %rdx
|
||||
or %rdx, %rax
|
||||
|
||||
pop %rbx
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user