2 * linux/arch/m68knommu/kernel/entry.S
4 * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
5 * Copyright (C) 1998 D. Jeff Dionne <jeff@lineo.ca>,
6 * Kenneth Albanowski <kjahds@kjahds.com>,
7 * Copyright (C) 2000 Lineo Inc. (www.lineo.com)
11 * linux/arch/m68k/kernel/entry.S
13 * Copyright (C) 1991, 1992 Linus Torvalds
15 * This file is subject to the terms and conditions of the GNU General Public
16 * License. See the file README.legal in the main directory of this archive
19 * Linux/m68k support by Hamish Macdonald
21 * 68060 fixes by Jesper Skov
22 * ColdFire support by Greg Ungerer (gerg@snapgear.com)
23 * 5307 fixes by David W. Miller
24 * linux 2.4 support David McCullough <davidm@snapgear.com>
27 #include <linux/sys.h>
28 #include <linux/linkage.h>
29 #include <asm/thread_info.h>
30 #include <asm/errno.h>
31 #include <asm/setup.h>
32 #include <asm/segment.h>
33 #include <asm/asm-offsets.h>
34 #include <asm/entry.h>
35 #include <asm/unistd.h>
41 .globl ret_from_exception
42 .globl ret_from_signal
50 movel %d0,%sp@(PT_ORIG_D0)
51 movel %sp,%sp@- /* stack frame pointer argument */
54 jra ret_from_exception
59 movel %d0,%sp@(PT_ORIG_D0)
60 movel %sp,%sp@- /* stack frame pointer argument */
63 jra ret_from_exception
65 #ifdef TRAP_DBG_INTERRUPT
71 movel %d0,%sp@(PT_ORIG_D0)
72 movel %sp,%sp@- /* stack frame pointer argument */
75 jra ret_from_exception
79 /* save top of frame */
83 pea ret_from_exception
90 jra ret_from_exception
94 pea %sp@(SWITCH_STACK_SIZE)
102 pea %sp@(SWITCH_STACK_SIZE)
110 pea %sp@(SWITCH_STACK_SIZE)
116 ENTRY(sys_sigsuspend)
118 pea %sp@(SWITCH_STACK_SIZE)
124 ENTRY(sys_rt_sigsuspend)
126 pea %sp@(SWITCH_STACK_SIZE)
127 jbsr do_rt_sigsuspend
138 ENTRY(sys_rt_sigreturn)
144 ENTRY(ret_from_user_signal)
145 moveq #__NR_sigreturn,%d0
148 ENTRY(ret_from_user_rt_signal)
149 move #__NR_rt_sigreturn,%d0