Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82907
b: refs/heads/master
c: c2f71ee
h: refs/heads/master
i:
  82905: 2d46500
  82903: 3c04d06
v: v3
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Feb 4, 2008
1 parent 1bdd350 commit 5c679ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61e19a347ad4bcdda615ef77ef9c3e656e254f3d
refs/heads/master: c2f71ee2140b2a506735ff9fcb7e3b1dfaab8f2b
5 changes: 5 additions & 0 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ pte_t *lookup_address(unsigned long address, int *level)
pud = pud_offset(pgd, address);
if (pud_none(*pud))
return NULL;

*level = PG_LEVEL_1G;
if (pud_large(*pud) || !pud_present(*pud))
return (pte_t *)pud;

pmd = pmd_offset(pud, address);
if (pmd_none(*pmd))
return NULL;
Expand Down

0 comments on commit 5c679ae

Please sign in to comment.