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>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ed657e0601f4aab3
Content-Type: text/plain; charset="UTF-8"

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
>
>

--000000000000ed657e0601f4aab3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Those all look wrong=C2=A0to me.<div dir=3D"auto"><br></d=
iv><div dir=3D"auto">Warner=C2=A0</div></div><br><div class=3D"gmail_quote"=
><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Aug 2, 2023, 11:27 AM Mark M=
illard &lt;<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>&gt; w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex">man arch reports:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MACHINE=C2=A0 =C2=A0 =C2=A0 =C2=A0=
MACHINE_CPUARCH=C2=A0 =C2=A0 =C2=A0 =C2=A0MACHINE_ARCH<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0arm64=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0aarch64=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0aarch64=
<br>
. . .<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0arm=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0arm=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0armv6, 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} =3D=3D &quot;amd64&quot; || ${MACHINE_ARCH} =3D=3D &quo=
t;arm64&quot;<br>
.if ${MACHINE_ARCH} =3D=3D &quot;amd64&quot; || ${MACHINE_ARCH} =3D=3D &quo=
t;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} =3D=3D &quot;i386&quot; || ${MACHINE_CPUARCH} =3D=3D=
 &quot;amd64&quot;<br>
_agp=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0agp<br>
.if ${MACHINE_CPUARCH} =3D=3D &quot;i386&quot; || !empty(COMPAT_FREEBSD32_E=
NABLED)<br>
. . .<br>
<br>
<br>
<br>
<br>
=3D=3D=3D<br>
Mark Millard<br>
marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer noreferrer" targe=
t=3D"_blank">yahoo.com</a><br>
<br>
</blockquote></div>

--000000000000ed657e0601f4aab3--



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