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 #elif defined(CONFIG_MIPS)/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
41 #warning MIPS version not implemented yet
43 .type mon_getc,function
46 .type mon_tstc,function
49 .type mon_putc,function
52 .type mon_puts,function
55 .type mon_printf,function
57 .global mon_install_hdlr
58 .type mon_install_hdlr,function
61 .type mon_free_hdlr,function
64 .type mon_malloc,function
67 .type mon_free,function
72 #ifdef CONFIG_I386 /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
73 #define SYMBOL_NAME(X) X
74 #define SYMBOL_NAME_LABEL(X) X##:
76 #define SYSCALL(name,n) \
77 .globl SYMBOL_NAME(name) ; \
78 SYMBOL_NAME_LABEL(name) ; \
85 #endif /* CONFIG_I386 */
88 #define SYSCALL(name,n) \
94 #endif /* CONFIG_PPC */
99 * Make sure these functions are in the same order as they
100 * appear in the "include/syscall.h" header file !!!
103 SYSCALL(mon_getc,SYSCALL_GETC)
104 SYSCALL(mon_tstc,SYSCALL_TSTC)
105 SYSCALL(mon_putc,SYSCALL_PUTC)
106 SYSCALL(mon_puts,SYSCALL_PUTS)
107 SYSCALL(mon_printf,SYSCALL_PRINTF)
108 SYSCALL(mon_install_hdlr,SYSCALL_INSTALL_HDLR)
109 SYSCALL(mon_free_hdlr,SYSCALL_FREE_HDLR)
110 SYSCALL(mon_malloc,SYSCALL_MALLOC)
111 SYSCALL(mon_free,SYSCALL_FREE)
112 SYSCALL(mon_udelay,SYSCALL_UDELAY)
113 SYSCALL(mon_get_timer,SYSCALL_GET_TIMER)
114 #endif /* CONFIG_ARM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */