mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
NOVA: don't use externals in sleep forever
Not required.
This commit is contained in:
parent
94fad13adb
commit
c06c2887f2
@ -22,8 +22,6 @@
|
|||||||
#include <nova/syscalls.h>
|
#include <nova/syscalls.h>
|
||||||
#include <nova/util.h>
|
#include <nova/util.h>
|
||||||
|
|
||||||
extern int main_thread_running_semaphore();
|
|
||||||
|
|
||||||
namespace Genode {
|
namespace Genode {
|
||||||
|
|
||||||
__attribute__((noreturn)) inline void sleep_forever()
|
__attribute__((noreturn)) inline void sleep_forever()
|
||||||
@ -31,8 +29,8 @@ namespace Genode {
|
|||||||
using namespace Nova;
|
using namespace Nova;
|
||||||
|
|
||||||
Thread_base *myself = Thread_base::myself();
|
Thread_base *myself = Thread_base::myself();
|
||||||
addr_t sem = myself ? myself->tid().exc_pt_sel + SM_SEL_EC :
|
addr_t sem = myself ? myself->tid().exc_pt_sel + SM_SEL_EC : SM_SEL_EC;
|
||||||
main_thread_running_semaphore();
|
|
||||||
while (1) {
|
while (1) {
|
||||||
if (Nova::sm_ctrl(sem, SEMAPHORE_DOWNZERO))
|
if (Nova::sm_ctrl(sem, SEMAPHORE_DOWNZERO))
|
||||||
nova_die();
|
nova_die();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user