| #ifndef __MON_SYS_CALL_H__ |
| #define __MON_SYS_CALL_H__ |
| /* These are declarations of system calls available in C code */ |
| void mon_putc(const char); |
| void mon_puts(const char*); |
| void mon_printf(const char* fmt, ...); |
| void mon_install_hdlr(int, interrupt_handler_t*, void*); |
| void *mon_malloc(size_t); |
| #endif /* ifndef __ASSEMBLY__ */ |
| #define NR_SYSCALLS 9 /* number of syscalls */ |
| * Make sure these functions are in the same order as they |
| * appear in the "examples/syscall.S" file !!! |
| #define SYSCALL_INSTALL_HDLR 5 |
| #define SYSCALL_FREE_HDLR 6 |