[PATCH 2/5] MIPS: Add instrunction format for BREAK and SYSCALL

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Daney
Date: Tuesday, August 3, 2010 - 11:22 am

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/include/asm/inst.h |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/inst.h b/arch/mips/include/asm/inst.h
index 6489f00..444ff71 100644
--- a/arch/mips/include/asm/inst.h
+++ b/arch/mips/include/asm/inst.h
@@ -247,6 +247,12 @@ struct ma_format {	/* FPU multipy and add format (MIPS IV) */
 	unsigned int fmt : 2;
 };
 
+struct b_format { /* BREAK and SYSCALL */
+	unsigned int opcode:6;
+	unsigned int code:20;
+	unsigned int func:6;
+};
+
 #elif defined(__MIPSEL__)
 
 struct j_format {	/* Jump format */
@@ -314,6 +320,12 @@ struct ma_format {	/* FPU multipy and add format (MIPS IV) */
 	unsigned int opcode : 6;
 };
 
+struct b_format { /* BREAK and SYSCALL */
+	unsigned int func:6;
+	unsigned int code:20;
+	unsigned int opcode:6;
+};
+
 #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
 #endif
@@ -328,7 +340,8 @@ union mips_instruction {
 	struct c_format c_format;
 	struct r_format r_format;
 	struct f_format f_format;
-        struct ma_format ma_format;
+	struct ma_format ma_format;
+	struct b_format b_format;
 };
 
 /* HACHACHAHCAHC ...  */
-- 
1.7.1.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] KProbes support for MIPS, David Daney, (Tue Aug 3, 11:22 am)
[PATCH 1/5] MIPS: Define regs_return_value(), David Daney, (Tue Aug 3, 11:22 am)
[PATCH 2/5] MIPS: Add instrunction format for BREAK and SY ..., David Daney, (Tue Aug 3, 11:22 am)
[PATCH 3/5] MIPS: Add KProbe support., David Daney, (Tue Aug 3, 11:22 am)
Re: [PATCH 1/5] MIPS: Define regs_return_value(), Ralf Baechle, (Tue Aug 3, 1:26 pm)
[PATCH] MIPS: Define regs_return_value(), David Daney, (Tue Aug 3, 1:53 pm)
Re: [PATCH 0/5] KProbes support for MIPS, Ananth N Mavinakayan ..., (Tue Aug 3, 9:43 pm)
Re: [PATCH] MIPS: Define regs_return_value(), Ralf Baechle, (Wed Aug 4, 4:46 pm)
Re: [PATCH 3/5] MIPS: Add KProbe support., Ralf Baechle, (Wed Aug 4, 4:59 pm)