-
- Downloads
MIPS: Add support for CONFIG_DEBUG_VIRTUAL
Provide hooks to intercept bad usages of virt_to_phys() and __pa_symbol() throughout the kernel. To make this possible, we need to rename the current implement of virt_to_phys() into __virt_to_phys_nodebug() and wrap it around depending on CONFIG_DEBUG_VIRTUAL. A similar thing is needed for __pa_symbol() which is now aliased to __phys_addr_symbol() whose implementation is either the direct return of RELOC_HIDE or goes through the debug version. Signed-off-by:Florian Fainelli <f.fainelli@gmail.com> Signed-off-by:
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Showing
- arch/mips/Kconfig 1 addition, 0 deletionsarch/mips/Kconfig
- arch/mips/include/asm/io.h 13 additions, 1 deletionarch/mips/include/asm/io.h
- arch/mips/include/asm/page.h 8 additions, 1 deletionarch/mips/include/asm/page.h
- arch/mips/kernel/vdso.c 3 additions, 2 deletionsarch/mips/kernel/vdso.c
- arch/mips/mm/Makefile 2 additions, 0 deletionsarch/mips/mm/Makefile
- arch/mips/mm/physaddr.c 56 additions, 0 deletionsarch/mips/mm/physaddr.c
arch/mips/mm/physaddr.c
0 → 100644
Please register or sign in to comment