Subversion Repositories Kolibri OS

Rev

Rev 5791 | Rev 6244 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5791 Rev 5792
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 5791 $
8
$Revision: 5792 $
9
 
9
 
10
 
10
 
Line 437... Line 437...
437
acpi_ioapic_base  rd 1
437
acpi_ioapic_base  rd 1
438
acpi_hpet_base    rd 1
438
acpi_hpet_base    rd 1
439
hpet_base         rd 1
439
hpet_base         rd 1
440
hpet_period       rd 1
440
hpet_period       rd 1
441
hpet_timers       rd 1
441
hpet_timers       rd 1
442
 
-
 
-
 
442
hpet_tsc_start    rd 2
443
cpu_count         rd 1
443
cpu_count         rd 1
444
smpt              rd 16
444
smpt              rd 16
445
endg
445
endg
Line 446... Line 446...
446
 
446
 
Line 611... Line 611...
611
 
611
 
612
align 4
612
align 4
613
init_hpet:
613
init_hpet:
614
        mov     ebx, [hpet_base-OS_BASE]
614
        mov     ebx, [hpet_base-OS_BASE]
615
        test    ebx, ebx
615
        test    ebx, ebx
Line 616... Line 616...
616
        jz      @F
616
        jz      .done
617
 
617
 
618
        mov     eax, [ebx]
618
        mov     eax, [ebx]
619
        and     ah, 0x1F
619
        and     ah, 0x1F
Line 647... Line 647...
647
        mov     [ebx+HPET_COUNTER], ecx         ;reset main counter
647
        mov     [ebx+HPET_COUNTER], ecx         ;reset main counter
648
        mov     [ebx+HPET_COUNTER+4], ecx
648
        mov     [ebx+HPET_COUNTER+4], ecx
Line 649... Line 649...
649
 
649
 
650
        or      esi, HPET_CFG_ENABLE
650
        or      esi, HPET_CFG_ENABLE
-
 
651
        mov     [ebx+HPET_CFG], esi             ;and start again
651
        mov     [ebx+HPET_CFG], esi             ;and start again
652
 
-
 
653
.done:
-
 
654
        rdtsc
-
 
655
        mov     [hpet_tsc_start-OS_BASE], eax
-
 
656
        mov     [hpet_tsc_start+4-OS_BASE], edx
652
@@:
657