rump: Add panic message

This commit is contained in:
Sebastian Sumpf 2014-03-10 12:06:48 +01:00 committed by Norman Feske
parent 45b4d6b187
commit 330b0a731c
2 changed files with 14 additions and 1 deletions

View File

@ -36,7 +36,6 @@ DUMMY(-1, rumpuser_close)
DUMMY(-1, rumpuser_daemonize_begin)
DUMMY(-1, rumpuser_daemonize_done)
DUMMY(-1, rumpuser_dprintf)
DUMMY(-1, rumpuser_exit)
DUMMY(-1, rumpuser_iovread)
DUMMY(-1, rumpuser_iovwrite)
DUMMY(-1, rumpuser_kill)

View File

@ -291,3 +291,17 @@ int rumpuser_getrandom(void *buf, size_t buflen, int flags, size_t *retp)
return 0;
}
/**********
** Exit **
**********/
void genode_exit(int) __attribute__((noreturn));
void rumpuser_exit(int status)
{
if (status == RUMPUSER_PANIC)
PERR("Rump panic");
genode_exit(status);
}