Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Don't put `frompc' into a0 in the dela...



details:   https://anonhg.NetBSD.org/src/rev/f5c54fd2b097
branches:  trunk
changeset: 521769:f5c54fd2b097
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Feb 05 07:12:20 2002 +0000

description:
Don't put `frompc' into a0 in the delay slot of the __mcount
call; `jal __mcount' might be expanded by the assembler, and
thus a bogus `frompc' value could be passed.

diffstat:

 sys/arch/mips/include/profile.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 01d699b28b2e -r f5c54fd2b097 sys/arch/mips/include/profile.h
--- a/sys/arch/mips/include/profile.h   Tue Feb 05 03:04:26 2002 +0000
+++ b/sys/arch/mips/include/profile.h   Tue Feb 05 07:12:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: profile.h,v 1.15 2000/07/18 06:25:32 jeffs Exp $       */
+/*     $NetBSD: profile.h,v 1.16 2002/02/05 07:12:20 thorpej Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -80,8 +80,9 @@
        "sw $1,0($29);" \
        "sw $31,4($29);" \
        "move $5,$31;" \
+       "move $4,$1;" \
        "jal __mcount;" \
-       "move $4,$1;" \
+       "nop;" \
        "lw $4,8($29);" \
        "lw $5,12($29);" \
        "lw $6,16($29);" \



Home | Main Index | Thread Index | Old Index