Module Name: src
Committed By: matt
Date: Wed Sep 5 00:11:21 UTC 2012
Modified Files:
src/sys/arch/arm/arm32: cpuswitch.S
Log Message:
After calling lwp_startup, set fp to 0 to terminate call stack.
To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/arm/arm32/cpuswitch.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/arm32/cpuswitch.S
diff -u src/sys/arch/arm/arm32/cpuswitch.S:1.71 src/sys/arch/arm/arm32/cpuswitch.S:1.72
--- src/sys/arch/arm/arm32/cpuswitch.S:1.71 Sat Sep 1 22:20:52 2012
+++ src/sys/arch/arm/arm32/cpuswitch.S Wed Sep 5 00:11:20 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.71 2012/09/01 22:20:52 matt Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.72 2012/09/05 00:11:20 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -89,7 +89,7 @@
#include <machine/asm.h>
#include <machine/cpu.h>
- RCSID("$NetBSD: cpuswitch.S,v 1.71 2012/09/01 22:20:52 matt Exp $")
+ RCSID("$NetBSD: cpuswitch.S,v 1.72 2012/09/05 00:11:20 matt Exp $")
/* LINTSTUB: include <sys/param.h> */
@@ -335,6 +335,7 @@ ENTRY(lwp_trampoline)
*/
bl _C_LABEL(lwp_startup)
+ mov fp, #0 /* top stack frame */
mov r0, r5
mov r1, sp
#ifdef _ARM_ARCH_5