forked from KolibriOS/kolibrios
kernel: cleanup
git-svn-id: svn://kolibrios.org@3486 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1470,33 +1470,6 @@ proc set_mtrr stdcall, base:dword,size:dword,mem_type:dword
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
align 4
|
|
||||||
proc stall stdcall, delay:dword
|
|
||||||
push ecx
|
|
||||||
push edx
|
|
||||||
push ebx
|
|
||||||
push eax
|
|
||||||
|
|
||||||
mov eax, [delay]
|
|
||||||
mul [stall_mcs]
|
|
||||||
mov ebx, eax ;low
|
|
||||||
mov ecx, edx ;high
|
|
||||||
rdtsc
|
|
||||||
add ebx, eax
|
|
||||||
adc ecx, edx
|
|
||||||
@@:
|
|
||||||
rdtsc
|
|
||||||
sub eax, ebx
|
|
||||||
sbb edx, ecx
|
|
||||||
jb @B
|
|
||||||
|
|
||||||
pop eax
|
|
||||||
pop ebx
|
|
||||||
pop edx
|
|
||||||
pop ecx
|
|
||||||
ret
|
|
||||||
endp
|
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
proc create_ring_buffer stdcall, size:dword, flags:dword
|
proc create_ring_buffer stdcall, size:dword, flags:dword
|
||||||
locals
|
locals
|
||||||
|
@@ -392,7 +392,6 @@ default_io_map rd 1
|
|||||||
|
|
||||||
LFBSize rd 1
|
LFBSize rd 1
|
||||||
|
|
||||||
stall_mcs rd 1
|
|
||||||
current_slot rd 1
|
current_slot rd 1
|
||||||
|
|
||||||
; status
|
; status
|
||||||
|
@@ -842,15 +842,6 @@ end if
|
|||||||
shl eax, 2
|
shl eax, 2
|
||||||
mov dword [cpu_freq], eax
|
mov dword [cpu_freq], eax
|
||||||
mov dword [cpu_freq+4], edx
|
mov dword [cpu_freq+4], edx
|
||||||
mov ebx, 1000000
|
|
||||||
div ebx
|
|
||||||
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><> <20>ந<EFBFBD><E0AEA8><EFBFBD><EFBFBD><EFBFBD>⥫쭮<E2A5AB><ECADAE><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⭮<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
||||||
; ᮢ<><E1AEA2>襭<EFBFBD><E8A5AD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>筠, <20><> <20>⮡<EFBFBD> <20><>⪭<EFBFBD><E2AAAD><EFBFBD> <20>⥫<EEA1A8><E2A5AB>
|
|
||||||
; <20><>⨬<EFBFBD><E2A8AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>...
|
|
||||||
; mov edx, 2251799814
|
|
||||||
; mul edx
|
|
||||||
; shr edx, 19
|
|
||||||
mov [stall_mcs], edx
|
|
||||||
; PRINT CPU FREQUENCY
|
; PRINT CPU FREQUENCY
|
||||||
mov esi, boot_cpufreq
|
mov esi, boot_cpufreq
|
||||||
call boot_log
|
call boot_log
|
||||||
|
Reference in New Issue
Block a user