From 5200f73d92c30537afd2f271d3ee1e386a17287e Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Thu, 18 Feb 2016 18:13:11 +0100 Subject: [PATCH] remove in the boot processor check - if the boot processor goes down, we dump the status as kernel message --- hermit/arch/x86/kernel/apic.c | 2 +- hermit/include/hermit/tasks.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hermit/arch/x86/kernel/apic.c b/hermit/arch/x86/kernel/apic.c index 2d7e9e98b..287673acf 100644 --- a/hermit/arch/x86/kernel/apic.c +++ b/hermit/arch/x86/kernel/apic.c @@ -789,7 +789,7 @@ static void apic_err_handler(struct state *s) void shutdown_system(void) { - int if_bootprocessor = (apic_processors[boot_processor]->id == apic_cpu_id()); + int if_bootprocessor = (boot_processor == apic_cpu_id()); irq_disable(); diff --git a/hermit/include/hermit/tasks.h b/hermit/include/hermit/tasks.h index a7da09d48..f11e2c4b3 100644 --- a/hermit/include/hermit/tasks.h +++ b/hermit/include/hermit/tasks.h @@ -228,7 +228,7 @@ int network_shutdown(void); void check_ticks(void); #endif -volatile extern uint32_t go_down; +extern volatile uint32_t go_down; /** @brief shutdown the hole system */