Skip to content

Commit

Permalink
nova: remove nova_die
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ab committed Feb 5, 2025
1 parent 53f61a0 commit 97f64ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions repos/base-nova/include/nova/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
#include <base/log.h>
#include <base/thread.h>

__attribute__((always_inline))
inline void nova_die()
{
asm volatile ("ud2a");
}


inline void request_event_portal(Genode::addr_t const cap,
Genode::addr_t const sel, Genode::addr_t event)
Expand Down
2 changes: 1 addition & 1 deletion repos/base-nova/src/lib/base/thread_start.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void Thread::_thread_start()
"died because of an uncaught exception");
} catch (...) {
/* die in a noisy way */
nova_die();
*(unsigned *)0 = 0xdead;
}

throw;
Expand Down

0 comments on commit 97f64ba

Please sign in to comment.