Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/luna68k Remove unused getsp().
details: https://anonhg.NetBSD.org/src/rev/ed9d5a962c40
branches: trunk
changeset: 770988:ed9d5a962c40
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Nov 05 15:27:51 2011 +0000
description:
Remove unused getsp().
diffstat:
sys/arch/luna68k/luna68k/locore.s | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diffs (27 lines):
diff -r 4296b86714f0 -r ed9d5a962c40 sys/arch/luna68k/luna68k/locore.s
--- a/sys/arch/luna68k/luna68k/locore.s Sat Nov 05 15:23:38 2011 +0000
+++ b/sys/arch/luna68k/luna68k/locore.s Sat Nov 05 15:27:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.39 2011/11/05 15:23:38 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.40 2011/11/05 15:27:51 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -956,17 +956,6 @@
ENTRY(ecacheoff)
rts
-/*
- * Get callers current SP value.
- * Note that simply taking the address of a local variable in a C function
- * doesn't work because callee saved registers may be outside the stack frame
- * defined by %A6 (e.g. GCC generated code).
- */
-ENTRY(getsp)
- movl %sp,%d0 | get current SP
- addql #4,%d0 | compensate for return address
- rts
-
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
Home |
Main Index |
Thread Index |
Old Index