Kernel: Good news, everyone! Now kernel starts at 0.25 seconds faster.

git-svn-id: svn://kolibrios.org@5792 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2015-09-04 15:20:25 +00:00
parent a410b6abe3
commit e2da0771d6
2 changed files with 34 additions and 12 deletions

View File

@@ -439,7 +439,7 @@ acpi_hpet_base rd 1
hpet_base rd 1
hpet_period rd 1
hpet_timers rd 1
hpet_tsc_start rd 2
cpu_count rd 1
smpt rd 16
endg
@@ -613,7 +613,7 @@ align 4
init_hpet:
mov ebx, [hpet_base-OS_BASE]
test ebx, ebx
jz @F
jz .done
mov eax, [ebx]
and ah, 0x1F
@@ -649,7 +649,12 @@ init_hpet:
or esi, HPET_CFG_ENABLE
mov [ebx+HPET_CFG], esi ;and start again
@@:
.done:
rdtsc
mov [hpet_tsc_start-OS_BASE], eax
mov [hpet_tsc_start+4-OS_BASE], edx
ret