Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41371
b: refs/heads/master
c: 620a480
h: refs/heads/master
i:
  41369: 0305615
  41367: 059b7e4
v: v3
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Nov 30, 2006
1 parent d1e9d86 commit 8606c65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99e3b942c62f42c8d5added63305e12372b06daf
refs/heads/master: 620a4802be8ee7989b1b6684b7198ebae02af854
9 changes: 7 additions & 2 deletions trunk/include/asm-mips/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,13 @@ typedef struct { unsigned long pgprot; } pgprot_t;
/* to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK)

#define __pa(x) ((unsigned long) (x) - PAGE_OFFSET)
#define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
#if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64)
#define __pa_page_offset(x) ((unsigned long)(x) < CKSEG0 ? PAGE_OFFSET : CKSEG0)
#else
#define __pa_page_offset(x) PAGE_OFFSET
#endif
#define __pa(x) ((unsigned long)(x) - __pa_page_offset(x))
#define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET))

#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)

Expand Down

0 comments on commit 8606c65

Please sign in to comment.