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.
This commit is contained in:
parent
b02b24b1d7
commit
90544559d3
|
@ -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;" \
|
||||
"jal __mcount;" \
|
||||
"move $4,$1;" \
|
||||
"jal __mcount;" \
|
||||
"nop;" \
|
||||
"lw $4,8($29);" \
|
||||
"lw $5,12($29);" \
|
||||
"lw $6,16($29);" \
|
||||
|
|
Loading…
Reference in New Issue