From nobody Thu Apr 07 14:38:47 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 CC96F1A81404; Thu, 7 Apr 2022 14:38:47 +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 4KZ3sg5S8sz4rSX; Thu, 7 Apr 2022 14:38:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649342327; 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=pLCl3L1zTaCCPjLDQRvDO61QxTegnFygZT/rlF6JWUc=; b=sMw/AlRzjqc12jjaCioJ0/2k9BlvR48nvNdmdKcnfhkh8hbUUnb1oSvwQRH1ps8YKyOBPp UjJdeyWKBeuDsnbOluu4oREtArHbSS0zNB9OMRaxpzbwb48GeiIA6SKEGkyrTV7qtuBI9Y eKsJoisIwx2b3YQkS438jFv9FlZb+rLtOmntW6sSjFXs2kWsrNHymjQl+ShYz5236YTCj9 7el4pjoy32a/CS3/HY3Gwqzolh45yHrxfgYmsOHfsl7Ed/p42qBnrA7eHkCOwVEg0mvOza qXIs79hpa1J+jKhHvrhwyMPcs7NYB9viMgMLxwl7KT+lVYVRWsZdGrhRwTj1Aw== 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 9739112033; Thu, 7 Apr 2022 14:38:47 +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 237Ecllq012684; Thu, 7 Apr 2022 14:38:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 237Ecl2R012683; Thu, 7 Apr 2022 14:38:47 GMT (envelope-from git) Date: Thu, 7 Apr 2022 14:38:47 GMT Message-Id: <202204071438.237Ecl2R012683@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: 41e6d2091ce5 - main - Enable subr_physmem_test on supported architectures 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: 41e6d2091ce5653d4ace3f0b9cbde1375d458c67 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649342327; 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=pLCl3L1zTaCCPjLDQRvDO61QxTegnFygZT/rlF6JWUc=; b=ml/eHt37CSMh4OEu7uWQZxfK7EhA8F3skPJbsAZEBNy+wWAexunh8i7Dgg3e2iQ6H/C4Ue sIht09+Iz8nVxHakt/a/ERA/a1U7hp/pjG9sbJUHB+7BYd2fPLIaZ2yY6p6x1irLhHO88t rNvUGOhbisYmYDlBm+X7YDjhfsxrepfGswvkFUeiIzFIP2BB+htOYscgzguVdCBweos+vr 95R3wjddfmYwBKNWw0ngFT6GtEipxy640xd7RPyfpO4hrMwnHEkm2UUl9pJrbFaeikNoFk Rn9Mbc8kLtxVNzNM+KxpBKaKwpwmpUaBgcAt3D7930NIJSS/+wcc8bLI4+Gz4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649342327; a=rsa-sha256; cv=none; b=FN12e8sLg2l0bip9dZLbgIItAhQn06bifZyaqrESgwV8TMdQ1FQOzEtFYybwN3BAVkBz8c lnOfKDv9ROUwXW9wItCEI3xtr8msUnPJH/HGJr65F0AeoMZZZytkmYtk0Ou+joeiWktkwF 8lJYt5K+kadRK6dp4ShmAV3kI3LMVVQ80xiiY9HJdAiOt88za96I5yryFyjTtMcMbLuCR7 EU3aWDTCqbLDsn5Ji2U0MdLMifkb7H5LXnHKuaeTU2t5LEBh7x0BncPsuDZFOyAAmeK8mV 3edhqGlPl4Vfufg9aNU3+QDXgGax51F0LWr5pfZwGOIrV0gJviA0RG6AGVfDfw== 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=41e6d2091ce5653d4ace3f0b9cbde1375d458c67 commit 41e6d2091ce5653d4ace3f0b9cbde1375d458c67 Author: Andrew Turner AuthorDate: 2022-04-07 13:29:25 +0000 Commit: Andrew Turner CommitDate: 2022-04-07 13:31:51 +0000 Enable subr_physmem_test on supported architectures Only build where it's supported. While here add support for amd64 to help with testing. Sponsored by: The FreeBSD Foundation --- sys/kern/subr_physmem.c | 2 +- tests/sys/kern/Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c index 08f08f0c1a5d..2c7837019ea2 100644 --- a/sys/kern/subr_physmem.c +++ b/sys/kern/subr_physmem.c @@ -73,7 +73,7 @@ __FBSDID("$FreeBSD$"); #if defined(__arm__) #define MAX_PHYS_ADDR 0xFFFFFFFFull -#elif defined(__aarch64__) || defined(__riscv) +#elif defined(__aarch64__) || defined(__amd64__) || defined(__riscv) #define MAX_PHYS_ADDR 0xFFFFFFFFFFFFFFFFull #endif diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile index dcca803ec70e..e674329f77b1 100644 --- a/tests/sys/kern/Makefile +++ b/tests/sys/kern/Makefile @@ -23,7 +23,9 @@ ATF_TESTS_C+= ptrace_test TEST_METADATA.ptrace_test+= timeout="15" ATF_TESTS_C+= reaper ATF_TESTS_C+= sigaltstack -#ATF_TESTS_C+= subr_physmem_test +.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH:Mpowerpc*} == "" +ATF_TESTS_C+= subr_physmem_test +.endif PLAIN_TESTS_C+= subr_unit_test ATF_TESTS_C+= sysctl_kern_proc ATF_TESTS_C+= sys_getrandom