Message ID | 33b87327ad65d6c655406abd69139bd126d460e4.1636362169.git.greentime.hu@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=OElg=P4=lists.infradead.org=linux-riscv-bounces+linux-riscv=archiver.kernel.org@kernel.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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 877C8C433F5 for <linux-riscv@archiver.kernel.org>; Tue, 9 Nov 2021 09:59:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 52FDA610A3 for <linux-riscv@archiver.kernel.org>; Tue, 9 Nov 2021 09:59:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 52FDA610A3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y4EqRQPwJ9xZX4340avK4u6C5hqwDg1CX/ur0sd+ckk=; b=2GaqC1NtrQGaFI NF6XeaPKvTwxgasYVJRiaRs96EK6CV0o+jbFFD8yjOJ5fI7edjI+sVddb81NBf/9Ph6KBjH1WFGFJ PTYqN0mnmR1+CSUJNtUB8MHR4dSlWsacI0O2J5MYuXDRy+++0KFfIHKsKpASeSp+0FCnbHSHpG3Sz zW4ICWiMep2dQcF7/QxYXqWw7edbhw8Khfjxx8PSC4h5WiQwZUHtNMNi4G1dn2JQXNzXpZhSUPX6r 8VLKqcqdN635/kinknyPoTGGePhGQjTVXy7Nq0hTmXQ9dDd3HX9hOhf2E+PbrRgXnPBS0e+761B6j DEOgTQAvx1QdTpc1gTbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkNu3-001NGt-2a; Tue, 09 Nov 2021 09:58:55 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkNkQ-001Jcl-ME for linux-riscv@lists.infradead.org; Tue, 09 Nov 2021 09:49:00 +0000 Received: by mail-pl1-x634.google.com with SMTP id q17so7851503plr.11 for <linux-riscv@lists.infradead.org>; Tue, 09 Nov 2021 01:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Ndxq/he9Iznc1VcgPcQOTE4Tyx8zhB8G5x8otwt8U5w=; b=Bfe/bWitMMb4yDH7qpV9LaONIjcHyZvnYwV/lNtuf5KNVZ5noWDb3rJBCSDxNMDjSb swrsKbETmzXPvEXX/JpI7Mql/yGow8tr8F6OvRqxjACksheLMNzAwR2zorDQUj8GPpbX C2Mxw8Qg69tBR6SenTXxWVzfnJBB4YeHYpGCWcfWAC32feZkW2YuKZL7Ok+5bABnmdgv fHKU8Me5Z51MCCJJmc5cyaW43vUfknkzMIdw6Y4fazIRhk5p18BqXgv9KWYmFmiEn53g j7HopOsdAL890ieBL+0oHmgarJMDcm7I7Ktc2wM3tHQQcZUXE6EmdFt0u659JcaxDqf9 A2UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ndxq/he9Iznc1VcgPcQOTE4Tyx8zhB8G5x8otwt8U5w=; b=0uoQMXeV5I/9UCuZSdXILsxrXfrj7nNXUIpgvFTWG3mZqKzoIT7XPe5EmMEk4Puull y2PdAX1JDDP2jvK3h76cBocAP1laKoSSJFpskSOwbEHX1ODcOCf/3q9nMdTYNXvqeqiM smp6DMY6gosyfYk/CazyiZhcXKfY7W8HUiEAwZOlR4yKXmziSXhoi5AcXKYNVoMsqx2m FqSug+Aq4eYs1Ol19JSftjLOhlsQ9CQGJeISm3JPX0YWIB39+a0aQ+uaAfqeHOBjTvLk puDABtzHCC2R/ZBBZBxTI13CycTHWa9VspsMiLPv3i/7RC+vJwmcuUrU61+E1oWAbgZB uUpg== X-Gm-Message-State: AOAM530MrcrvWb08SfzJXP3Xl33gaSRiIy23Pa17rjB0gxl7SeWOLpEX WyZSFWBH4PN4DJ1GZSSzl2wU0Q== X-Google-Smtp-Source: ABdhPJxkXcHXXXYuTfH4xGUzHj722l8C5zUPIw2yiOBlrW9DlFUPkXS/76rvydZ9eLuq0PLGMSZPJg== X-Received: by 2002:a17:90b:1c07:: with SMTP id oc7mr5646669pjb.127.1636451337525; Tue, 09 Nov 2021 01:48:57 -0800 (PST) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id cv1sm1940511pjb.48.2021.11.09.01.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 01:48:57 -0800 (PST) From: Greentime Hu <greentime.hu@sifive.com> To: palmer@dabbelt.com, paul.walmsley@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, aou@eecs.berkeley.edu Subject: [PATCH v9 17/17] riscv: Fix a kernel panic issue if $s2 is set to a specific value before entering Linux Date: Tue, 9 Nov 2021 17:48:29 +0800 Message-Id: <33b87327ad65d6c655406abd69139bd126d460e4.1636362169.git.greentime.hu@sifive.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <cover.1636362169.git.greentime.hu@sifive.com> References: <cover.1636362169.git.greentime.hu@sifive.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211109_014858_824270_949E318F X-CRM114-Status: GOOD ( 15.69 ) 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 |
riscv: Add vector ISA support
|
expand
|
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 551afe1de85e..3f881a26527d 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -303,6 +303,7 @@ clear_bss_done: /* Initialize page tables and relocate to virtual addresses */ la sp, init_thread_union + THREAD_SIZE XIP_FIXUP_OFFSET sp + addi sp, sp, -PT_SIZE #ifdef CONFIG_BUILTIN_DTB la a0, __dtb_start #else @@ -320,6 +321,7 @@ clear_bss_done: la tp, init_task sw zero, TASK_TI_CPU(tp) la sp, init_thread_union + THREAD_SIZE + addi sp, sp, -PT_SIZE #ifdef CONFIG_KASAN call kasan_early_init