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 */
42 #ifdef CONFIG_I386 /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
43 #define SYMBOL_NAME(X) X
44 #define SYMBOL_NAME_LABEL(X) X##:
46 #define SYSCALL(name,n) \
47 .globl SYMBOL_NAME(name) ; \
48 SYMBOL_NAME_LABEL(name) ; \
51 #endif /* CONFIG_I386 */
54 #define SYSCALL(name,n) \
60 #endif /* CONFIG_PPC */
65 * Make sure these functions are in the same order as they
66 * appear in the "include/syscall.h" header file !!!
69 SYSCALL(mon_getc,SYSCALL_GETC)
70 SYSCALL(mon_tstc,SYSCALL_TSTC)
71 SYSCALL(mon_putc,SYSCALL_PUTC)
72 SYSCALL(mon_puts,SYSCALL_PUTS)
73 SYSCALL(mon_printf,SYSCALL_PRINTF)
74 SYSCALL(mon_install_hdlr,SYSCALL_INSTALL_HDLR)
75 SYSCALL(mon_free_hdlr,SYSCALL_FREE_HDLR)
76 SYSCALL(mon_malloc,SYSCALL_MALLOC)
77 SYSCALL(mon_free,SYSCALL_FREE)
78 #endif /* CONFIG_ARM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */