Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209184
b: refs/heads/master
c: 8fd4993
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Ingo Molnar committed Aug 11, 2010
1 parent ae1ff8a commit 42120e1
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: 5989cd6a1cbf86587edcc856791f960978087311
refs/heads/master: 8fd49936a8cac246fc9ed85508556c82cd44cf68
7 changes: 7 additions & 0 deletions trunk/arch/x86/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ static inline void copy_user_page(void *to, void *from, unsigned long vaddr,
#define __pa_nodebug(x) __phys_addr_nodebug((unsigned long)(x))
/* __pa_symbol should be used for C visible symbols.
This seems to be the official gcc blessed way to do such arithmetic. */
/*
* We need __phys_reloc_hide() here because gcc may assume that there is no
* overflow during __pa() calculation and can optimize it unexpectedly.
* Newer versions of gcc provide -fno-strict-overflow switch to handle this
* case properly. Once all supported versions of gcc understand it, we can
* remove this Voodoo magic stuff. (i.e. once gcc3.x is deprecated)
*/
#define __pa_symbol(x) __pa(__phys_reloc_hide((unsigned long)(x)))

#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
Expand Down

0 comments on commit 42120e1

Please sign in to comment.