diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-09-29 18:56:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-09-29 18:56:24 +0000 |
commit | 0730fb67263d54c6f952dd3651c4fc5e7de7a5d0 (patch) | |
tree | c68a7ac333624258eadbce10b7c820f508b3eea4 /sys/arch/mips64/include | |
parent | a2cee032ec1afe36876c84a6d3e297d71022838f (diff) |
Provide a few more macros in <machine/asm.h> to wrap coprocessor 0
move from/to register instructions, as well as a NOP macro. These will be
used in a later diff to allow specific processors to use slightly different
instructions or encodings.
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r-- | sys/arch/mips64/include/asm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/asm.h b/sys/arch/mips64/include/asm.h index bc538953caa..19d7f292250 100644 --- a/sys/arch/mips64/include/asm.h +++ b/sys/arch/mips64/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.15 2012/06/23 21:53:38 miod Exp $ */ +/* $OpenBSD: asm.h,v 1.16 2012/09/29 18:56:23 miod Exp $ */ /* * Copyright (c) 2001-2002 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -185,6 +185,13 @@ #define PTR_VAL .dword #endif +#define NOP nop +#define DMFC0 dmfc0 +#define DMTC0 dmtc0 +#define MFC0 mfc0 +#define MTC0 mtc0 +#define ERET sync; eret + /* * Define -pg profile entry code. */ |