Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 12:16:40 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>, FreeBSD ARM List <freebsd-arm@freebsd.org>
Subject:   Re: sys/modules/Makefile and MACHINE_ARCH vs arm64 (in use) vs aarch64 (not in use) VS. man arch; also COMPAT_FREEBSD32_ENABLED use
Message-ID:  <CANCZdfoRGUANSqWhhC=OOpEPc8zO3YkChKeqJS_NX6Cqn3_AjA@mail.gmail.com>
In-Reply-To: <B8EB365B-414B-4932-A6F0-7A52733607C5@yahoo.com>
References:  <B8EB365B-414B-4932-A6F0-7A52733607C5.ref@yahoo.com> <B8EB365B-414B-4932-A6F0-7A52733607C5@yahoo.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Those all look wrong to me.

Warner

On Wed, Aug 2, 2023, 11:27 AM Mark Millard <marklmi@yahoo.com> wrote:

> man arch reports:
>
>            MACHINE       MACHINE_CPUARCH       MACHINE_ARCH
>            arm64         aarch64               aarch64
> . . .
>            arm           arm                   armv6, armv7
>
> So I'd not expect arm64 in MACHINE_ARCH . But
> sys/modules/Makefile has (from a grep for MACHINE_ARCH):
>
> .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64"
> .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" ||
> ${MACHINE_ARCH:Mpowerpc64*}
>
>
> Another issue may be that COMPAT_FREEBSD32_ENABLED is only
> put to use in the Makefile for MACHINE_CPUARCH being i386
> or amd64 :
>
> .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
> _agp=           agp
> .if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED)
> . . .
>
>
>
>
> ===
> Mark Millard
> marklmi at yahoo.com
>
>

[-- Attachment #2 --]
<div dir="auto">Those all look wrong to me.<div dir="auto"><br></div><div dir="auto">Warner </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 2, 2023, 11:27 AM Mark Millard &lt;<a href="mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">man arch reports:<br>
<br>
           MACHINE       MACHINE_CPUARCH       MACHINE_ARCH<br>
           arm64         aarch64               aarch64<br>
. . .<br>
           arm           arm                   armv6, armv7<br>
<br>
So I&#39;d not expect arm64 in MACHINE_ARCH . But<br>
sys/modules/Makefile has (from a grep for MACHINE_ARCH):<br>
<br>
.if ${MACHINE_ARCH} == &quot;amd64&quot; || ${MACHINE_ARCH} == &quot;arm64&quot;<br>
.if ${MACHINE_ARCH} == &quot;amd64&quot; || ${MACHINE_ARCH} == &quot;arm64&quot; || ${MACHINE_ARCH:Mpowerpc64*}<br>
<br>
<br>
Another issue may be that COMPAT_FREEBSD32_ENABLED is only<br>
put to use in the Makefile for MACHINE_CPUARCH being i386<br>
or amd64 :<br>
<br>
.if ${MACHINE_CPUARCH} == &quot;i386&quot; || ${MACHINE_CPUARCH} == &quot;amd64&quot;<br>
_agp=           agp<br>
.if ${MACHINE_CPUARCH} == &quot;i386&quot; || !empty(COMPAT_FREEBSD32_ENABLED)<br>
. . .<br>
<br>
<br>
<br>
<br>
===<br>
Mark Millard<br>
marklmi at <a href="http://yahoo.com" rel="noreferrer noreferrer" target="_blank">yahoo.com</a><br>
<br>
</blockquote></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoRGUANSqWhhC=OOpEPc8zO3YkChKeqJS_NX6Cqn3_AjA>