From fff3cea1a92a80140e041c6301d33185e4d86ca1 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 24 Jan 1995 09:57:39 +0000 Subject: [PATCH] Moved various pmap 'bit' test/set functions back into real functions; gcc generates better code at the expense of more of it. Submitted by: John Dyson --- sys/amd64/include/pmap.h | 39 +-------------------------------------- sys/i386/include/pmap.h | 39 +-------------------------------------- 2 files changed, 2 insertions(+), 76 deletions(-) diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 190b8dd8047..f2d72c4b850 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -42,7 +42,7 @@ * * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 - * $Id: pmap.h,v 1.19 1994/12/18 03:11:46 davidg Exp $ + * $Id: pmap.h,v 1.20 1995/01/09 16:04:44 davidg Exp $ */ #ifndef _MACHINE_PMAP_H_ @@ -130,43 +130,6 @@ pmap_kextract(vm_offset_t va) pa = (pa & PG_FRAME) | (va & ~PG_FRAME); return pa; } - -/* - * pmap_is_referenced: - * - * Return whether or not the specified physical page was referenced - * by any physical maps. - */ -#define pmap_is_referenced(pa) pmap_testbit((pa), PG_U) - -/* - * pmap_is_modified: - * - * Return whether or not the specified physical page was modified - * in any physical maps. - */ -#define pmap_is_modified(pa) pmap_testbit((pa), PG_M) - -/* - * Clear the modify bits on the specified physical page. - */ -#define pmap_clear_modify(pa) pmap_changebit((pa), PG_M, FALSE) - -/* - * pmap_clear_reference: - * - * Clear the reference bit on the specified physical page. - */ -#define pmap_clear_reference(pa) pmap_changebit((pa), PG_U, FALSE) - -/* - * Routine: pmap_copy_on_write - * Function: - * Remove write privileges from all - * physical maps for this physical page. - */ -#define pmap_copy_on_write(pa) pmap_changebit((pa), PG_RW, FALSE) - #endif /* diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h index 190b8dd8047..f2d72c4b850 100644 --- a/sys/i386/include/pmap.h +++ b/sys/i386/include/pmap.h @@ -42,7 +42,7 @@ * * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 - * $Id: pmap.h,v 1.19 1994/12/18 03:11:46 davidg Exp $ + * $Id: pmap.h,v 1.20 1995/01/09 16:04:44 davidg Exp $ */ #ifndef _MACHINE_PMAP_H_ @@ -130,43 +130,6 @@ pmap_kextract(vm_offset_t va) pa = (pa & PG_FRAME) | (va & ~PG_FRAME); return pa; } - -/* - * pmap_is_referenced: - * - * Return whether or not the specified physical page was referenced - * by any physical maps. - */ -#define pmap_is_referenced(pa) pmap_testbit((pa), PG_U) - -/* - * pmap_is_modified: - * - * Return whether or not the specified physical page was modified - * in any physical maps. - */ -#define pmap_is_modified(pa) pmap_testbit((pa), PG_M) - -/* - * Clear the modify bits on the specified physical page. - */ -#define pmap_clear_modify(pa) pmap_changebit((pa), PG_M, FALSE) - -/* - * pmap_clear_reference: - * - * Clear the reference bit on the specified physical page. - */ -#define pmap_clear_reference(pa) pmap_changebit((pa), PG_U, FALSE) - -/* - * Routine: pmap_copy_on_write - * Function: - * Remove write privileges from all - * physical maps for this physical page. - */ -#define pmap_copy_on_write(pa) pmap_changebit((pa), PG_RW, FALSE) - #endif /*