Support Hello World
This commit is contained in:
@@ -48,7 +48,8 @@ struct __no_align __syscall_InterruptElement {
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
reinterpret_cast<__VA_ARGS__>(table)
|
||||
#define __syscall_function_cast(table, ...) reinterpret_cast<__VA_ARGS__>(table)
|
||||
extern "C" {
|
||||
#else
|
||||
#define __syscall_function_cast(table, ...) ((__VA_ARGS__)(void*)table)
|
||||
#endif
|
||||
@@ -123,6 +124,10 @@ static __always_inline void __syscall_ExitCriticalSection() {
|
||||
__asm__ volatile("syscall" : "=r"(FuncID) : "r"(FuncID) : "at", "v0", "v1", "a1", "a2", "a3", "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9", "memory");
|
||||
}
|
||||
|
||||
int __syscall_printf(const char* txt, ...);
|
||||
void __syscall_printf(const char* txt, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //!__JABYENGINE_SYSCALLS__H
|
Reference in New Issue
Block a user