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/linkage.h>
28 #include <asm/errno.h>
29 #include <asm/setup.h>
30 #include <asm/segment.h>
31 #include <asm/asm-offsets.h>
32 #include <asm/entry.h>
33 #include <asm/unistd.h>
39 .globl ret_from_exception
40 .globl ret_from_signal
48 movel %d0,%sp@(PT_OFF_ORIG_D0)
49 movel %sp,%sp@- /* stack frame pointer argument */
52 jra ret_from_exception
57 movel %d0,%sp@(PT_OFF_ORIG_D0)
58 movel %sp,%sp@- /* stack frame pointer argument */
61 jra ret_from_exception
63 #ifdef TRAP_DBG_INTERRUPT
69 movel %d0,%sp@(PT_OFF_ORIG_D0)
70 movel %sp,%sp@- /* stack frame pointer argument */
73 jra ret_from_exception
77 /* save top of frame */
81 pea ret_from_exception
88 jra ret_from_exception
92 pea %sp@(SWITCH_STACK_SIZE)
100 pea %sp@(SWITCH_STACK_SIZE)
108 pea %sp@(SWITCH_STACK_SIZE)
120 ENTRY(sys_rt_sigreturn)
126 ENTRY(ret_from_user_signal)
127 moveq #__NR_sigreturn,%d0
130 ENTRY(ret_from_user_rt_signal)
131 movel #__NR_rt_sigreturn,%d0