summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-07-09 19:42:11 +0200
committerAlmuHS <almuhs@github.com>2019-07-09 19:42:11 +0200
commit046f701ff07efd7f9dbe92fba97d16b5121ff7f5 (patch)
treea981e8ad0279eda1f752e815dafb027bb7e98411
parent757660786c0639370ec348270d7115c609a99746 (diff)
removed idle loop in cpu_setup fail
-rw-r--r--i386/i386/mp_desc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index d917262b..858c2a63 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -396,13 +396,7 @@ void paging_setup(){
int
cpu_ap_main()
{
-
- if(cpu_setup())
- goto idle;
-
-idle:
- for(;;)
- asm volatile("hlt");
+ if(cpu_setup()) return -1;
}
/*TODO: Reimplement function to send Startup IPI to cpu*/