Rev 8117 | Rev 9715 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8117 | Rev 8120 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2020. 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: 8117 $ |
8 | $Revision: 8120 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | MAX_IOAPICS = 2 |
10 | MAX_IOAPICS = 2 |
Line 153... | Line 153... | ||
153 | 153 | ||
154 | ;=========================================================== |
154 | ;=========================================================== |
155 | align 4 |
155 | align 4 |
Line 156... | Line 156... | ||
156 | LAPIC_init: |
156 | LAPIC_init: |
- | 157 | ||
157 | 158 | mov eax, [LAPIC_BASE] |
|
158 | cmp [LAPIC_BASE], 0 |
- | |
159 | jne .done |
159 | test eax, eax |
160 | 160 | jnz @f |
|
- | 161 | stdcall map_io_mem, [acpi_lapic_base], 0x1000, PG_GLOBAL+PG_NOCACHE+PG_SWR |
|
161 | stdcall map_io_mem, [acpi_lapic_base], 0x1000, PG_GLOBAL+PG_NOCACHE+PG_SWR |
162 | mov [LAPIC_BASE], eax |
Line 162... | Line 163... | ||
162 | mov [LAPIC_BASE], eax |
163 | @@: |
163 | mov esi, eax |
164 | mov esi, eax |
164 | 165 |