From owner-freebsd-current@FreeBSD.ORG Sun Jun 8 18:40:34 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB9C937B401; Sun, 8 Jun 2003 18:40:34 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F9A843FBF; Sun, 8 Jun 2003 18:40:33 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h592Brvm019848; Sun, 8 Jun 2003 22:11:53 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h591eVKk079456; Sun, 8 Jun 2003 18:40:31 -0700 (PDT) (envelope-from jmg) Message-ID: <20030608184031.65067@hydrogen.funkthat.com> Date: Sun, 8 Jun 2003 18:40:31 -0700 From: John-Mark Gurney To: freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=wIy2ne0vdjdPXFts X-Mailer: Mutt 0.69 Organization: Cu Networking X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: fixing sparc build X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 01:40:35 -0000 --wIy2ne0vdjdPXFts Content-Type: text/plain; charset=us-ascii Does anyone object to me adding sparc64 to the #ifdef __alpha__ line in sys/disklabel.h? Attached is the patch I would commit. It has been verified to compile under sparc64. The only big change is that this changes the LABELOFFSET from 128 to 64 on sparc, but it doesn't look like any kernel source is using LABELOFFSET. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." --wIy2ne0vdjdPXFts Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="disklabel.patch" Index: disklabel.h =================================================================== RCS file: /home/ncvs/src/sys/sys/disklabel.h,v retrieving revision 1.104 diff -u -r1.104 disklabel.h --- disklabel.h 2003/06/07 09:06:39 1.104 +++ disklabel.h 2003/06/09 01:37:41 @@ -60,7 +60,7 @@ #define LABELOFFSET 0 /* offset of label in sector */ #endif -#ifdef __alpha__ +#if defined(__alpha__) || defined(__sparc64__) #define LABELSECTOR 0 #define LABELOFFSET 64 #endif --wIy2ne0vdjdPXFts--