Thread (10 messages) flat view 10 messages, 3 authors, 2011-08-09

Re: [PATCH 3/3] powerpc: icswx: Simple ACOP fault handler for both book3e and book3s parts.

From: Jimi Xenidis <hidden>
Date: 2011-08-09 15:25:05

On Aug 9, 2011, at 10:15 AM, Benjamin Herrenschmidt wrote:
On Tue, 2011-08-09 at 00:26 -0500, Kumar Gala wrote:
=20
quoted
quoted
+	/* Some implementations leave us a hint for the CT */
+	ct =3D ICSWX_GET_CT_HINT(error_code);
+	if (ct < 0) {
+		/* we have to peek at the instruction work to figure out =
CT */
quoted
quoted
+		union cop_ccw ccw;
=20
don't use a union, we don't do this for any other place we decode =
instructions (just use shift/mask).  Utilize ppc-opcode.h
=20
Except that the union here is -not- the instruction, but the content =
of
the RS register :-)
I agree, especially for when we need the kernel to build the =
struct/union.
However, that is a later patch (working on it now and if there are no =
objections) so I'll add it then.
-JX
=20
Cheers,
Ben.
=20
=20
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help