diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-04-12 19:56:08 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-04-12 19:56:08 +0000 |
commit | 9cc272bd0bcd1c6b4e2de63395bc7e2c81c06ca1 (patch) | |
tree | 4c0c70b13ed9d5287f6b87ebf2a36ef0b65c9738 /sys/arch | |
parent | 3fc4a02db698c40128bc2e4f8b07a10f888de42b (diff) |
use the profile.h from the arc - this way the
undefined reference to `___mcount'
problems are solved - a lot of thanks to per
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/pmax/include/profile.h | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/sys/arch/pmax/include/profile.h b/sys/arch/pmax/include/profile.h index dc30bfdcf01..41598963f0b 100644 --- a/sys/arch/pmax/include/profile.h +++ b/sys/arch/pmax/include/profile.h @@ -1,4 +1,4 @@ -/* $NetBSD: profile.h,v 1.6 1995/05/31 00:25:06 jonathan Exp $ */ +/* $OpenBSD: profile.h,v 1.5 1997/04/12 19:56:07 graichen Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,42 +35,44 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)profile.h 8.1 (Berkeley) 6/10/93 + * from: @(#)profile.h 8.1 (Berkeley) 6/10/93 */ -#define _MCOUNT_DECL static void __mcount +#define _MCOUNT_DECL static void ___mcount #define MCOUNT \ - asm(".globl _mcount;" \ - "_mcount:;" \ - ".set noreorder;" \ - ".set noat;" \ - "sw $4,8($29);" \ - "sw $5,12($29);" \ - "sw $6,16($29);" \ - "sw $7,20($29);" \ - "sw $1,0($29);" \ - "sw $31,4($29);" \ - "move $5,$31;" \ - "jal ___mcount;" \ - "move $4,$1;" \ - "lw $4,8($29);" \ - "lw $5,12($29);" \ - "lw $6,16($29);" \ - "lw $7,20($29);" \ - "lw $31,4($29);" \ - "lw $1,0($29);" \ - "addu $29,$29,8;" \ - "j $31;" \ - "move $31,$1;" \ - ".set reorder;" \ + __asm(".globl _mcount;" \ + ".type _mcount,@function;" \ + "_mcount:;" \ + ".set noreorder;" \ + ".set noat;" \ + ".cpload $25;" \ + "sw $4,8($29);" \ + "sw $5,12($29);" \ + "sw $6,16($29);" \ + "sw $7,20($29);" \ + "sw $1,0($29);" \ + "sw $31,4($29);" \ + "move $5,$31;" \ + "jal ___mcount;" \ + "move $4,$1;" \ + "lw $4,8($29);" \ + "lw $5,12($29);" \ + "lw $6,16($29);" \ + "lw $7,20($29);" \ + "lw $31,4($29);" \ + "lw $1,0($29);" \ + "addu $29,$29,8;" \ + "j $31;" \ + "move $31,$1;" \ + ".set reorder;" \ ".set at"); #ifdef _KERNEL /* * The following two macros do splhigh and splx respectively. * They have to be defined this way because these are real - * functions on the PMAX, and we do not want to invoke mcount + * functions on the MIPS, and we do not want to invoke mcount * recursively. */ #define MCOUNT_ENTER s = _splhigh() |