35,7 → 35,7 |
|
mov ebx, 0x100000 |
align 32 |
.nxt: ;mcall 19 ; ôóíêöèÿ ïóñòûøêà |
.nxt: mcall 19 ; ôóíêöèÿ ïóñòûøêà |
; ïîðòÿòñÿ ecx, edx |
dec ebx |
jnz .nxt |
43,8 → 43,11 |
xor eax, eax |
cpuid |
rdtsc |
sub eax, [old_tsc] |
sbb edx, [old_tsc + 4] |
cmp eax, [old_tsc] |
jnb @f |
dec edx |
@@: sub eax, [old_tsc] |
sub edx, [old_tsc + 4] |
debug_print_hex edx |
debug_print_hex eax |
.end: print ' <- Fast call (SYSENTER)' |
71,7 → 74,7 |
|
mov ebx, 0x100000 |
align 32 |
.nxt: ;mcall 19 ; ôóíêöèÿ ïóñòûøêà |
.nxt: mcall 19 ; ôóíêöèÿ ïóñòûøêà |
|
dec ebx |
jnz .nxt |
79,14 → 82,16 |
xor eax, eax |
cpuid |
rdtsc |
|
sub eax, [old_tsc] |
sbb edx, [old_tsc + 4] |
cmp eax, [old_tsc] |
jnb @f |
dec edx |
@@: sub eax, [old_tsc] |
sub edx, [old_tsc + 4] |
debug_print_hex edx |
debug_print_hex eax |
.end: print ' <- Fast call (SYSCALL)' |
;---------------------------------------------- |
; ÷åðåç øëþç ïðåðûâàíè |
; ÷åðåç øëþç ïðåðûâàíèÿ |
__CPU_type equ p5 |
xor eax, eax |
cpuid |
96,7 → 101,7 |
|
test3: mov ebx, 0x100000 |
align 32 |
.nxt: ;mcall 19 ; ôóíêöèÿ ïóñòûøêà |
.nxt: mcall 19 ; ôóíêöèÿ ïóñòûøêà |
dec ebx |
jnz .nxt |
|
103,9 → 108,11 |
xor eax, eax |
cpuid |
rdtsc |
|
sub eax, [old_tsc] |
sbb edx, [old_tsc + 4] |
cmp eax, [old_tsc] |
jnb @f |
dec edx |
@@: sub eax, [old_tsc] |
sub edx, [old_tsc + 4] |
debug_print_hex edx |
debug_print_hex eax |
print ' <- Interrupt' |