From patchwork Mon Mar 16 20:21:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 6025011 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8DA7D9F318 for ; Mon, 16 Mar 2015 20:21:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C8B5202DD for ; Mon, 16 Mar 2015 20:21:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79F4A200E1 for ; Mon, 16 Mar 2015 20:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932071AbbCPUVZ (ORCPT ); Mon, 16 Mar 2015 16:21:25 -0400 Received: from mout.gmx.net ([212.227.17.22]:55772 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753064AbbCPUVY (ORCPT ); Mon, 16 Mar 2015 16:21:24 -0400 Received: from ls3530.box ([92.203.10.180]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MGFz9-1YipOw2tl9-00F9Ks; Mon, 16 Mar 2015 21:21:22 +0100 Date: Mon, 16 Mar 2015 21:21:17 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Do not hardcode PAGE_SIZE dependend values in assembler Message-ID: <20150316202117.GA3141@ls3530.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:TMH2x1O76DumkGzFOUng/kihYIsmi/6glnFcc6rJKFdPkqXtUIJ ZmDJz5Z8NSXkUjaOvAMQgudvcSZ8zPq9vEeDtII2a1LNXHZMPK5sTZiLk/oIJyha6d7cayy +ziVWSwI+iDVWhEBIjJv/6efr1tsdSBl8BCaRWhvZ/RkYI0oxaTzh0yuPixdkP50+Jy6r0p em6fP6Ojvr/03X2JkcVZA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Helge Deller --- 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 --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