diff options
| author | Alan Cox <alc@FreeBSD.org> | 2007-12-04 08:17:04 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2007-12-04 08:17:04 +0000 |
| commit | 491bc4fe00c6ba7017da8ed93b902fac3c89989d (patch) | |
| tree | 9a32c748a7b0f3c080ad93565c112b555b568844 /sys/amd64 | |
| parent | 136286a1411e0c6c9f36358f2b5828395b735423 (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/amd64/pmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index f23ec7ae4ff7..18aa5c526a46 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1430,9 +1430,9 @@ retry: * This supports switching from a 2MB page to a * normal 4K page. */ - if (pd != 0 && (*pd & (PG_PS | PG_V)) == (PG_PS | PG_V)) { + if (pd != NULL && (*pd & (PG_PS | PG_V)) == (PG_PS | PG_V)) { *pd = 0; - pd = 0; + pd = NULL; pmap->pm_stats.resident_count -= NBPDR / PAGE_SIZE; free = NULL; pmap_unuse_pt(pmap, va, *pmap_pdpe(pmap, va), &free); @@ -1444,7 +1444,7 @@ retry: * If the page table page is mapped, we just increment the * hold count, and activate it. */ - if (pd != 0 && (*pd & PG_V) != 0) { + if (pd != NULL && (*pd & PG_V) != 0) { m = PHYS_TO_VM_PAGE(*pd & PG_FRAME); m->wire_count++; } else { |
