From nobody Tue Mar 08 11:59:41 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 521E11A08CBB; Tue, 8 Mar 2022 11:59:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCYly1K1Zz3MZS; Tue, 8 Mar 2022 11:59:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646740782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fW1QRha6vpxUAJzeHyNFyICFEgvDc2rig1YK/Z/y7r0=; b=fOaFGfFYlAeIsj/KMp/jsK6voWIBVU3C/QP5FakmfVfkhwyG4rT3nzzIqJPj8ou+U6XIYM 7h+14UFzS6xnxewrYDlN8lowiYhnx6nhIOQg2fVelrrveVFnwZiozZkH07IgegAMGmZhYL PpEYEIBG2aDSy1XVvdGsWGDi3RccQj3ITHlYMyy0giz4r4YrWXa7c+iPeUASdEVO06eGNt H1P3KKUxMtP8KFLoA3Zn666ewPby7n7bJgkcnKG2LiYb2ns19FzqcO8bIeUDLVnal4bI+L kZvvMR89v/vFjnavI/hs/uY3T2ZyWRVBDTj2wBGTWtxXuHJ0dSuuDSyAnJZtIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0D2491C215; Tue, 8 Mar 2022 11:59:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 228Bxfq5004176; Tue, 8 Mar 2022 11:59:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 228BxfuS004175; Tue, 8 Mar 2022 11:59:41 GMT (envelope-from git) Date: Tue, 8 Mar 2022 11:59:41 GMT Message-Id: <202203081159.228BxfuS004175@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: e793a55a74eb - main - Print the instruction for the unknown exception List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e793a55a74eb34ae3225d620a9619554667efb30 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646740782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fW1QRha6vpxUAJzeHyNFyICFEgvDc2rig1YK/Z/y7r0=; b=hgo/y+IQUYDHjtcfAQ97FtyLxtV+YpZzL08lqEEequKsdEWrFVAO3rTNYM2qCpF6bmS5J5 dzpmiHZFXynSrV8HWp1S/u7W/XQjYUJHdZFNO3pGhO4TOl+m8cW10JfVe8e1tzou1cTAXX GoiJezSl5s3R3U2TsBKH6Z6Jja7hWucg+jLmNAk9muTWI/vaKydQnIlLj3yLLNg61M8dZd g2SuPchoOe+of2U68QLtzFfbl4asS90jzd/Kj6I7mcwpwo6eCDCUtMF9DU/+s7RM9tv05y 0Qt+hVn+y3it+8pqsn+Y52/VI/2ZjaG1owWbYNyxGT6h8U0gInUwdkVGcvroyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646740782; a=rsa-sha256; cv=none; b=qP3SApfc56NIVPG40M2G/8aFleY4EfzQonBl4WXCCMws5pUWISgfdBDwL8Oq8pyCzNCUns 4uXRQVfaxxcnIRnnF/+RtqxrnzETtSiTGokaWemjeNrgqCmhp5IOm6O3wtg6owV6TyOmad INt1BIrrxC0TgE9nI/g8law7kwLKbfWEBGEm2zu20pgAwXW38JiwBd4OjbnjUMWpC6uYNc ygCfp+LRtHY+0Xgchg88GHVKLfumxItiKioyEOiicGDXsyovFpCWwoxwtptW0n+Z2LbF3+ XxqGFC/8OzogPd71t15AX4C4DrpFOUQi6t9iHuOrmyjZ6jLY77RsRuDLmYDXTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=e793a55a74eb34ae3225d620a9619554667efb30 commit e793a55a74eb34ae3225d620a9619554667efb30 Author: Andrew Turner AuthorDate: 2022-03-08 11:02:02 +0000 Commit: Andrew Turner CommitDate: 2022-03-08 11:54:58 +0000 Print the instruction for the unknown exception The arm64 unknown exception will be raised when we execute an instruction that id invalid or disabled. To help debug these print the instruction that failed. Sponsored by: The FreeBSD Foundation --- sys/arm64/arm64/trap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index 93167f4d2347..fa921e39b844 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -492,6 +492,8 @@ do_el1h_sync(struct thread *td, struct trapframe *frame) case EXCP_UNKNOWN: if (undef_insn(1, frame)) break; + printf("Undefined instruction: %08x\n", + *(uint32_t *)frame->tf_elr); /* FALLTHROUGH */ default: print_registers(frame);