1 #include <ppc_asm.tmpl>
5 #ifdef CONFIG_ARM /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
6 #warning ARM version not implemented yet /* XXXXXXXXXXXXXXXXXXXXXXXXXXXX */
8 .type mon_getc,function
11 .type mon_tstc,function
14 .type mon_putc,function
17 .type mon_puts,function
20 .type mon_printf,function
22 .global mon_install_hdlr
23 .type mon_install_hdlr,function
26 .type mon_free_hdlr,function
29 .type mon_malloc,function
32 .type mon_free,function
34 @ args = 0, pretend = 0, frame = 0
35 @ frame_needed = 1, current_function_anonymous_args = 0
37 stmfd sp!, {fp, ip, lr, pc}
39 ldmea fp, {fp, sp, pc}
40 #else /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
41 #define SYSCALL(name,n) \
51 * Make sure these functions are in the same order as they
52 * appear in the "include/syscall.h" header file !!!
55 SYSCALL(mon_getc,SYSCALL_GETC)
56 SYSCALL(mon_tstc,SYSCALL_TSTC)
57 SYSCALL(mon_putc,SYSCALL_PUTC)
58 SYSCALL(mon_puts,SYSCALL_PUTS)
59 SYSCALL(mon_printf,SYSCALL_PRINTF)
60 SYSCALL(mon_install_hdlr,SYSCALL_INSTALL_HDLR)
61 SYSCALL(mon_free_hdlr,SYSCALL_FREE_HDLR)
62 SYSCALL(mon_malloc,SYSCALL_MALLOC)
63 SYSCALL(mon_free,SYSCALL_FREE)
64 #endif /* CONFIG_ARM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */