mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-22 03:55:26 +00:00
Move semaphore op codes to generic syscall
This commit is contained in:
parent
d033b450f5
commit
cd886bff6a
@ -247,11 +247,6 @@ namespace Nova {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Semaphore operations
|
||||
*/
|
||||
enum Sem_op { SEMAPHORE_UP = 0, SEMAPHORE_DOWN = 1 };
|
||||
|
||||
|
||||
ALWAYS_INLINE
|
||||
inline uint8_t sm_ctrl(unsigned sm, Sem_op op)
|
||||
|
@ -211,11 +211,6 @@ namespace Nova {
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Semaphore operations
|
||||
*/
|
||||
enum Sem_op { SEMAPHORE_UP = 0, SEMAPHORE_DOWN = 1 };
|
||||
|
||||
|
||||
ALWAYS_INLINE
|
||||
inline uint8_t sm_ctrl(mword_t sm, Sem_op op)
|
||||
|
@ -109,6 +109,12 @@ namespace Nova {
|
||||
} __attribute__((packed));
|
||||
|
||||
|
||||
/**
|
||||
* Semaphore operations
|
||||
*/
|
||||
enum Sem_op { SEMAPHORE_UP = 0U, SEMAPHORE_DOWN = 1U, SEMAPHORE_DOWNZERO = 0x3U };
|
||||
|
||||
|
||||
class Descriptor
|
||||
{
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user