patch-2.3.17 linux/arch/m68k/kernel/entry.S

Next file: linux/arch/m68k/kernel/kgdb.c
Previous file: linux/arch/m68k/kernel/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.16/linux/arch/m68k/kernel/entry.S linux/arch/m68k/kernel/entry.S
@@ -72,6 +72,16 @@
 	pea	SYMBOL_NAME(ret_from_exception)
 	jmp	SYMBOL_NAME(schedule)
 
+	| After a fork we jump here directly from resume,
+	| so that %d1 contains the previous task
+	| Theoretically only needed on SMP, but let's watch
+	| what happens in schedule_tail() in future...
+ENTRY(ret_from_fork)
+	movel	%d1,%sp@-
+	jsr	SYMBOL_NAME(schedule_tail)
+	addql	#4,%sp
+	jra	SYMBOL_NAME(ret_from_exception)
+
 badsys:
 	movel	#-ENOSYS,PT_D0(%sp)
 	jra	SYMBOL_NAME(ret_from_exception)
@@ -88,16 +98,6 @@
 	subql	#4,%sp			| dummy return address
 	SAVE_SWITCH_STACK
 	jbsr	SYMBOL_NAME(syscall_trace)
-
-	| After a fork we jump here directly from resume,
-	| so that %d1 contains the previous task
-	| Theoretically only needed on SMP, but let's watch
-	| what happens in schedule_tail() in future...
-ENTRY(ret_from_fork)
-	movel	%d1,%sp@-
-	jsr	SYMBOL_NAME(schedule_tail)
-	addql	#4,%sp
-	jra	SYMBOL_NAME(ret_from_exception)
 
 SYMBOL_NAME_LABEL(ret_from_signal)
 	RESTORE_SWITCH_STACK

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)