Subversion Repositories Kolibri OS

Rev

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

Rev 2439 Rev 2441
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. 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: 2439 $
8
$Revision: 2441 $
9
 
9
 
10
 
10
 
Line 520... Line 520...
520
        pop     esi
520
        pop     esi
521
        pop     ebx
521
        pop     ebx
522
        ret
522
        ret
Line 523... Line 523...
523
 
523
 
524
align 4
-
 
525
madt_find:
-
 
526
 
-
 
527
 
-
 
528
 
-
 
529
 
-
 
530
 
-
 
531
        ret
-
 
532
 
-
 
533
align 4
524
align 4
Line 534... Line 525...
534
check_acpi:
525
check_acpi:
535
 
526
 
536
        call    acpi_locate
527
        call    acpi_locate
Line 542... Line 533...
542
        mov     [acpi_rsdt_base-OS_BASE], ecx
533
        mov     [acpi_rsdt_base-OS_BASE], ecx
543
        call    rsdt_find
534
        call    rsdt_find
544
        test    eax, eax
535
        test    eax, eax
545
        jz      .done
536
        jz      .done
Line 546... Line 537...
546
 
537
 
Line 547... Line 538...
547
        xchg bx, bx
538
;        xchg bx, bx
548
 
539
 
549
        mov     [acpi_madt_base-OS_BASE], eax
540
        mov     [acpi_madt_base-OS_BASE], eax
Line 550... Line 541...
550
        mov     ecx, [eax+36]
541
        mov     ecx, [eax+36]
551
        mov     [acpi_lapic_base-OS_BASE], ecx
542
        mov     [acpi_lapic_base-OS_BASE], ecx
552
 
543
 
Line 553... Line 544...
553
        mov     edi, smpt-OS_BASE
544
        mov     edi, smpt-OS_BASE
554
        mov     ebx, [ecx+0x20]
545
        mov     ebx, [ecx+0x20]
555
        shr     ebx, 24              ; read APIC ID
546
        shr     ebx, 24              ; read APIC ID
Line 556... Line 547...
556
 
547
 
557
        mov     [edi], ebx           ; bootstrap always first
548
        mov     [edi], ebx           ; bootstrap always first
558
        inc     [cpu_count]
549
        inc     [cpu_count-OS_BASE]