NetBSD Problem Report #28585

From  Wed Dec  8 06:03:48 2004
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 615F3251EC5
	for <>; Wed,  8 Dec 2004 06:03:48 +0000 (UTC)
Message-Id: <>
Date: Wed, 8 Dec 2004 00:03:47 -0600 (CST)
From: James Chacon <>
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
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
	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
	this data. 
	cat > foo.c <<"EOF"
#include <sys/param.h>

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.



State-Changed-From-To: open->feedback
State-Changed-When: Sat, 05 Mar 2011 14:36:48 +0000
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-When: Mon, 30 Apr 2012 23:43:48 +0000
Feedback timeout.
The inconsistency has been resolved in the other direction.


NetBSD Home
NetBSD PR Database Search

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