Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/news68k/news68k Remove unused getsp().



details:   https://anonhg.NetBSD.org/src/rev/e097d5dbb09f
branches:  trunk
changeset: 504535:e097d5dbb09f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Mar 04 16:21:05 2001 +0000

description:
Remove unused getsp().

diffstat:

 sys/arch/news68k/news68k/locore.s |  13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diffs (27 lines):

diff -r 730f13226a0d -r e097d5dbb09f sys/arch/news68k/news68k/locore.s
--- a/sys/arch/news68k/news68k/locore.s Sun Mar 04 16:15:50 2001 +0000
+++ b/sys/arch/news68k/news68k/locore.s Sun Mar 04 16:21:05 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.18 2001/01/25 14:33:32 tsutsui Exp $      */
+/*     $NetBSD: locore.s,v 1.19 2001/03/04 16:21:05 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1334,17 +1334,6 @@
 Lnocache8:
        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_NOPROFILE(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