From patchwork Wed Sep 25 01:01:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1166949 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46dKYD0RhLz9sPK for ; Wed, 25 Sep 2019 11:02:56 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UntVz3K/"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46dKYC6NGHzDqg1 for ; Wed, 25 Sep 2019 11:02:55 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::635; helo=mail-pl1-x635.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UntVz3K/"; dkim-atps=neutral Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (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 46dKXv44KlzDqf6 for ; Wed, 25 Sep 2019 11:02:38 +1000 (AEST) Received: by mail-pl1-x635.google.com with SMTP id q15so1660683pll.11 for ; Tue, 24 Sep 2019 18:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CuuTOXeZ4AJ5pAuR42/ddB5E5EQAgA7Fqm1sZ87DtfU=; b=UntVz3K/vyKLzAhPFnskq7XQvBX7L+y5WuDXgMI+kAhG/FmHPFoUDwDeTB54lLK77A KwBi7JiH0qd5VzG5V4T1k1tVt/xJIGNzzVhq3U2M7oXI491CTHOnS1HUNprFUZNhJXIs Tvzyz906fB03r/k5xI9LcTuTTh7rDHjAb+dPp64E7L7YonaDA04xjUx8zmtTexq2s+86 CcZaUMTPODd77RuDSTP1qrQ9RecukpiXGh6Vzx+3ORmI4b2j09/1E9u/2pj2lvjiuwfT XPJ3zySmO68+dyWjjPSrYBo7XXD6qxsRTeghGMBmmc7CLc0qUHntzEiNxgzH7wSW7TLq R17A== 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=CuuTOXeZ4AJ5pAuR42/ddB5E5EQAgA7Fqm1sZ87DtfU=; b=mcyMU7Tf3ofp+8DlxamRp+x3vtlH0OXx++eDPoNbG9KMTf4ZtUJ1w8rr330C1JyS9A NrWspYBAzyyq5lESROPhX6FWxWh/dEFku5LNJX+sOI/tTVEP+jy4g0EDrD4t1ASdNtoe 6k2BYH5RWPv9BhvW4vunBF1y7YPBrpAbarUbrUeEMVVufdrT57sx9Kq2s2lDBnUaPzms eIv+fyuPUOyrvPgLJQF/Ays0ZmwEMauzwQ6PUUg40hf6+Hp+6BQg0nssovs9RVFbk0qJ rxITjAJC2X6al/MIW95Wz9dAw67uaORKLMzTli9aVNzwT//sjf+iISPIlOc4l8xUzP1A jP9w== X-Gm-Message-State: APjAAAU4hOhgosx59zWauzuLuAdClfV/VpeLCJYhpKn+Y7AP/VV+BzEc qfYTAPwSP8xcoAwM2YmkKm59LUxS X-Google-Smtp-Source: APXvYqzuduh+EvuO40CHVgZ93O09Xz0ii1mEb55ddj9unyX4D0Wkmzp7vZ2FSpFC6jxosb2vh2t5hA== X-Received: by 2002:a17:902:8488:: with SMTP id c8mr6023289plo.164.1569373356195; Tue, 24 Sep 2019 18:02:36 -0700 (PDT) Received: from bobo.local0.net ([61.68.68.57]) by smtp.gmail.com with ESMTPSA id x6sm6494490pfd.53.2019.09.24.18.02.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 18:02:35 -0700 (PDT) From: Nicholas Piggin To: skiboot@lists.ozlabs.org Date: Wed, 25 Sep 2019 11:01:32 +1000 Message-Id: <20190925010136.7371-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Skiboot] [PATCH 0/4] better asserts X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This makes debugging boot failures nicer. Thanks, Nick Nicholas Piggin (4): core/exceptions.c: rearrange code to allow more interrupt types trap based assertions branch-to-NULL assert for ELFv2 ABI core/exceptions.c: do not include handler code in exception backtrace asm/head.S | 2 ++ core/exceptions.c | 56 ++++++++++++++++++++++++++++++++++++------- core/fast-reboot.c | 1 + core/init.c | 50 ++++++++++++++++++++++++++++++++------ core/platform.c | 6 ++++- core/stack.c | 30 +++++++++++++++++++---- core/utils.c | 19 ++++----------- include/processor.h | 3 +++ include/skiboot.h | 3 +++ include/stack.h | 3 +++ libc/include/assert.h | 44 +++++++++++++++++++++++++++------- libc/include/stdlib.h | 7 +----- skiboot.lds.S | 7 ++++++ 13 files changed, 181 insertions(+), 50 deletions(-)