mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
committed by
Christian Helmuth
parent
d8211b65a5
commit
f91ece78e0
25
repos/dde_rump/patches/sync.patch
Normal file
25
repos/dde_rump/patches/sync.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
diff --git a/src/sys/rump/librump/rumpkern/rump.c b/src/sys/rump/librump/rumpkern/rump.c
|
||||
index 24466eb..031906e 100644
|
||||
--- src/lib/dde_rump/src/sys/rump/librump/rumpkern/rump.c
|
||||
+++ src/lib/dde_rump/src/sys/rump/librump/rumpkern/rump.c
|
||||
@@ -209,6 +209,8 @@ RUMP_COMPONENT(RUMP_COMPONENT_POSTINIT)
|
||||
}
|
||||
#endif
|
||||
|
||||
+void genode_sync_thread(void *);
|
||||
+
|
||||
int
|
||||
rump_init(void)
|
||||
{
|
||||
@@ -468,6 +470,11 @@ rump_init(void)
|
||||
rump_consdev_init();
|
||||
rump_lwproc_switch(NULL);
|
||||
|
||||
+ /* start the Genode sync thread */
|
||||
+ if (kthread_create(PRI_IOFLUSH, KTHREAD_MPSAFE, NULL,
|
||||
+ genode_sync_thread, NULL, NULL, "genode_sync_thread") != 0)
|
||||
+ panic("Genode syncer thread create failed");
|
||||
+
|
||||
/* release cpu */
|
||||
rump_unschedule();
|
||||
|
||||
Reference in New Issue
Block a user