Subject: small patch for kernel build
To: None <port-pmax@NetBSD.ORG>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 06/18/1997 13:40:26
Here's a small patch I needed to build today's kernel (well, and
yesterday's too, but I forgot).  Without looking, I'm not sure if
all the caddr_t's should be vm_offset_t's or vice versa...

Simon.

ps.  Do people want PR's for these small changes (especially when things
are in the middle of changing muchly), and are context or unidiffs the
way to go?  I prefer context myself, but whatever goes...

*** /ftp/pub/NetBSD/NetBSD-current/src/sys/arch/mips/mips/pmap.c	Mon Jun 16 21:44:00 1997
--- sys/arch/mips/mips/pmap.c	Wed Jun 18 13:15:39 1997
***************
*** 163,172 ****
  u_int		Sysmapsize;		/* number of pte's in Sysmap */
  
  
- #ifdef MIPS3
- extern MachHitFlushDCache __P((vm_offset_t, int));
- #endif
- 
  /* Forward function declarations */
  int	pmap_remove_pv __P((pmap_t pmap, vm_offset_t va, vm_offset_t pa));
  int	pmap_alloc_tlbpid __P((register struct proc *p));
--- 163,168 ----
***************
*** 472,478 ****
  			}
  #endif
  #ifdef MIPS3
! 			MachHitFlushDCache((vm_offset_t)pte, PAGE_SIZE);
  			vm_page_free1(
  				PHYS_TO_VM_PAGE(MACH_CACHED_TO_PHYS(pte)));
  #endif
--- 468,474 ----
  			}
  #endif
  #ifdef MIPS3
! 			MachHitFlushDCache((caddr_t)pte, PAGE_SIZE);
  			vm_page_free1(
  				PHYS_TO_VM_PAGE(MACH_CACHED_TO_PHYS(pte)));
  #endif
*** /ftp/pub/NetBSD/NetBSD-current/src/sys/arch/pmax/pmax/machdep.c	Mon Jun 16 21:45:00 1997
--- sys/arch/pmax/pmax/machdep.c	Wed Jun 18 13:17:15 1997
***************
*** 455,461 ****
  	bzero(start, v - start);
  #ifdef MIPS3
  	mips3_FlushDCache(MACH_CACHED_TO_PHYS(start), v - start);
! 	MachHitFlushDCache(UADDR, UPAGES * NBPG);
  #endif
  
  	/*
--- 455,461 ----
  	bzero(start, v - start);
  #ifdef MIPS3
  	mips3_FlushDCache(MACH_CACHED_TO_PHYS(start), v - start);
! 	MachHitFlushDCache((caddr_t)UADDR, UPAGES * NBPG);
  #endif
  
  	/*