Subject: port-evbppc/29914: pmap_kenter_pa() too many arguments
To: None <port-evbppc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <smi@sm.sony.co.jp>
List: netbsd-bugs
Date: 04/07/2005 09:06:01
>Number:         29914
>Category:       port-evbppc
>Synopsis:       pmap_kenter_pa() too many arguments
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 07 09:06:00 +0000 2005
>Originator:     Shoichi Miyake
>Release:        NetBSD 3.99.3
>Organization:
Sony Corporation
>Environment:
System: NetBSD skysensor 3.99.3 NetBSD 3.99.3 (GENERIC) #0: Wed Apr 6 21:37:34 JST 2005 smi@skysensor:/work/nb/arch/i386/obj/sys/arch/i386/compile/GENERIC i386
Architecture: powerpc
Machine: evbppc
>Description:
	evbppc build fails on arch/powerpc/ibm4xx/pmap.c.
>How-To-Repeat:
	./build.sh -m evbppc
...
#   compile  EXPLORA451/pmap.o
/work/nb/evbppc/tools/bin/powerpc--netbsd-gcc -mcpu=403 -msoft-float -Wa,-maltiv
ec -ffreestanding -g -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-
length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compar
e -fno-zero-initialized-in-bss -D__explora__ -Devbppc=evbppc -I. -I/work/nb/src/
sys/arch -I/work/nb/src/sys -nostdinc -DPPC_INTR_IMPL=<powerpc/ibm4xx/ibm4xx_int
r.h> -DLKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/work/nb
/src/sys/dist/ipf -c /work/nb/src/sys/arch/powerpc/ibm4xx/pmap.c
/work/nb/src/sys/arch/powerpc/ibm4xx/pmap.c: In function `pmap_testout':
/work/nb/src/sys/arch/powerpc/ibm4xx/pmap.c:1787: error: too many arguments to f
unction `pmap_kenter_pa'

*** Failed target:  pmap.o

>Fix:
	Is just fixing the typo enough ?
Index: pmap.c
===================================================================
RCS file: /cvsroot/src/sys/arch/powerpc/ibm4xx/pmap.c,v
retrieving revision 1.34
diff -u -c -r1.34 pmap.c
*** pmap.c	1 Apr 2005 11:59:34 -0000	1.34
--- pmap.c	7 Apr 2005 08:29:02 -0000
***************
*** 1784,1790 ****
  	       ref, mod);
  
  	pmap_remove(pmap_kernel(), va, va + PAGE_SIZE);
! 	pmap_kenter_pa(va, pa, VM_PROT_ALL, VM_PROT_ALL);
  	uvm_km_free(kernel_map, (vaddr_t)va, PAGE_SIZE, UVM_KMF_WIRED);
  }
  #endif
--- 1784,1790 ----
  	       ref, mod);
  
  	pmap_remove(pmap_kernel(), va, va + PAGE_SIZE);
! 	pmap_kenter_pa(va, pa, VM_PROT_ALL);
  	uvm_km_free(kernel_map, (vaddr_t)va, PAGE_SIZE, UVM_KMF_WIRED);
  }
  #endif