From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::343; helo=mail-wm1-x343.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 43D9F211A207D for ; Thu, 20 Dec 2018 09:31:10 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id f188so3095177wmf.5 for ; Thu, 20 Dec 2018 09:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k98lrUe7HzvTSxJ/Mox4GyG1jVnIdA1nKMOxX/Hjrwg=; b=ek7mbyemNMm6Vd9MD3KSnlI6gXezShJUS6/CQJwql4PANv2T0zJNRHXKMW64h7k36H 13yNdBU/G+N5SU2VoDGtayX96Jpbu+82P8H1/16nBInFlzlGM+Higvm03BMDbpHFoMni WfDYcy87ljvgueqmkaf5wmIdAPtSq4983ytaQ= 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:mime-version :content-transfer-encoding; bh=k98lrUe7HzvTSxJ/Mox4GyG1jVnIdA1nKMOxX/Hjrwg=; b=jjRA/WpFRwaNtSP4yfYKIVS0toWQ5/6Q2ZKE1VuGByhSYiJ8O1ceRMafrdZ0kMNS/G 0AW4VHgmH6k3+nxfDowFJTv7XhrXHdtmwLg/eqvZSHsijC5dLYfTm8KtUdviGdCmoqm0 yZX7h5L0DBaiyrW/mT+ZoE/i7e8jCcwmKqYEoGxOkPnId9yqKo2tJNvMMncRVhlQzTrb jn/MxE7zGDiEoKfYKufUR25XjDmUMtsz7nFMfbgZGNDFNXph/veqHOnZVjJWlVR82sPm pkUropdeYJf7piHVw4jTh3OvYQmQYVGgu34CepJ7/nIfgu26gQEekobNzYlmhILQOLl/ xDRA== X-Gm-Message-State: AA+aEWY1m7vmKQcGoGLru4mmHJaupSqJFl0YCegYOTuhGCckuhllzoHK kyJJTz4oK2FZboC6Pssdb+3RtWlUvlPwuA== X-Google-Smtp-Source: AFSGD/Wpu5QJwCXIHbITj7dAF6l/pXqlsUIPe7btxF8LgzLxCC4DxymXcROj2IK29DS1toOZKBtWVQ== X-Received: by 2002:a1c:a6c2:: with SMTP id p185mr11151642wme.133.1545327067775; Thu, 20 Dec 2018 09:31:07 -0800 (PST) Received: from localhost.localdomain (aputeaux-683-1-2-211.w90-86.abo.wanadoo.fr. [90.86.101.211]) by smtp.gmail.com with ESMTPSA id x12sm6826131wrt.20.2018.12.20.09.31.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 09:31:06 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, philmd@redhat.com, lersek@redhat.com, Ard Biesheuvel Date: Thu, 20 Dec 2018 18:31:00 +0100 Message-Id: <20181220173104.11481-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [PATCH 0/4] ArmPkg: use console for minimal 'exception occurred' message X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2018 17:31:10 -0000 Content-Transfer-Encoding: 8bit When running with a graphical console, no message whatsoever is printed when the systems hits an unexpected exception and hangs, because even the minimal 'exception occurred' message is only sent to the serial port. So let's fix that, by updating DefaultExceptionHandlerLib to take the availability of a console into account. (#4) This requires some preparatory decruftication so that we can safely refer to the system table and console (#1 .. #3). Ard Biesheuvel (4): ArmPkg/DebugAgentSymbolsBaseLib: remove exception handling ArmPkg/DefaultExceptionHandlerLib: declare the permitted usage context ArmPkg/DefaultExceptionHandlerLib: drop BASE variant ArmPkg/DefaultExceptionHandlerLib: use console if available ArmPkg/ArmPkg.dsc | 1 - .../AArch64/DebugAgentException.S | 96 ------ .../Arm/DebugAgentException.S | 277 ------------------ .../Arm/DebugAgentException.asm | 273 ----------------- .../DebugAgentSymbolsBaseLib.c | 7 - .../DebugAgentSymbolsBaseLib.inf | 9 - .../AArch64/DefaultExceptionHandler.c | 16 +- .../Arm/DefaultExceptionHandler.c | 7 +- .../DefaultExceptionHandlerBase.c | 35 --- .../DefaultExceptionHandlerLib.inf | 5 +- .../DefaultExceptionHandlerLibBase.inf | 45 --- ArmVirtPkg/ArmVirt.dsc.inc | 1 - 12 files changed, 22 insertions(+), 750 deletions(-) delete mode 100644 ArmPkg/Library/DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S delete mode 100644 ArmPkg/Library/DebugAgentSymbolsBaseLib/Arm/DebugAgentException.S delete mode 100644 ArmPkg/Library/DebugAgentSymbolsBaseLib/Arm/DebugAgentException.asm delete mode 100644 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerBase.c delete mode 100644 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf -- 2.19.2