Remove the hack to compile oea/pmap.c with -Wno-cast-qual, and instead

make use of the new __UNVOLATILE() macro in memset() usage.
This commit is contained in:
he 2005-06-02 14:35:08 +00:00
parent 55479da63d
commit 45cee85f31
3 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.powerpc,v 1.34 2005/06/02 10:22:20 he Exp $
# $NetBSD: Makefile.powerpc,v 1.35 2005/06/02 14:35:08 he Exp $
#
# Makefile for NetBSD
#
@ -45,8 +45,6 @@ CFLAGS+= -mno-strict-align
CFLAGS+= -msoft-float ${CCPUOPTS} -Wa,-maltivec
AFLAGS+= ${AOPTS}
CC_NO_CAST_QUAL= CFLAGS="${CFLAGS} -Wno-cast-qual" ${NORMAL_C}
##
## (3) libkern and compat
##

View File

@ -1,4 +1,4 @@
# $NetBSD: files.powerpc,v 1.59 2005/06/02 10:22:20 he Exp $
# $NetBSD: files.powerpc,v 1.60 2005/06/02 14:35:08 he Exp $
defflag opt_altivec.h ALTIVEC K_ALTIVEC
defflag opt_openpic.h OPENPIC OPENPIC_SERIAL_MODE
@ -47,7 +47,7 @@ file arch/powerpc/ibm4xx/copyoutstr.c ppc_ibm4xx
file arch/powerpc/oea/altivec.c ppc_oea & altivec
file arch/powerpc/oea/cpu_subr.c ppc_oea
file arch/powerpc/oea/oea_machdep.c ppc_oea
file arch/powerpc/oea/pmap.c ppc_oea compile-with "${CC_NO_CAST_QUAL}"
file arch/powerpc/oea/pmap.c ppc_oea
file arch/powerpc/powerpc/fpu.c ppc_oea
file arch/powerpc/powerpc/trap.c ppc_oea

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.31 2005/06/02 09:47:21 he Exp $ */
/* $NetBSD: pmap.c,v 1.32 2005/06/02 14:35:08 he Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.31 2005/06/02 09:47:21 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.32 2005/06/02 14:35:08 he Exp $");
#include "opt_ppcarch.h"
#include "opt_altivec.h"
@ -3092,7 +3092,8 @@ pmap_bootstrap(paddr_t kernelstart, paddr_t kernelend)
pmap_pteg_table, size);
#endif
memset((void *)pmap_pteg_table, 0, pmap_pteg_cnt * sizeof(struct pteg));
memset(__UNVOLATILE(pmap_pteg_table), 0,
pmap_pteg_cnt * sizeof(struct pteg));
pmap_pteg_mask = pmap_pteg_cnt - 1;
/*