Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17838
b: refs/heads/master
c: e8b736c
h: refs/heads/master
v: v3
  • Loading branch information
Helge Deller authored and Kyle McMartin committed Jan 11, 2006
1 parent fa6c459 commit 84c2d57
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 4d64c9f58e618b1bdbc91cb071e6c8d90f43d620
refs/heads/master: e8b736c860dd93ba26b391abc91891e03ca99858
7 changes: 7 additions & 0 deletions trunk/include/asm-parisc/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ extern int npmem_ranges;
#define pfn_valid(pfn) ((pfn) < max_mapnr)
#endif /* CONFIG_DISCONTIGMEM */

#ifdef CONFIG_HUGETLB_PAGE
#define HPAGE_SHIFT 22 /* 4MB (is this fixed?) */
#define HPAGE_SIZE ((1UL) << HPAGE_SHIFT)
#define HPAGE_MASK (~(HPAGE_SIZE - 1))
#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
#endif

#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)

#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
Expand Down

0 comments on commit 84c2d57

Please sign in to comment.