Message ID | CAM2SziVvaN5YAmq6r1ynvwrDo6xG5nrqwMG4E8icsdFO4BnHyQ@mail.gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5D63C6FA8E for <linux-riscv@archiver.kernel.org>; Wed, 21 Sep 2022 16:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JErx8qwIDxj7Lq5ES+oWaTgiHLRFJQJC777IsZdWZls=; b=jWnBzBcEq6Gokl eQ0Zai2tL7/nhNGsuQjUQ87RBwKb9g6NKTVo/jvqNAXHKCrFgJ2XzV4udND16X7dyPd6p++KpfdsS 4IQZzIM7Hh4noHHsuu3Sz6b5NExOp7a5JEbkGSMxAX+CIvj+Mo/TAEbrCX6Hw6Dl5Ir754bwn4a3O P5sZlZSTBhzDjcmhlTsI79iIel+5+Lb9paj/CgqHOsxHBeaIufJ3GXHV2fzblrCfU449pnaOtNRd5 b8HsTf/tVMmqAHYuN8IfIG14P1TJttaNch7UGmY0bublwyCLI1eeyHeeK3M9MThRSblYsKrJxXkiC pkSxm2iw6T8oz0aRj4SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob2vp-00C45L-KM; Wed, 21 Sep 2022 16:50:41 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob2vm-00C42s-NF for linux-riscv@lists.infradead.org; Wed, 21 Sep 2022 16:50:40 +0000 Received: by mail-wr1-x433.google.com with SMTP id n15so3965418wrq.5 for <linux-riscv@lists.infradead.org>; Wed, 21 Sep 2022 09:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=2gHgaIeXWsDaK0jT9I81izavyxaAOC2Z2MO2p3WE3C4=; b=nkeni2Jn+Kuku0Chnr478GEVpIWCpyu/jXkU1/ZsCUZaIVLYjEWnomRI0L3SSQooVs ZHKss5UCQvu4bnTjQDdZtJugLaF/ye6eqQq2lrx2Nz130K1g3Cl9I7RZqOpL92h7mQdE 7gwXp3OVqYed0YbMi0z+37Vta/gOf2fYNP+H1iS+spYIDXmwFiBrhkLEe7pJP/bfaNsc rT9NvoNF+F8yAIXq68FxrVwxq6fzaLbiW8jxsd7nKtS8TvCjw2qXlaORPpZVuXFgtbGe 6JAm3OricsYWlmUyIt11ZTDDLj+h8eDZLxv3vZuk8Db5m629AIjiLCV9HklIsKpqqPYC 4hZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=2gHgaIeXWsDaK0jT9I81izavyxaAOC2Z2MO2p3WE3C4=; b=tgubpHlIQzyxGasUJUSoNYWNFW03BlqOvb94Fa6gWe00NJ7mNRiKFqIdCegNETOBlM JQi661V6E3kX98gPcG1uhJ7A/mMRBout1q+rIIuDcXffin2f7QRonHX0xHlyKaVmurnB vIU/l70G8BTVpnpce02meySPS1cZl9aWkOQk7aJVMhdPw4Brotd1HuEJAHqs07VSnnO+ LMJGSnbNNRJKY0H2Euxu47tIOSZPzDALGpbJZtPDyQqEFVvQgmYmPKc3ZiC9f+Gn3jly xMtNP8ujHPdjMfXOQV2GZgWDIfTK9/TT39bgm54p6CZQzDMNueU10YaBuZ/Up8S5yRhd AM9Q== X-Gm-Message-State: ACrzQf31TYrXv/0hTMwSxAAp2q0oIzyH0kMp5Mg5lW8rLS77kCieuoqZ jFu8p8W0kQbN3XTkgX5kBI9TWnEQX8AWT3Oo8aKwL8xnoqDrDg== X-Google-Smtp-Source: AMsMyM5egBqt8G1bG4m7b5OUvFG+8mLc1ag2sSWFSoiQm2i9VOXx8QmLfjU+VdmTT8HCS5Set7wcZ/o6sm3rB+IANKI= X-Received: by 2002:adf:dcc8:0:b0:22a:b9e3:bab8 with SMTP id x8-20020adfdcc8000000b0022ab9e3bab8mr17956544wrm.341.1663779037122; Wed, 21 Sep 2022 09:50:37 -0700 (PDT) MIME-Version: 1.0 From: Chris Stillson <stillson@rivosinc.com> Date: Wed, 21 Sep 2022 09:50:01 -0700 Message-ID: <CAM2SziVvaN5YAmq6r1ynvwrDo6xG5nrqwMG4E8icsdFO4BnHyQ@mail.gmail.com> Subject: [PATCH 14/17] riscv: Fix a kernel panic issue if $s2 is set to a specific value before entering Linux To: linux-riscv@lists.infradead.org Cc: palmer@dabbelt.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220921_095038_781004_105FD8D9 X-CRM114-Status: GOOD ( 15.02 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org |
Series |
Prctl to enable vector commands, previous vector patches rebased
|
expand
|
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 2c81ca42ec4e..c7effef23f41 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -301,6 +301,7 @@ clear_bss_done: la tp, init_task la sp, init_thread_union + THREAD_SIZE XIP_FIXUP_OFFSET sp + addi sp, sp, -PT_SIZE #ifdef CONFIG_BUILTIN_DTB la a0, __dtb_start XIP_FIXUP_OFFSET a0 @@ -318,6 +319,7 @@ clear_bss_done: /* Restore C environment */ la tp, init_task la sp, init_thread_union + THREAD_SIZE + addi sp, sp, -PT_SIZE #ifdef CONFIG_KASAN call kasan_early_init