NetBSD Problem Report #28585

From jmc@netbsd.org  Wed Dec  8 06:03:48 2004
Return-Path: <jmc@netbsd.org>
Received: from quix.chacons.net (ip68-102-219-81.ks.ok.cox.net [68.102.219.81])
	by narn.netbsd.org (Postfix) with ESMTP id 615F3251EC5
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  8 Dec 2004 06:03:48 +0000 (UTC)
Message-Id: <200412080603.iB863lo6005577@netbsd.org>
Date: Wed, 8 Dec 2004 00:03:47 -0600 (CST)
From: James Chacon <jmc@netbsd.org>
Reply-To: jmc@netbsd.org
To: gnats-bugs@netbsd.org
Subject: arm treats MACHINE differently than all other combined arch's
X-Send-Pr-Version: 3.95

>Number:         28585
>Category:       port-arm
>Synopsis:       arm treats MACHINE differently than all other combined arch's
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 08 06:06:00 +0000 2004
>Closed-Date:    Mon Apr 30 23:43:48 +0000 2012
>Last-Modified:  Mon Apr 30 23:43:48 +0000 2012
>Originator:     James Chacon
>Release:        NetBSD 2.0G
>Organization:
>Environment:
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
Architecture: i386
Machine: i386
>Description:
	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
	behavior.

	Most likely MACHINE/MACHINE_ARCH should be expunged completely from
	user space visibility as code should be using uname(3) to extract
	this data. 
>How-To-Repeat:
	cat > foo.c <<"EOF"
#include <sys/param.h>

char *foo = MACHINE;
EOF

gcc -dM -E foo.c |egrep MACHINE

(on an arm platform, or use a cross setup)
>Fix:
	Make this line up with other archs or expunge MACHINE/MACHINE_ARCH
	from userspace finally.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: matt@NetBSD.org
State-Changed-When: Sat, 05 Mar 2011 14:36:48 +0000
State-Changed-Why:
ARM only sets MACHINE to "arm" for userland (when _KERNEL is not defined).
Instead of changing ARM to be like powerpc, mips, m68k, etc those ports have
now been changed to act as arm and present a consistent MACHINE to userland.
This is one step forward in getting common consistent per MACHINE_ARCH.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 30 Apr 2012 23:43:48 +0000
State-Changed-Why:
Feedback timeout.
The inconsistency has been resolved in the other direction.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.