Page MenuHomeFreeBSD

D8502.diff
No OneTemporary

D8502.diff

Index: head/sys/arm/arm/pmap-v6.c
===================================================================
--- head/sys/arm/arm/pmap-v6.c
+++ head/sys/arm/arm/pmap-v6.c
@@ -2739,21 +2739,15 @@
/*
* Is given page managed?
*/
-static __inline boolean_t
+static __inline bool
is_managed(vm_paddr_t pa)
{
- vm_offset_t pgnum;
vm_page_t m;
- pgnum = atop(pa);
- if (pgnum >= first_page) {
- m = PHYS_TO_VM_PAGE(pa);
- if (m == NULL)
- return (FALSE);
- if ((m->oflags & VPO_UNMANAGED) == 0)
- return (TRUE);
- }
- return (FALSE);
+ m = PHYS_TO_VM_PAGE(pa);
+ if (m == NULL)
+ return (false);
+ return ((m->oflags & VPO_UNMANAGED) == 0);
}
static __inline boolean_t

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 16, 12:53 PM (5 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29764046
Default Alt Text
D8502.diff (679 B)

Event Timeline