Module Name: src Committed By: matt Date: Wed Feb 15 01:46:42 UTC 2012
Modified Files: src/sys/arch/powerpc/include/oea: bat.h Log Message: When making BATU, use (BAT_XBL|BAT_BL) for the extended bat lengths. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/powerpc/include/oea/bat.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/oea/bat.h diff -u src/sys/arch/powerpc/include/oea/bat.h:1.15 src/sys/arch/powerpc/include/oea/bat.h:1.16 --- src/sys/arch/powerpc/include/oea/bat.h:1.15 Wed Feb 1 05:25:57 2012 +++ src/sys/arch/powerpc/include/oea/bat.h Wed Feb 15 01:46:42 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: bat.h,v 1.15 2012/02/01 05:25:57 matt Exp $ */ +/* $NetBSD: bat.h,v 1.16 2012/02/15 01:46:42 matt Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -129,7 +129,7 @@ struct bat { #define BAT_BL_TO_SIZE(bl) (((bl)+4) << 15) #define BATU(va, len, v) \ - (((va) & BAT_EPI) | ((len) & BAT_BL) | ((v) & BAT_V)) + (((va) & BAT_EPI) | ((len) & (BAT_BL|BAT_XBL)) | ((v) & BAT_V)) #define BATL(pa, wimg, pp) \ (((pa) & BAT_RPN) | (wimg) | (pp))