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
This commit is contained in:
David Greenman 1995-01-24 09:57:39 +00:00
parent fbdfe8ac22
commit fff3cea1a9
2 changed files with 2 additions and 76 deletions

View file

@ -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
/*

View file

@ -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
/*