Date: Sun, 8 Jun 2003 18:40:31 -0700 From: John-Mark Gurney <gurney_j@efn.org> To: freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org Subject: fixing sparc build Message-ID: <20030608184031.65067@hydrogen.funkthat.com>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030608184031.65067>