From c1d40e004d0204fc6ee54c7a200ea7c63b6ca5b9 Mon Sep 17 00:00:00 2001 From: turbocat Date: Mon, 27 Dec 2021 18:19:07 +0000 Subject: [PATCH] ACPICA: Added setting a custom path for the log. git-svn-id: svn://kolibrios.org@9498 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/devman/acpica/Tupfile.lua | 6 ++---- drivers/devman/acpica/osunixxf.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/devman/acpica/Tupfile.lua b/drivers/devman/acpica/Tupfile.lua index 118671ed58..97061b1d6d 100755 --- a/drivers/devman/acpica/Tupfile.lua +++ b/drivers/devman/acpica/Tupfile.lua @@ -5,11 +5,9 @@ tup.include("../../../programs/use_gcc.lua") DRV_DIR = "./../.." INCLUDES = string.format(" -I./include -I%s/include -I%s/include/linux -I%s/include/uapi ", DRV_DIR, DRV_DIR, DRV_DIR) -DEFINES = " -DACPI_LIBRARY -D_SINGLE_THREADED -D__KERNEL__ -DCONFIG_X86_32 -DCONFIG_X86_L1_CACHE_SHIFT=6 -DCONFIG_ARCH_HAS_CACHE_LINE_SIZE -DLINUX_MOD_DEVICETABLE_H " +DEFINES = [[ -DACPI_LIBRARY -D_SINGLE_THREADED -D__KERNEL__ -DCONFIG_X86_32 -DCONFIG_X86_L1_CACHE_SHIFT=6 -DCONFIG_ARCH_HAS_CACHE_LINE_SIZE -DLINUX_MOD_DEVICETABLE_H -DACPI_LOG="\"/tmp0/1/acpi.log"\"]] -CFLAGS = CFLAGS .. " -O2 -march=i686 -fno-ident -msse2 -fomit-frame-pointer -fno-builtin-printf -mno-stack-arg-probe -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2 -mno-ms-bitfields " .. DEFINES - -NAME = "ACPICA" +CFLAGS = " -Os -march=i686 -fno-ident -msse2 -fomit-frame-pointer -fno-builtin-printf -mno-stack-arg-probe -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2 -mno-ms-bitfields " .. DEFINES compile_gcc{ "debugger/dbcmds.c" , diff --git a/drivers/devman/acpica/osunixxf.c b/drivers/devman/acpica/osunixxf.c index ab25a123a2..69ba3ffb4e 100644 --- a/drivers/devman/acpica/osunixxf.c +++ b/drivers/devman/acpica/osunixxf.c @@ -166,9 +166,9 @@ typedef void* (*PTHREAD_CALLBACK) (void *); ACPI_STATUS AcpiOsInitialize (void) { - if(!dbg_open("/rd/1/drivers/acpi.log")) + if(!dbg_open(ACPI_LOG)) { - dbgprintf("Can't open /rd/1/drivers/acpi.log\nExit\n"); + dbgprintf("Can't open %s\nExit\n", ACPI_LOG); return AE_ERROR; }