Thread (21 messages) 21 messages, 2 authors, 2019-02-11

Re: [PATCH v1 03/16] powerpc/32: move LOAD_MSR_KERNEL() into head_32.h and use it

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2019-02-11 01:03:00
Also in: lkml

On Fri, 2019-02-08 at 12:52 +0000, Christophe Leroy wrote:
 /*
+ * MSR_KERNEL is > 0x8000 on 4xx/Book-E since it include MSR_CE.
+ */
+.macro __LOAD_MSR_KERNEL r, x
+.if \x >= 0x8000
+       lis \r, (\x)@h
+       ori \r, \r, (\x)@l
+.else
+       li \r, (\x)
+.endif
+.endm
+#define LOAD_MSR_KERNEL(r, x) __LOAD_MSR_KERNEL r, x
+
You changed the limit from >= 0x10000 to >= 0x8000 without a
corresponding explanation as to why...

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help