Rev 1018 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1018 | Rev 1763 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __MSIM_H__ |
29 | #ifndef __MSIM_H__ |
30 | #define __MSIM_H__ |
30 | #define __MSIM_H__ |
31 | 31 | ||
32 | #define NULL 0 |
- | |
33 | #define false 0 |
- | |
34 | #define true 1 |
- | |
35 | - | ||
36 | typedef __builtin_va_list va_list; |
- | |
37 | - | ||
38 | #define va_start(ap, last) __builtin_va_start(ap, last) |
- | |
39 | #define va_arg(ap, type) __builtin_va_arg(ap, type) |
- | |
40 | #define va_end(ap) __builtin_va_end(ap) |
- | |
41 | - | ||
42 | extern void init(void); |
32 | extern void init(void); |
43 | extern void halt(void); |
33 | extern void halt(void); |
44 | 34 | ||
45 | extern void write(const char *str, const int len); |
- | |
46 | extern void *translate(void *addr); |
35 | extern void *translate(void *addr); |
47 | 36 | ||
48 | #endif |
37 | #endif |