From 54ca9e0cfde9f8b6315faa3cc460eceffaad3774 Mon Sep 17 00:00:00 2001 From: schulz Date: Thu, 23 Mar 2017 13:07:08 +0000 Subject: [PATCH] move DEFINESET() to another file, otherwise gcc4.6 tries to optimize to much and generates unusable code (it ignores the "weak" attribute and assumes the set is empty (value {0, 0}). This fixes the build with gcc4.6 compiler and, as implication, fixes 64-bit SMP nightly build :) git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54249 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/all-pc/kernel/acpi.c | 2 +- arch/all-pc/kernel/acpi_set.c | 3 +++ arch/all-pc/kernel/mmakefile.src | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 arch/all-pc/kernel/acpi_set.c diff --git a/arch/all-pc/kernel/acpi.c b/arch/all-pc/kernel/acpi.c index 5277acdd65..a771072001 100644 --- a/arch/all-pc/kernel/acpi.c +++ b/arch/all-pc/kernel/acpi.c @@ -33,7 +33,7 @@ /************************************************************************************************/ THIS_PROGRAM_HANDLES_SYMBOLSET(KERNEL__ACPISUPPORT) -DEFINESET(KERNEL__ACPISUPPORT) +DECLARESET(KERNEL__ACPISUPPORT) int acpi_ScanTableEntries(CONST ACPI_TABLE_HEADER *table, ULONG thl, UINT8 type, const struct Hook *hook, APTR data) { diff --git a/arch/all-pc/kernel/acpi_set.c b/arch/all-pc/kernel/acpi_set.c new file mode 100644 index 0000000000..689ed8ee7e --- /dev/null +++ b/arch/all-pc/kernel/acpi_set.c @@ -0,0 +1,3 @@ + +#include +DEFINESET(KERNEL__ACPISUPPORT) diff --git a/arch/all-pc/kernel/mmakefile.src b/arch/all-pc/kernel/mmakefile.src index 7eaa74ddbf..49eab4a6e7 100644 --- a/arch/all-pc/kernel/mmakefile.src +++ b/arch/all-pc/kernel/mmakefile.src @@ -37,6 +37,7 @@ FILES := \ acpi_pm \ acpi_apic \ acpi_ioapic \ + acpi_set \ smp \ syscall \ cpu_traps \ -- 2.11.4.GIT