Skip to content

Commit 7b725d6

Browse files
author
Ian Seyler
committed
TSC in test
1 parent 27af781 commit 7b725d6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/monitor.asm

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,16 @@ poll_nonewline:
255255
jmp poll
256256

257257
testzone:
258-
xor ecx, ecx
259-
div ecx
258+
mov ecx, TSC
259+
call [b_system]
260+
mov rbx, rax
261+
mov ecx, TSC
262+
call [b_system]
263+
sub rax, rbx
264+
mov ecx, DUMP_RAX
265+
call [b_system]
266+
; xor ecx, ecx
267+
; div ecx
260268
; xor eax, eax ; Zero RAX for the packet counter
261269
; mov [0x1e8000], rax ; Store it to a temp location
262270
;tst_loop:

0 commit comments

Comments
 (0)