From d0092175df5278914938a69ab6851997a6a9b236 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Thu, 13 Oct 2016 18:03:56 +0000 Subject: [PATCH] kernel: export acpi root table pointer git-svn-id: svn://kolibrios.org@6590 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/apic.inc | 4 ++++ kernel/trunk/core/exports.inc | 2 ++ kernel/trunk/init.inc | 1 + 3 files changed, 7 insertions(+) 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