mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
nova: support noreturn attribute for syscall reply
This commit is contained in:
parent
491817c00c
commit
8c7cadde5f
@ -179,12 +179,14 @@ namespace Nova {
|
||||
|
||||
|
||||
ALWAYS_INLINE
|
||||
__attribute__((noreturn))
|
||||
inline void reply(void *next_sp)
|
||||
{
|
||||
asm volatile ("sysenter;"
|
||||
:
|
||||
: "a" (NOVA_REPLY), "c" (next_sp)
|
||||
: "memory");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
|
||||
|
@ -141,6 +141,7 @@ namespace Nova {
|
||||
|
||||
|
||||
ALWAYS_INLINE
|
||||
__attribute__((noreturn))
|
||||
inline void reply(void *next_sp)
|
||||
{
|
||||
asm volatile ("mov %1, %%rsp;"
|
||||
@ -148,6 +149,7 @@ namespace Nova {
|
||||
:
|
||||
: "D" (NOVA_REPLY), "ir" (next_sp)
|
||||
: "memory");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user