Rev 5984 | Rev 6242 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5984 | Rev 6240 | ||
---|---|---|---|
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: 5984 $ |
8 | $Revision: 6240 $ |
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 |
|
456 | acpi_locate: |
466 | jnz .done |
- | 467 | ||
- | 468 | mov ebx, ACPI_HI_RSDP_WINDOW_START |
|
- | 469 | mov edi, ACPI_HI_RSDP_WINDOW_END |
|
- | 470 | call .check |
|
- | 471 | .done: |
|
- | 472 | mov eax, ebx |
|
- | 473 | pop edi |
|
- | 474 | pop ebx |
|
457 | push ebx |
475 | ret |
458 | mov ebx, ACPI_HI_RSDP_WINDOW_START |
476 | |
459 | .check: |
477 | .check: |
460 | cmp [ebx], dword 0x20445352 |
478 | cmp [ebx], dword 0x20445352 |
461 | jne .next |
479 | jne .next |
Line 470... | Line 488... | ||
470 | inc edx |
488 | inc edx |
471 | loop .sum |
489 | loop .sum |
Line 472... | Line 490... | ||
472 | 490 | ||
473 | test al, al |
491 | test al, al |
474 | jnz .next |
- | |
475 | - | ||
476 | mov eax, ebx |
- | |
477 | pop ebx |
492 | jnz .next |
478 | ret |
493 | ret |
479 | .next: |
494 | .next: |
480 | add ebx, 16 |
495 | add ebx, 16 |
481 | cmp ebx, ACPI_HI_RSDP_WINDOW_END |
496 | cmp ebx, edi |
482 | jb .check |
- | |
483 | - | ||
484 | pop ebx |
497 | jb .check |
485 | xor eax, eax |
498 | xor ebx, ebx |
Line 486... | Line 499... | ||
486 | ret |
499 | ret |
487 | 500 | ||
488 | align 4 |
501 | align 4 |