From patchwork Thu Aug 16 20:36:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 10568133 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 14FA2109C for ; Thu, 16 Aug 2018 20:36:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0583D2B470 for ; Thu, 16 Aug 2018 20:36:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAFD82B9D6; Thu, 16 Aug 2018 20:36:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A39B2B470 for ; Thu, 16 Aug 2018 20:36:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725915AbeHPXhM (ORCPT ); Thu, 16 Aug 2018 19:37:12 -0400 Received: from mout.gmx.net ([212.227.17.21]:58025 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeHPXhM (ORCPT ); Thu, 16 Aug 2018 19:37:12 -0400 Received: from p100.box ([92.116.162.75]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lp3Qu-1gJz8D2iay-00evdU; Thu, 16 Aug 2018 22:36:29 +0200 Date: Thu, 16 Aug 2018 22:36:26 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Update comments in syscall.S regarding wide userland Message-ID: <20180816203626.GA17546@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K1:nKEoQXx9beln5/IKYdfHJwWZcv1NY1tolG1ss1hEA9KmcIq/T1s Pwl+pK523HbnA5T2r1zRWOesId1WnkSF0hmhzEM1agXnXgOqUObDCduWv0Ol2zgOvp2d7aH 2UpiLL9y4psfISJ/v3QKLgF984hfXJWBJoq8YFxvl/C7O1oFqUxy38FZPzwWhAotM2M0J/P 1gY89rbb8uIrlZiwfSIJg== X-UI-Out-Filterresults: notjunk:1;V01:K0:BlRzoImX/wE=:PWbF2S8uUvelDQrlOhYRKF kdAXP6KpGpFvdcGu3j7LhwEzZOmkJalju75ptM3K+IVOOWyAfJYWB8/fehOIwSMsxBYB249qI lnpKw7qsUdCCcKgI0rpLtRTASl6dtfAOlHo7zC3H6rXdX3nIZ8M0oXOfpyiaEcrXAODc7UnqP P2yt4K1x5aSGc89oJYhhydGJpoxMwAGJgoDQHobnzYxb+XlwZd9TdrDJG7lXUby2pQGdpKKut T5tIeByM/zy7NPtUVu8nVici8lcHA/pC4U5lTMauXldluRTNGhb2Lf0E1iKCTlWDJ33aP4c6/ vMhtUWqvj2yFbmogsEcjkUoAi43BU4KNfKp1kH6x8RIYHyaKOAvAWtqsbsFwxCMdgxNn4aD8H o1w+HhOlpByW2TUq1IMC5ZehgVAFg2Bed9icxUf+vGNiBqw6rySKXl8p3ji2+aM9RYOAov/Qb GRfZzVV30AqvJL/vJAgeaSp/bUNb5Nc7frGNscblEHiWJ4iO9fpG5sHBYwli5IoXnSAn2JIwR Mh4K5JKqLOLcJb+BEK1SUBJBSq7MCV7jib+XbqU9SPEwR1Inn1bJ+L6JX088tWfKlOgQ6iW4Z /J/J7YHXbGC6pbDn9OU4i3jGDew4yXcggngRDRdzfPg53+b9Y9AG/hKJRSFLq9P3imw5y7EJq Noj1CEgBzQL2BLiP98KdUJ/0AaYDkD3YboWPfHALeVRSEbBDWn2zezRZIzwRMoNZ2X2Kpep/w Xy7CzRrlaGEa9Y3ynks92Gp1kD44FRj2bQ7ZDPWtnwG4T1bPB4Mv4Djplgo= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We do support running 64-bit userspace processes, although there isn't yet full gcc and glibc support. Anyway, fix the comments to reflect the reality. Signed-off-by: Helge Deller diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index 4886a6d..dec27d8 100644 --- a/arch/parisc/kernel/syscall.S +++ b/arch/parisc/kernel/syscall.S @@ -108,12 +108,8 @@ linux_gateway_entry: mtsp %r0,%sr6 /* get kernel space into sr6 */ #ifdef CONFIG_64BIT - /* for now we can *always* set the W bit on entry to the syscall - * since we don't support wide userland processes. We could - * also save the current SM other than in r0 and restore it on - * exit from the syscall, and also use that value to know - * whether to do narrow or wide syscalls. -PB - */ + /* Store W bit on entry to the syscall in case it's a wide userland + * process. */ ssm PSW_SM_W, %r1 extrd,u %r1,PSW_W_BIT,1,%r1 /* sp must be aligned on 4, so deposit the W bit setting into @@ -464,16 +476,13 @@ tracesys_sigexit: lws_start: #ifdef CONFIG_64BIT - /* FIXME: If we are a 64-bit kernel just - * turn this on unconditionally. - */ ssm PSW_SM_W, %r1 extrd,u %r1,PSW_W_BIT,1,%r1 /* sp must be aligned on 4, so deposit the W bit setting into * the bottom of sp temporarily */ or,ev %r1,%r30,%r30 - /* Clip LWS number to a 32-bit value always */ + /* Clip LWS number to a 32-bit value for 32-bit processes */ depdi 0, 31, 32, %r20 #endif