Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113346
b: refs/heads/master
c: a1bf963
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Ingo Molnar committed Jun 19, 2008
1 parent 7b8a992 commit fb3b21b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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: 59ea746337c69f6a5f1bc4d5e8544b3cbf12f801
refs/heads/master: a1bf9631be7332ce0641e299ddafad2d8223100f
2 changes: 2 additions & 0 deletions trunk/arch/x86/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static inline int phys_addr_valid(unsigned long addr)
return 1;
}

#ifdef CONFIG_DEBUG_VIRTUAL
unsigned long __phys_addr(unsigned long x)
{
/* VMALLOC_* aren't constants; not available at the boot time */
Expand All @@ -59,6 +60,7 @@ unsigned long __phys_addr(unsigned long x)
return x - PAGE_OFFSET;
}
EXPORT_SYMBOL(__phys_addr);
#endif

#endif

Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-x86/mmzone_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ static inline __attribute__((pure)) int phys_to_nid(unsigned long addr)
{
unsigned nid;
VIRTUAL_BUG_ON(!memnodemap);
VIRTUAL_BUG_ON((addr >> memnode_shift) >= memnodemapsize);
nid = memnodemap[addr >> memnode_shift];
VIRTUAL_BUG_ON(nid >= MAX_NUMNODES || !node_data[nid]);
return nid;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-x86/page_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ typedef struct page *pgtable_t;

#ifndef __ASSEMBLY__
#define __phys_addr_const(x) ((x) - PAGE_OFFSET)
#ifdef CONFIG_DEBUG_VIRTUAL
extern unsigned long __phys_addr(unsigned long);
#else
#define __phys_addr(x) ((x) - PAGE_OFFSET)
#endif
#define __phys_reloc_hide(x) RELOC_HIDE((x), 0)

#ifdef CONFIG_FLATMEM
Expand Down

0 comments on commit fb3b21b

Please sign in to comment.