diff mbox

parisc: Do not hardcode PAGE_SIZE dependend values in assembler

Message ID 20150316202117.GA3141@ls3530.box (mailing list archive)
State Rejected
Headers show

Commit Message

Helge Deller March 16, 2015, 8:21 p.m. UTC
Signed-off-by: Helge Deller <deller@gmx.de>

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Helge Deller March 16, 2015, 8:23 p.m. UTC | #1
ignore this patch - it's wrong.

Helge

On 16.03.2015 21:21, Helge Deller wrote:
> Signed-off-by: Helge Deller <deller@gmx.de>
>
> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
> index 2ab16bb..c9bbf88 100644
> --- a/arch/parisc/kernel/entry.S
> +++ b/arch/parisc/kernel/entry.S
> @@ -640,9 +640,9 @@
>   	 * Check "subtle" note in pacache.S re: r23/r26.
>   	 */
>   #ifdef CONFIG_64BIT
> -	extrd,u,*=	\va,41,1,%r0
> +	extrd,u,*=	\va,63-PAGE_SHIFT,1,%r0
>   #else
> -	extrw,u,=	\va,9,1,%r0
> +	extrw,u,=	\va,31-PAGE_SHIFT,1,%r0
>   #endif
>   	or,COND(tr)	%r23,%r0,\pte
>   	or		%r26,%r0,\pte
>

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index 2ab16bb..c9bbf88 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
@@ -640,9 +640,9 @@ 
 	 * Check "subtle" note in pacache.S re: r23/r26.
 	 */
 #ifdef CONFIG_64BIT
-	extrd,u,*=	\va,41,1,%r0
+	extrd,u,*=	\va,63-PAGE_SHIFT,1,%r0
 #else
-	extrw,u,=	\va,9,1,%r0
+	extrw,u,=	\va,31-PAGE_SHIFT,1,%r0
 #endif
 	or,COND(tr)	%r23,%r0,\pte
 	or		%r26,%r0,\pte