OpenCores
URL https://opencores.org/ocsvn/s6soc/s6soc/trunk

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [zipos/] [ktraps.h] - Diff between revs 22 and 44

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 22 Rev 44
Line 91... Line 91...
 
 
static inline   void    yield(void) {
static inline   void    yield(void) {
        syscall(TRAPID_YIELD, 0, 0, 0);
        syscall(TRAPID_YIELD, 0, 0, 0);
} static inline int     wait(unsigned event_mask, int timeout) {
} static inline int     wait(unsigned event_mask, int timeout) {
        return syscall(TRAPID_WAIT, (int)event_mask, timeout, 0);
        return syscall(TRAPID_WAIT, (int)event_mask, timeout, 0);
} static inline void    clear(unsigned event) {
} static inline int     clear(unsigned event, int timeout) {
        syscall(TRAPID_CLEAR, (int)event, 0, 0);
        return syscall(TRAPID_CLEAR, (int)event, timeout, 0);
} static inline void    post(unsigned event) {
} static inline void    post(unsigned event) {
        syscall(TRAPID_POST, (int)event, 0, 0);
        syscall(TRAPID_POST, (int)event, 0, 0);
}
}
 
 
static inline   void *malloc(unsigned nbytes) {
static inline   void *malloc(unsigned nbytes) {

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.