fibb_tsc: poprawka timestamp(), zabezpieczenie EBX/RBX

This commit is contained in:
2026-05-20 15:51:26 +02:00
parent 9a28acb0c9
commit c1afe154bb
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -6,8 +6,11 @@
.text .text
timestamp: timestamp:
push %ebx
xor %eax, %eax xor %eax, %eax
cpuid cpuid
rdtsc rdtsc
pop %ebx
ret ret
+3
View File
@@ -6,6 +6,8 @@
.text .text
timestamp: timestamp:
push %rbx
xor %rax, %rax xor %rax, %rax
cpuid cpuid
rdtsc rdtsc
@@ -13,4 +15,5 @@ rdtsc
shl $32, %rdx shl $32, %rdx
or %rdx, %rax or %rdx, %rax
pop %rbx
ret ret