Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 163 #define __pv_stub(from,to,instr,type)
- 164 __asm__("@ __pv_stubn"
- 165 "1: " instr " %0, %1, %2n"
- 166 " .pushsection .pv_table,"a"n"
- 167 " .long 1bn"
- 168 " .popsectionn"
- 169 : "=r" (to)
- 170 : "r" (from), "I" (type))
- static inline unsigned long __virt_to_phys(unsigned long x)
- { unsigned long t;
- __pv_stub(x, t, "add", __PV_BITS_31_24);
- return t;
- }
- CONFIG_ARM_PATCH_PHYS_VIRT:
- Patch phys-to-virt and virt-to-phys translation functions at
- boot and module load time according to the position of the
- kernel in system memory.
- This can only be used with non-XIP MMU kernels where the base
- of physical memory is at a 16MB boundary, or theoretically 64K
- for the MSM machine class.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement