Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179831
b: refs/heads/master
c: 8654164
h: refs/heads/master
i:
  179829: 4506a50
  179827: 38a046f
  179823: 1cc2346
v: v3
  • Loading branch information
David S. Miller committed Jan 14, 2010
1 parent 765c350 commit 59c67f3
Show file tree
Hide file tree
Showing 3 changed files with 3 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: af2e7cc27016eadcf3840325aaef59afece3b8f2
refs/heads/master: 8654164f54bd02787ae91db8526dcae8e7e34eeb
2 changes: 1 addition & 1 deletion trunk/arch/sparc/include/asm/io_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <asm/page.h> /* IO address mapping routines need this */
#include <asm/system.h>

#define page_to_phys(page) (((page) - mem_map) << PAGE_SHIFT)
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)

static inline u32 flip_dword (u32 l)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc/include/asm/page_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ extern unsigned long pfn_base;
#define phys_to_virt __va

#define ARCH_PFN_OFFSET (pfn_base)
#define virt_to_page(kaddr) (mem_map + ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT)))
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)

#define pfn_valid(pfn) (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
#define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
Expand Down

0 comments on commit 59c67f3

Please sign in to comment.