forked from KolibriOS/kolibrios
Kernel: Initial HPET support
git-svn-id: svn://kolibrios.org@5787 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -283,6 +283,7 @@ B32:
|
||||
bts [cpu_caps-OS_BASE], CAPS_TSC ;force use rdtsc
|
||||
|
||||
call check_acpi
|
||||
call init_hpet
|
||||
call init_BIOS32
|
||||
; MEMORY MODEL
|
||||
call mem_test
|
||||
@@ -697,6 +698,23 @@ setvideomode:
|
||||
@@:
|
||||
mov [clipboard_main_list], eax
|
||||
|
||||
mov eax, [hpet_base]
|
||||
test eax, eax
|
||||
jz @F
|
||||
DEBUGF 1, "K : HPET base %x\n", eax
|
||||
mov eax, [hpet_period]
|
||||
DEBUGF 1, "K : HPET period %d\n", eax
|
||||
mov eax, [hpet_timers]
|
||||
DEBUGF 1, "K : HPET timers %d\n", eax
|
||||
|
||||
mov eax, [hpet_base]
|
||||
stdcall map_io_mem, [hpet_base], 1024, PG_GLOBAL+PAT_UC+PG_SWR
|
||||
mov [hpet_base], eax
|
||||
|
||||
mov eax, [eax]
|
||||
DEBUGF 1, "K : HPET caps %x\n", eax
|
||||
|
||||
@@:
|
||||
; SET UP OS TASK
|
||||
|
||||
mov esi, boot_setostask
|
||||
|
Reference in New Issue
Block a user