Skip to content
Snippets Groups Projects
Commit 17a79e66 authored by Nadav Har'El's avatar Nadav Har'El
Browse files

Use osv::hang() in abort()

abort() did the same thing as the new osv::hang(), so let's just use
osv::hang(). Note that it's important that osv::hang() doesn't print
anything - abort() does, but avoids infinite recursion that can happen
when abort()'s printing itself causes a crash, and another abort().
parent 121d6a7e
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
#include "barrier.hh"
#include "smp.hh"
#include "bsd/sys/sys/sysctl.h"
#include <osv/power.hh>
#define __LC_LAST 13
......@@ -87,9 +88,7 @@ void abort()
debug("Aborted\n");
already_aborted = true;
}
crash_other_processors();
while (true)
processor::halt_no_interrupts();
osv::halt();
}
void __cxa_pure_virtual(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment