From nobody Thu Feb 03 10:52:48 2022 X-Original-To: freebsd-arm@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 74DAE19B0A28; Thu, 3 Feb 2022 10:53:08 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JqFrN2TjXz4cYs; Thu, 3 Feb 2022 10:53:08 +0000 (UTC) (envelope-from jsm@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643885588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Cf+BmybanCN5X1ZvHlYzfpUEtBPjlr+uQyQvoEVPxVw=; b=YgcfC5OkJD++sODrlHaGvRxVK0v7FhMvKO8Eo819FZD262vLMujtR2IMuLb29kMhKUJi94 LtQWIcpF4BKRAbP+faWeqdD0Yf8HSUCxF8hUgYZXFZNUkg/76AirvrEcwebjj4ZHUyjIFX vwXkBgTJIhlInLbdbF5Xsu+vu+qTYlyuElbzFu46tuPCDvdzhBkaeUYd7eE3WCfgynBGLi KqUXms1B8yj4xNpDtpndaxeTMPXTNC3Dd7qC/ENqRsyDjk35FGa8tsqTZJFYhbwZb10qxm ctkjSLquQpQKGQAsbE9sObkzGKa9YIKe/Yt7P/EuCV8+ytwIBrWLZwazXdDpeQ== Received: from [IPV6:2a06:4000:c189:1:1::2] (unknown [IPv6:2a06:4000:c189:1:1::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id CED3C242A2; Thu, 3 Feb 2022 10:53:07 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Message-ID: <54083e67-8052-575c-aab1-ad1cce2a7a3d@FreeBSD.org> Date: Thu, 3 Feb 2022 11:52:48 +0100 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 To: freebsd-current Content-Language: en-US Cc: freebsd-arm From: Jesper Schmitz Mouridsen Subject: d950c5898a2d8733cd6e75e7ef82b08acac79b34 breaks sys/arm64/iommu/iommu_pmap.c Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643885588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Cf+BmybanCN5X1ZvHlYzfpUEtBPjlr+uQyQvoEVPxVw=; b=RWWAw25JGTye8ILWRtt7o4raTLGYPGGQVrQS1KIyVw9noS81hqn2KIBoQKUkN/cdudUWHn /GUPAE1KVf9sRnqsW/02mOho4YcVIRcRRanE5ZM6A2Kt7yeDc368Pd0WcWvRZGHaW1YzvV ya/Z8sQMSRk5q8TLmBzYNTnb+QwflRxA6QNnFWIPPcQFRI0djDN6xW8eG3V7GhCL+OzRGI eTo2yUd/knKwnFnmzZW28N0CxvqIj5PPIiKtafBvoobvX05BerpHYD37v9mYhU+cFHXo5a heVpmM06sAVvUrfACAdKW291G80YkwNjuHZ1NzSaQCcLjVIfsg3iIDystKf0vg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643885588; a=rsa-sha256; cv=none; b=BvP9qIIX60NhaZ7DLyTNmxZt5jDNbRHjH0EIBBGGKP6slPT5vtY7ixH/VentLH34ChXxqp FkvqCl1E83DC5u+I5oB/XOmzJPxqkx9DpRU3uGkgfVSO95OCbaT88PtdUoEXqwLNfQKQi9 K7TQhaivHpr6V2hJIlHEkv3ujRU0tGcXPJnmjwtuJAkST9IDhdm3+46XZ/+DJNeerAFafk gdeRbWddXFx84ORqeyI2K96TN3ig2Dry71RHF/tC9NZBO9QXc5rHU76t+W8ynmmwMHmyvl i3Cq+uBfJOOEZslOdc+6s3oF+vRaiZkILdDA4G8FfazIK/m/+79CgjA6eDo2ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Hi d950c5898a2d8733cd6e75e7ef82b08acac79b34 breaks arm64 with options IOMMU. grep -nir vm_page.h sys/arm64/iommu/iommu_pmap.c sys/arm64/iommu/iommu_pmap.c:50:#include /usr/src/sys/arm64/iommu/iommu_pmap.c:539:52: error: implicit declaration of function 'UINT64_C' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ./machine/pte.h:53:21: note: expanded from macro 'ATTR_MASK' #define ATTR_MASK (ATTR_MASK_H | ATTR_MASK_L) ^ ./machine/pte.h:51:22: note: expanded from macro 'ATTR_MASK_H' #define ATTR_MASK_H UINT64_C(0xfffc000000000000) How best to fix this? #include in iommu_pmap.c? Thanks /jsm