Module Name: src Committed By: christos Date: Sat Jan 14 21:33:09 UTC 2017
Modified Files: src/sys/arch/powerpc/include: param.h Log Message: belatedly fix constants for ppc64 (this does not define __arch64__ like sparc does?) To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/include/param.h diff -u src/sys/arch/powerpc/include/param.h:1.29 src/sys/arch/powerpc/include/param.h:1.30 --- src/sys/arch/powerpc/include/param.h:1.29 Tue Jan 29 10:47:16 2013 +++ src/sys/arch/powerpc/include/param.h Sat Jan 14 16:33:09 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.29 2013/01/29 15:47:16 kiyohara Exp $ */ +/* $NetBSD: param.h,v 1.30 2017/01/14 21:33:09 christos Exp $ */ /*- * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -41,17 +41,26 @@ #endif /* - * Machine dependent constants for PowerPC (32-bit only currently) + * Machine dependent constants for PowerPC * For userland regardless of port, force MACHINE to be "powerpc" */ #ifndef _KERNEL #undef MACHINE #endif -#ifndef MACHINE -#define MACHINE "powerpc" + +#ifdef _LP64 +# ifndef MACHINE +# define MACHINE "powerpc64" +# endif +# define MACHINE_ARCH "powerpc64" +# define MID_MACHINE MID_POWERPC64 +#else +# ifndef MACHINE +# define MACHINE "powerpc" +# endif +# define MACHINE_ARCH "powerpc" +# define MID_MACHINE MID_POWERPC #endif -#define MACHINE_ARCH "powerpc" -#define MID_MACHINE MID_POWERPC /* PowerPC-specific macro to align a stack pointer (downwards). */ #define STACK_ALIGNBYTES (16 - 1) /* AltiVec */