Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: Create the LOAD_OFFSET macro used to compute VMA vs LMA offsets

LOAD_OFFSET is the offset between the physical load address and the kernel's
virtual address. It will be used in the upcoming commit to vmlinux.ld.S to
make sure that the LMAs of sections in vmlinux are correct.

Signed-off-by: John Williams <john.williams@petalogix.com>

authored by

John Williams and committed by
Michal Simek
a1253977 19086765

+3
+3
arch/microblaze/include/asm/page.h
··· 17 17 18 18 #include <linux/pfn.h> 19 19 #include <asm/setup.h> 20 + #include <asm/asm-compat.h> 20 21 #include <linux/const.h> 21 22 22 23 #ifdef __KERNEL__ ··· 26 25 #define PAGE_SHIFT (12) 27 26 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) 28 27 #define PAGE_MASK (~(PAGE_SIZE-1)) 28 + 29 + #define LOAD_OFFSET ASM_CONST((CONFIG_KERNEL_START-CONFIG_KERNEL_BASE_ADDR)) 29 30 30 31 #ifndef __ASSEMBLY__ 31 32