Subject: port-arm/28585: arm treats MACHINE differently than all other combined arch's
To: None <email@example.com, firstname.lastname@example.org,>
From: James Chacon <email@example.com>
Date: 12/08/2004 06:06:00
>Synopsis: arm treats MACHINE differently than all other combined arch's
>Arrival-Date: Wed Dec 08 06:06:00 +0000 2004
>Originator: James Chacon
>Release: NetBSD 2.0G
System: NetBSD quix 2.0G NetBSD 2.0G (QUIX) #3: Tue Aug 17 23:48:17 CDT 2004 root@quix:/local0/src/sys/arch/i386/compile/QUIX i386
The param.h in sys/arch/arm/include/param.h uncontionally sets
MACHINE to "arm" regardless of the actual machine in use.
This is completely different than any other combined arch does
(m68k, powerpc, etc) and should be cleaned up to have the same
Most likely MACHINE/MACHINE_ARCH should be expunged completely from
user space visibility as code should be using uname(3) to extract
cat > foo.c <<"EOF"
char *foo = MACHINE;
gcc -dM -E foo.c |egrep MACHINE
(on an arm platform, or use a cross setup)
Make this line up with other archs or expunge MACHINE/MACHINE_ARCH
from userspace finally.