kernel: export acpi root table pointer

git-svn-id: svn://kolibrios.org@6590 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2016-10-13 18:03:56 +00:00
parent 59d92b4ec3
commit d0092175df
3 changed files with 7 additions and 0 deletions

View File

@ -484,3 +484,7 @@ get_clock_ns:
mul edx mul edx
ret ret
align 4
acpi_get_root_ptr:
mov eax, [acpi_rsdp]
ret

View File

@ -129,6 +129,8 @@ __exports:
net_buff_free, 'NetFree', \ net_buff_free, 'NetFree', \
\ \
get_pcidev_list, 'GetPCIList', \ get_pcidev_list, 'GetPCIList', \
\
acpi_get_root_ptr, 'AcpiGetRootPtr', \
\ \
0, 'LFBAddress' ; must be the last one 0, 'LFBAddress' ; must be the last one
load kernel_exports_count dword from __exports + 24 load kernel_exports_count dword from __exports + 24

View File

@ -536,6 +536,7 @@ check_acpi:
test eax, eax test eax, eax
jz .done jz .done
mov [acpi_rsdp-OS_BASE], eax
mov ecx, [eax+16] mov ecx, [eax+16]
mov edx, ACPI_FADT_SIGN mov edx, ACPI_FADT_SIGN
mov [acpi_rsdt_base-OS_BASE], ecx mov [acpi_rsdt_base-OS_BASE], ecx