From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67F78C43331 for ; Fri, 27 Mar 2020 20:36:37 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 17BE6206F1 for ; Fri, 27 Mar 2020 20:36:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="aBXeu1B6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 17BE6206F1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48pttV4qtpzDqgd for ; Sat, 28 Mar 2020 07:36:34 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=aBXeu1B6; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48ptg935GzzDrJt for ; Sat, 28 Mar 2020 07:26:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7UAXQhVhbF5Xlje3k+2zmR/dtajTW+jKmJsNwYeR/iU=; b=aBXeu1B6uT5ZSFJG3BeMvN3tDH vbtEKrVW137Gjy3Zp9t7865nhppWpSHRCmruOxlGeQUCBC50DhAyLo8hDR24DP4xucmTiJTm1ZLhA EEaotRXbHb94cHy8d+TjWpYQk8D4VVH1p9MaeOGFAP9Tusbm0iXVdsJPjLQgA/xX/2Bawm7s9vjJg DPFLMO5beQy5j303k88c/fSVrpKhZNP5jIuHyozro0uam1g55roWlDA4okNz/9xs+EmK7+hR6ebIT hDVyW7X4q8RkQ6Bcy7Qo4fx/U6wucN23dPewowYarax3muyHBGTSqxpau2v6kvRKfB/PAxq+lH/mI xkpDM6Zw==; Received: from geoff by merlin.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHvYd-0003Ix-QZ; Fri, 27 Mar 2020 20:26:23 +0000 Message-Id: <4527a9261897dab67a82f9c3c1020ea9d53edb49.1585340156.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Fri, 27 Mar 2020 13:07:31 -0700 Subject: [PATCH 8/9] powerpc/ps3: Add lv1_panic To: Michael Ellerman Date: Fri, 27 Mar 2020 20:26:23 +0000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Geert Uytterhoeven , Markus Elfring , Dan Carpenter , Emmanuel Nicolet Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" lv1_panic takes a single parameter, 0=halt, 1=reboot, and it will never return. Signed-off-by: Geoff Levand --- arch/powerpc/boot/ppc_asm.h | 6 ++++++ arch/powerpc/include/asm/ppc_asm.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/arch/powerpc/boot/ppc_asm.h b/arch/powerpc/boot/ppc_asm.h index 192b97523b05..cf758bc63846 100644 --- a/arch/powerpc/boot/ppc_asm.h +++ b/arch/powerpc/boot/ppc_asm.h @@ -8,6 +8,12 @@ * Copyright (C) 1995-1999 Gary Thomas, Paul Mackerras, Cort Dougan. */ +.macro lv1_panic + li r3, 0 + li r11, 255 + .long 0x44000022 +.endm + /* Condition Register Bit Fields */ #define cr0 0 diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index 6b03dff61a05..e76a6a4020ea 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h @@ -13,6 +13,12 @@ #ifdef __ASSEMBLY__ +.macro lv1_panic + li r3, 0 + li r11, 255 + .long 0x44000022 +.endm + #define SZL (BITS_PER_LONG/8) /* -- 2.20.1