Subversion Repositories Kolibri OS

Rev

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

Rev 7126 Rev 7130
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: 7126 $
8
$Revision: 7130 $
9
 
9
 
10
 
10
 
Line 455... Line 455...
455
 
455
 
456
acpi_locate:
456
acpi_locate:
457
        push    ebx
457
        push    ebx
Line -... Line 458...
-
 
458
        push    edi
-
 
459
 
-
 
460
if defined UEFI
-
 
461
        ; UEFI loader knows where RSDP is
-
 
462
        mov     ebx, [BOOT_ACPI_RSDP]
-
 
463
        test    ebx, ebx
-
 
464
        jz      .done
458
        push    edi
465
        call    .check
459
 
466
else
460
        movzx   ebx, word [0x40E]
467
        movzx   ebx, word [0x40E]
461
        shl     ebx, 4
468
        shl     ebx, 4
Line 468... Line 475...
468
 
475
 
469
@@:
476
@@:
470
        mov     ebx, ACPI_HI_RSDP_WINDOW_START
477
        mov     ebx, ACPI_HI_RSDP_WINDOW_START
471
        mov     edi, ACPI_HI_RSDP_WINDOW_END
478
        mov     edi, ACPI_HI_RSDP_WINDOW_END
-
 
479
        call    .check
472
        call    .check
480
end if
473
.done:
481
.done:
474
        mov     eax, ebx
482
        mov     eax, ebx
475
        pop     edi
483
        pop     edi
476
        pop     ebx
484
        pop     ebx