Move semaphore op codes to generic syscall

This commit is contained in:
Alexander Boettcher 2012-06-27 14:38:28 +02:00 committed by Norman Feske
parent d033b450f5
commit cd886bff6a
3 changed files with 6 additions and 10 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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: