Rev 5629 | Rev 5984 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5629 | Rev 5645 | ||
---|---|---|---|
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: 5629 $ |
8 | $Revision: 5645 $ |
9 | 9 | ||
10 | 10 | ||
Line 436... | Line 436... | ||
436 | acpi_madt_base rd 1 |
436 | acpi_madt_base rd 1 |
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 |
|
Line 441... | Line 442... | ||
441 | 442 | ||
442 | cpu_count rd 1 |
443 | cpu_count rd 1 |
443 | smpt rd 16 |
444 | smpt rd 16 |
Line 603... | Line 604... | ||
603 | HPET_CFG equ 0x010 |
604 | HPET_CFG equ 0x010 |
Line 604... | Line 605... | ||
604 | 605 | ||
605 | align 4 |
606 | align 4 |
606 | init_hpet: |
607 | init_hpet: |
- | 608 | mov ebx, [hpet_base-OS_BASE] |
|
- | 609 | test ebx, ebx |
|
- | 610 | jz @F |
|
- | 611 | ||
- | 612 | mov eax, [ebx] |
|
- | 613 | and ah, 0x1F |
|
- | 614 | inc ah |
|
- | 615 | movzx eax, ah |
|
Line 607... | Line 616... | ||
607 | mov ebx, [hpet_base-OS_BASE] |
616 | mov [hpet_timers-OS_BASE], eax |
608 | 617 | ||
609 | mov eax, [ebx+HPET_PERIOD] |
618 | mov eax, [ebx+HPET_PERIOD] |
610 | mov edx, 0x431BDE83 |
619 | mov edx, 0x431BDE83 |
Line 620... | Line 629... | ||
620 | mov [ebx+0xF0], ecx ;reset counter |
629 | mov [ebx+0xF0], ecx ;reset counter |
621 | mov [ebx+0xF4], ecx |
630 | mov [ebx+0xF4], ecx |
Line 622... | Line 631... | ||
622 | 631 | ||
623 | or eax, HPET_CFG_ENABLE |
632 | or eax, HPET_CFG_ENABLE |
- | 633 | mov [ebx+HPET_CFG], eax ;and start again |
|
624 | mov [ebx+HPET_CFG], eax ;and start again |
634 | @@: |