Subversion Repositories Kolibri OS

Rev

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

Rev 5792 Rev 6244
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: 5792 $
8
$Revision: 6244 $
9
 
9
 
10
 
10
 
Line 453... Line 453...
453
ACPI_FADT_SIGN             equ 0x50434146
453
ACPI_FADT_SIGN             equ 0x50434146
Line 454... Line 454...
454
 
454
 
455
 
455
 
-
 
456
acpi_locate:
-
 
457
        push    ebx
-
 
458
        push    edi
-
 
459
 
-
 
460
        movzx   ebx, word [0x40E]
-
 
461
        shl     ebx, 4
-
 
462
        lea     ecx, [ebx+1024]
-
 
463
        call    .check
-
 
464
 
-
 
465
        test    ebx, ebx
-
 
466
        jz      @F
-
 
467
        jmp     .done
456
acpi_locate:
468
 
-
 
469
@@:
-
 
470
        mov     ebx, ACPI_HI_RSDP_WINDOW_START
-
 
471
        mov     edi, ACPI_HI_RSDP_WINDOW_END
-
 
472
        call    .check
-
 
473
.done:
-
 
474
        mov     eax, ebx
-
 
475
        pop     edi
-
 
476
        pop     ebx
457
        push    ebx
477
        ret
458
        mov     ebx, ACPI_HI_RSDP_WINDOW_START
478
 
459
.check:
479
.check:
460
        cmp     [ebx], dword 0x20445352
480
        cmp     [ebx], dword 0x20445352
461
        jne     .next
481
        jne     .next
Line 470... Line 490...
470
        inc     edx
490
        inc     edx
471
        loop    .sum
491
        loop    .sum
Line 472... Line 492...
472
 
492
 
473
        test    al, al
493
        test    al, al
474
        jnz     .next
-
 
475
 
-
 
476
        mov     eax, ebx
-
 
477
        pop     ebx
494
        jnz     .next
478
        ret
495
        ret
479
.next:
496
.next:
480
        add     ebx, 16
497
        add     ebx, 16
481
        cmp     ebx, ACPI_HI_RSDP_WINDOW_END
498
        cmp     ebx, edi
482
        jb      .check
-
 
483
 
-
 
484
        pop     ebx
499
        jb      .check
485
        xor     eax, eax
500
        xor     ebx, ebx
Line 486... Line 501...
486
        ret
501
        ret
487
 
502
 
488
align 4
503
align 4