diff --git a/kernel/trunk/core/apic.inc b/kernel/trunk/core/apic.inc index 0f215b3afe..22fe54e1b9 100644 --- a/kernel/trunk/core/apic.inc +++ b/kernel/trunk/core/apic.inc @@ -484,3 +484,7 @@ get_clock_ns: mul edx ret +align 4 +acpi_get_root_ptr: + mov eax, [acpi_rsdp] + ret diff --git a/kernel/trunk/core/exports.inc b/kernel/trunk/core/exports.inc index c348556298..3e33e307fb 100644 --- a/kernel/trunk/core/exports.inc +++ b/kernel/trunk/core/exports.inc @@ -129,6 +129,8 @@ __exports: net_buff_free, 'NetFree', \ \ get_pcidev_list, 'GetPCIList', \ +\ + acpi_get_root_ptr, 'AcpiGetRootPtr', \ \ 0, 'LFBAddress' ; must be the last one load kernel_exports_count dword from __exports + 24 diff --git a/kernel/trunk/init.inc b/kernel/trunk/init.inc index 5ef7adde24..7ac92dfcc7 100644 --- a/kernel/trunk/init.inc +++ b/kernel/trunk/init.inc @@ -536,6 +536,7 @@ check_acpi: test eax, eax jz .done + mov [acpi_rsdp-OS_BASE], eax mov ecx, [eax+16] mov edx, ACPI_FADT_SIGN mov [acpi_rsdt_base-OS_BASE], ecx