From nobody Mon Apr 08 20:25:55 2024 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 4VD0wM62Fnz5Hhsr; Mon, 8 Apr 2024 20:25:55 +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 4VD0wM2nMCz3y1l; Mon, 8 Apr 2024 20:25:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712607955; 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=EYB5nHVhjEvJfrMocaw9dwMClKu8lH/xGU+63HMfy4A=; b=BTlVJ0wrP3SPcvP0IYeI779Av7+ce+XGG74Lrtzw/bo2Lx+kBJdFaWnmudLiuQmsXIyJIX 9QO1yyem1pxem+miBXnYDx4OvPiPKAS/H89p/XnRJDu4dGzkAnY7yjGNqwJKWfQ8nx+4Vq wR3sMcrhSFCbxqbQZAd4Ppg9p5H8mOstCiKyh5MDoRLBTxp5mgQHMqG2DpilBwM4GtNSGC FdEHcKGrZhafudbTBL6FwHsEMhDiS7cVHzivQi2RKwwnJTthEmEfKs0qwYSGJx6/mrrWnD yMYn1QNwhrpGUFoqfuFJRDoXEzZHD5DwhucTC3JvKeAsMYY0dR4obZ/g8DOPqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712607955; a=rsa-sha256; cv=none; b=v5nFxXUgkMhn+mpfkddqfQUrrCeYnbzf3j0zN5wsmTmK7LV75LZrTAojWNdROx9IjZv9Wj 70VC+O80XL2JX2ONQZ372eInhq4dkbTyCCl7l/7dToF1QEUNi3T3Pd9e7x9c1JvB9yBPFC SbaQ0PekFA5i6hY1CjPa6esXvpLs7k8BptWGKZfgAx93AHPbZo/qM9sHiHlnqkb5MJmnW4 t9gv0XMEVj+xccAi006Qhp6xixvVts3j9JPKz+K7gXPrbDSJmHlHb32onxib+ycTLKA4CY FooW+GKD6sWFlzQguVzd5Swr9K8y7TW3P+LhrbLWziu2JqDi/JcmgWA0R5txaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712607955; 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=EYB5nHVhjEvJfrMocaw9dwMClKu8lH/xGU+63HMfy4A=; b=oYAY9U9/X2CXcYgWvFwYpIoIB7uoq3o4sq6CzCRj+1YGbQ7kzxEaNEU2tEaA9dN9VeytCo HYnc4si8Fyd20vzwalbyeH1bMoN/BPybRIAVT9FV7/V+i8aaCFTl0roXzXLUwVTKz5xBS9 qzqrIjOEuSMd79gkqltA2cFANfCbjTVh0Mjtf1gnhL+a15J0h7ZEIQ0KQoiKxSt5/CqdW1 uZBnzS5EOoYFYnhn/y7zOXSRdogLjsg5b0eEWGMP1xTypRdiQJwvqL881YVs4w1uZqma/M oP8AbQm2cnw3AjMGgZfliPCxla1N8R8WBJJSpPfB5Z8lKz0QPWmwjb17CB1zEQ== 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 4VD0wM1yHvzQQR; Mon, 8 Apr 2024 20:25:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 438KPtqQ040108; Mon, 8 Apr 2024 20:25:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438KPtGV040105; Mon, 8 Apr 2024 20:25:55 GMT (envelope-from git) Date: Mon, 8 Apr 2024 20:25:55 GMT Message-Id: <202404082025.438KPtGV040105@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: af5f73700c47 - stable/13 - riscv: Add missing includes for DDB 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: af5f73700c470b567a17490c0a05b970ec119a45 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=af5f73700c470b567a17490c0a05b970ec119a45 commit af5f73700c470b567a17490c0a05b970ec119a45 Author: John Baldwin AuthorDate: 2024-02-15 20:20:30 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:57:06 +0000 riscv: Add missing includes for DDB The #ifdef DDB code in parse_metadata was dead code without opt_ddb.h. While here, update the call to db_fetch_ksymtab for changes in commit 02bc014a200a. Reviewed by: mhorne Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D43919 (cherry picked from commit 962b0bcbd924d308016237abc991280f15777e7f) --- sys/riscv/riscv/machdep.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c index 79305cbc29d8..ff074c91973a 100644 --- a/sys/riscv/riscv/machdep.c +++ b/sys/riscv/riscv/machdep.c @@ -33,6 +33,7 @@ * SUCH DAMAGE. */ +#include "opt_ddb.h" #include "opt_kstack_pages.h" #include "opt_platform.h" @@ -95,6 +96,10 @@ #include #endif +#ifdef DDB +#include +#endif + #ifdef FDT #include #include @@ -459,7 +464,7 @@ parse_metadata(void) #ifdef DDB ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, uintptr_t); ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, uintptr_t); - db_fetch_ksymtab(ksym_start, ksym_end); + db_fetch_ksymtab(ksym_start, ksym_end, 0); #endif #ifdef FDT try_load_dtb(kmdp);