Module Name: src Committed By: matt Date: Sat Sep 5 03:20:21 UTC 2009
Modified Files: src/sys/arch/mips/include [matt-nb5-mips64]: cpuregs.h Log Message: Define MIPS_KSEGn_START as friends as being long. To generate a diff of this commit: cvs rdiff -u -r1.74.28.4 -r1.74.28.5 src/sys/arch/mips/include/cpuregs.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/mips/include/cpuregs.h diff -u src/sys/arch/mips/include/cpuregs.h:1.74.28.4 src/sys/arch/mips/include/cpuregs.h:1.74.28.5 --- src/sys/arch/mips/include/cpuregs.h:1.74.28.4 Sun Aug 30 13:03:02 2009 +++ src/sys/arch/mips/include/cpuregs.h Sat Sep 5 03:20:21 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cpuregs.h,v 1.74.28.4 2009/08/30 13:03:02 simonb Exp $ */ +/* $NetBSD: cpuregs.h,v 1.74.28.5 2009/09/05 03:20:21 matt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -82,11 +82,13 @@ * MIPS addresses are signed and we defining as negative so that * in LP64 kern they get sign-extended correctly. */ -#define MIPS_KSEG0_START (-0x7fffffff-1) /* 0x80000000 */ -#define MIPS_KSEG1_START -0x60000000 /* 0xa0000000 */ -#define MIPS_KSEG2_START -0x40000000 /* 0xc0000000 */ -#define MIPS_MAX_MEM_ADDR -0x42000000 /* 0xbe000000 */ -#define MIPS_RESERVED_ADDR -0x40380000 /* 0xbfc80000 */ +#ifndef _LOCORE +#define MIPS_KSEG0_START (-0x7fffffffL-1) /* 0x80000000 */ +#define MIPS_KSEG1_START -0x60000000L /* 0xa0000000 */ +#define MIPS_KSEG2_START -0x40000000L /* 0xc0000000 */ +#define MIPS_MAX_MEM_ADDR -0x42000000L /* 0xbe000000 */ +#define MIPS_RESERVED_ADDR -0x40380000L /* 0xbfc80000 */ +#endif #define MIPS_PHYS_MASK 0x1fffffff