From a735904eaa32520bc69adddc4c7255f96da40c84 Mon Sep 17 00:00:00 2001 From: NicJA Date: Sun, 19 Feb 2017 18:49:39 +0000 Subject: [PATCH] fix build git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@53784 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/x86_64-pc/kernel/kernel_cpu.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/x86_64-pc/kernel/kernel_cpu.c b/arch/x86_64-pc/kernel/kernel_cpu.c index e33dbaa37f..f2587d2837 100644 --- a/arch/x86_64-pc/kernel/kernel_cpu.c +++ b/arch/x86_64-pc/kernel/kernel_cpu.c @@ -32,13 +32,25 @@ * NB - Enabling DSCHED() with safedebug enabled CAN cause * lockups! */ +#ifdef DEBUG +#undef DEBUG +#endif + +#define DEBUG 0 + + #if (DEBUG > 0) +#define DSCHED(x) x +#else #define DSCHED(x) +#endif void cpu_Dispatch(struct ExceptionContext *regs) { struct Task *task; struct ExceptionContext *ctx; +#if defined(__AROSEXEC_SMP__) || (DEBUG > 0) apicid_t cpunum = KrnGetCPUNumber(); +#endif IPTR __APICBase = core_APIC_GetBase(); DSCHED( -- 2.11.4.GIT