Subject: Re: testers, please?
To: None <port-next68k@netbsd.org>
From: Darrin B. Jewell <dbj@netbsd.org>
List: port-next68k
Date: 04/25/1999 12:05:22
Could someone test this patch on a 1.4 branch next68k kernel,
and report back to chuq@chuq.com (and the list, to avoid
duplicated effort) as to whether everything works ok?

Thanks,

Darrin



Index: src/sys/arch/next68k/next68k/pmap.c
diff -c src/sys/arch/next68k/next68k/pmap.c:1.12 src/sys/arch/next68k/next68k/pmap.c:1.13
*** src/sys/arch/next68k/next68k/pmap.c:1.12	Fri Mar 26 21:57:05 1999
--- src/sys/arch/next68k/next68k/pmap.c	Wed Apr 21 21:24:54 1999
***************
*** 1,4 ****
! /*	$NetBSD: pmap.c,v 1.12 1999/03/27 05:57:05 mycroft Exp $        */
  
  /*
   * This file was taken from mvme68k/mvme68k/pmap.c
--- 1,4 ----
! /*	$NetBSD: pmap.c,v 1.13 1999/04/22 04:24:54 chs Exp $        */
  
  /*
   * This file was taken from mvme68k/mvme68k/pmap.c
***************
*** 1894,1913 ****
  		}
  #endif
  		/*
! 		 * Mark it unmodified to avoid pageout
  		 */
! 		pmap_changebit(pa, PG_M, FALSE);
  #ifdef DEBUG
- 		if ((PHYS_TO_VM_PAGE(pa)->flags & PG_CLEAN) == 0) {
- 			printf("pa %lx: flags=%x: not clean\n",
- 			       pa, PHYS_TO_VM_PAGE(pa)->flags);
- 			PHYS_TO_VM_PAGE(pa)->flags |= PG_CLEAN;
- 		}
  		if (pmapdebug & PDB_PTPAGE)
! 			printf("pmap_pageable: PT page %lx(%x) unmodified\n",
  			       sva, *pmap_pte(pmap, sva));
- 		if (pmapdebug & PDB_WIRING)
- 			pmap_check_wiring("pageable", sva);
  #endif
  	}
  }
--- 1894,1908 ----
  		}
  #endif
  		/*
! 		 * page is unused, free it now!
  		 */
! 		pmap_remove_mapping(pv->pv_pmap, pv->pv_va,
! 				    NULL, PRM_TFLUSH|PRM_CFLUSH);
! 		uvm_pagefree(PHYS_TO_VM_PAGE(pa));
  #ifdef DEBUG
  		if (pmapdebug & PDB_PTPAGE)
! 			printf("pmap_pageable: PT page %lx(%x) freed\n",
  			       sva, *pmap_pte(pmap, sva));
  #endif
  	}
  }