From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mx.groups.io with SMTP id smtpd.web11.10093.1574765868729730555 for ; Tue, 26 Nov 2019 02:57:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=QS8MvR6f; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.65, mailfrom: pete@akeo.ie) Received: by mail-wr1-f65.google.com with SMTP id t2so21896173wrr.1 for ; Tue, 26 Nov 2019 02:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YlB6XE/Kv1m0GttOaYkXbsEG09A4mKAi3SCuOGDv0i8=; b=QS8MvR6fZXwJwOvP+/RhgPBSiKZX6EKLuyp4oKElHyxsReoeCrdVHP+B7hGHLtwdLR Bu1lPK5YwpCbcIBk97k5plFi1DwX+8l5snY5wVDiM1Wg+pxVzV8TcGi1DGPNNMak3pVZ kKNkzeuc2jiVZa+kPYV6tyCS0QXAThlxYUgt3YXy2ow7mmR2YdVPHcfRGzSUBl4XyY0/ 7GgPFlFThNgTHK7RzllzXGO6boDqIpjJ+jt7qXa2MYYwCh7AabK9pFkV9U5ByG2Qhxe8 ZODitXPMmWxVKoBMeVLaEJy8kaNmZGR6L6xwA6HuBa+XWBYzfzMROWj/Zal/KSjIi09J s8Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YlB6XE/Kv1m0GttOaYkXbsEG09A4mKAi3SCuOGDv0i8=; b=JRdhHnx2cIjTpRUCVA2ofPlwGe5cdPfsYfgMEqkA6H+umZZnbjGwA57LGOUdiB35Bz d+0RVpKLlhMpxyw5YIy90/9/xFlvwZZzp2PpBL2QNkAzzDdPs90pZZJXF3Nv11fRZhvB Aks8W2QHL2JnQeZRmy4RYqC0TleC9TwrOh7bY5AhtMS4CtE4lRfyZpr+PsENFSLyba+Q QR0sGbBGzWiEma+oZ83vDon3axbROecGKV/tovg0UIWfI9Qh2/cufidmhxa+oqdnRhyy OMT+vKTHi2HG7MXvFjJVtjAfNICix0oNMJ+EybCXyE6bhWS9/09UOhUA0/RJ9PPaLdU2 iZxg== X-Gm-Message-State: APjAAAX4iTC7ajCez1wvoBzOIcJOqKHrjds3PjxYTnjeZLE6RuxFNJ5O 2BFrwwWFIeABsxwMcSXNnnctBzev358= X-Google-Smtp-Source: APXvYqw7n6nKIBywxlsEcL1YRAMRb544TTbdElOYsR6ZkOg1YXWaIkRj9VZK9TIuodlySjKb5yL/3Q== X-Received: by 2002:a5d:558b:: with SMTP id i11mr34365825wrv.379.1574765867000; Tue, 26 Nov 2019 02:57:47 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.37.1]) by smtp.gmail.com with ESMTPSA id p25sm2545037wma.20.2019.11.26.02.57.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 02:57:46 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com Subject: [edk2-platforms][PATCH 1/2] Platform/RPi3: Disable DEBUG output at runtime for the RTC driver Date: Tue, 26 Nov 2019 10:57:32 +0000 Message-Id: <20191126105733.6300-2-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20191126105733.6300-1-pete@akeo.ie> References: <20191126105733.6300-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Ard Biesheuvel Using DEBUG () at runtime can crash the OS if we don't take care to inhibit serial output to MMIO mapped UARTs that we don't inform the OS about via the memory map. So use a version of DebugLib that does exactly that for the RTC driver. Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/RPi3.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3/RPi3.dsc index 98c75e373fa7..8ec82fc6d598 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.dsc +++ b/Platform/RaspberryPi/RPi3/RPi3.dsc @@ -505,6 +505,7 @@ [Components.common] EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf { + DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf RealTimeClockLib|EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf } EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf -- 2.21.0.windows.1