Subject: port-sun3/8444: some prototype mismatch in sun3x/pmap.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 09/19/1999 00:59:58
>Number:         8444
>Category:       port-sun3
>Synopsis:       some prototype mismatch in sun3x/pmap.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-sun3-maintainer (NetBSD/sun3 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 19 00:50:01 1999
>Last-Modified:
>Originator:     Izumi Tsutsui
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Release:        NetBSD-current 19990918
>Environment:
System: NetBSD chariot 1.4K on sun3/80

>Description:
There are some prototype mismatch in sun3x/pmap.c
so sun3x kernel does not compile.

>How-To-Repeat:
Config and make a sun3x kernel. sun3x/pmap.c would not compile.

>Fix:
Index: sys/arch/sun3/sun3x/pmap.c
===================================================================
RCS file: /cvs/repository/src/sys/arch/sun3/sun3x/pmap.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 pmap.c
--- pmap.c	1999/09/14 19:46:53	1.1.1.2
+++ pmap.c	1999/09/19 07:03:18
@@ -2920,7 +2920,7 @@
 	boolean_t rv;
 
 	if (!is_managed(pa))
-		return;
+		return FALSE;
 	rv = pmap_is_referenced(pg);
 	pmap_clear_pv(pa, PV_FLAGS_USED);
 	return rv;
Index: sys/arch/sun3/sun3x/pmap_pvt.h
===================================================================
RCS file: /cvs/repository/src/sys/arch/sun3/sun3x/pmap_pvt.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pmap_pvt.h
--- pmap_pvt.h	1999/09/11 15:54:58	1.1.1.1
+++ pmap_pvt.h	1999/09/19 07:04:25
@@ -187,7 +187,7 @@
 void   pmap_enter_kernel __P((vm_offset_t, vm_offset_t, vm_prot_t));
 void   pmap_remove_kernel __P((vm_offset_t, vm_offset_t));
 void   pmap_protect_kernel __P((vm_offset_t, vm_offset_t, vm_prot_t));
-vm_offset_t pmap_extract_kernel __P((vm_offset_t));
+boolean_t pmap_extract_kernel __P((vaddr_t, paddr_t *));
 vm_offset_t pmap_get_pteinfo __P((u_int, pmap_t *, c_tmgr_t **));
 void   pmap_pinit __P((pmap_t));
 int    pmap_dereference __P((pmap_t));

>Audit-Trail:
>Unformatted: