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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 31399C2B9F4 for ; Mon, 14 Jun 2021 23:10:18 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 9160A61107 for ; Mon, 14 Jun 2021 23:10:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9160A61107 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4G3nGx0FQTz3dk2 for ; Tue, 15 Jun 2021 09:10:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=paXXV2fh; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2401:3900:2:1::2; helo=ozlabs.org; envelope-from=paulus@ozlabs.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=paXXV2fh; dkim-atps=neutral Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (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 4G3n9h2wP0z2yxX for ; Tue, 15 Jun 2021 09:05:44 +1000 (AEST) Received: by ozlabs.org (Postfix) id 4G3n9Z3b45z9sf9; Tue, 15 Jun 2021 09:05:38 +1000 (AEST) Received: by ozlabs.org (Postfix, from userid 1003) id 4G3n9Z2zjcz9sWM; Tue, 15 Jun 2021 09:05:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1623711938; bh=RTpmrFffmDZhFyeOsyMfLIFMjrzm3WEX5+pjp0t2Au4=; h=Date:From:To:Subject:References:In-Reply-To:From; b=paXXV2fh1xlQS1jKKycj8iZpXJSSD35mFMepm6XuMl7gsdTECuK1tLOo+R1uCt1/9 RoLSvtruQhyY3ry/ZTiUJhZ0FIqGxLfXh/4H6Lc9xf+BsDSTsF9K6qN0EeBTwmYQHR 9RxkHYz8rm0e/a/3LpvR4ErCB2/eb7FLZx5nzxSjeAIsPOuozjrnEuYTfDFezUiWLn jbvtkkFrMBRJNNOsDn10NmA/C8jhvfApRRl/VOIuXww4Gf39d6m3twuu/1jAsij95Q 2nqTTdrCoYnKsvAo1W3BAy9dqeo++75gwhw0zcYWX0O6nJTp9ToM54LHiQfLQopFou X78u06JzluHbg== Date: Tue, 15 Jun 2021 09:05:27 +1000 From: Paul Mackerras To: linuxppc-dev@ozlabs.org Subject: [PATCH 11/11] powerpc/microwatt: Disable interrupts in boot wrapper main program Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: , Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" This ensures that we don't get a decrementer interrupt arriving before we have set up a handler for it. Signed-off-by: Paul Mackerras --- arch/powerpc/boot/microwatt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/microwatt.c b/arch/powerpc/boot/microwatt.c index ac922dd0aa4d..86a07bceaadf 100644 --- a/arch/powerpc/boot/microwatt.c +++ b/arch/powerpc/boot/microwatt.c @@ -12,6 +12,7 @@ void platform_init(unsigned long r3, unsigned long r4, unsigned long r5) { unsigned long heapsize = 16*1024*1024 - (unsigned long)_end; + __asm__ volatile("mtmsrd %0,1" : : "r" (0)); simple_alloc_init(_end, heapsize, 32, 64); fdt_init(_dtb_start); serial_console_init(); -- 2.31.1