From 6ed35ee84b15852366b7890eac9a9646e6b214f9 Mon Sep 17 00:00:00 2001 From: drochner Date: Wed, 24 Feb 1999 18:36:32 +0000 Subject: [PATCH] sync to [nisimura-pmax-wscons] version (only change: include register definitions from regdef.h) --- sys/arch/mips/include/asm.h | 38 +++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/sys/arch/mips/include/asm.h b/sys/arch/mips/include/asm.h index 6483f50472e7..f02fcecba3f4 100644 --- a/sys/arch/mips/include/asm.h +++ b/sys/arch/mips/include/asm.h @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.17 1999/02/16 05:06:26 jonathan Exp $ */ +/* $NetBSD: asm.h,v 1.18 1999/02/24 18:36:32 drochner Exp $ */ /* * Copyright (c) 1992, 1993 @@ -58,7 +58,41 @@ #ifndef _MIPS_ASM_H #define _MIPS_ASM_H -#include +/* + * Symbolic register names + */ +#define zero $0 /* always zero */ +#define AT $at /* assembler temporary */ +#define v0 $2 /* return value */ +#define v1 $3 +#define a0 $4 /* argument registers */ +#define a1 $5 +#define a2 $6 +#define a3 $7 +#define t0 $8 /* temp registers (not saved across subroutine calls) */ +#define t1 $9 +#define t2 $10 +#define t3 $11 +#define t4 $12 +#define t5 $13 +#define t6 $14 +#define t7 $15 +#define s0 $16 /* saved across subroutine calls (callee saved) */ +#define s1 $17 +#define s2 $18 +#define s3 $19 +#define s4 $20 +#define s5 $21 +#define s6 $22 +#define s7 $23 +#define t8 $24 /* two more temporary registers */ +#define t9 $25 +#define k0 $26 /* kernel temporary */ +#define k1 $27 +#define gp $28 /* global pointer */ +#define sp $29 /* stack pointer */ +#define s8 $30 /* one more callee saved */ +#define ra $31 /* return address */ /* * Define -pg profile entry code.