Lines Matching refs:KERNELBASE
51 * KERNELBASE is the virtual address of the start of the kernel, it's often
54 * The kdump dump kernel is one example where KERNELBASE != PAGE_OFFSET.
62 * KERNELBASE, PAGE_OFFSET, and PHYSICAL_START are all configurable on
66 * KERNELBASE - PAGE_OFFSET = PHYSICAL_START - MEMORY_START
68 * Also, KERNELBASE >= PAGE_OFFSET and PHYSICAL_START >= MEMORY_START
72 * va = pa + KERNELBASE - PHYSICAL_START
75 * should subtract KERNELBASE.
80 #define KERNELBASE ASM_CONST(CONFIG_KERNEL_START)
106 #define VIRT_PHYS_OFFSET (KERNELBASE - PHYSICAL_START)
115 #define MEMORY_START (PHYSICAL_START + PAGE_OFFSET - KERNELBASE)
154 * virtual_base = ALIGN_DOWN(KERNELBASE,256M) +
158 * ALIGN_DOWN(_stext.run,256M) => ALIGN_DOWN(KERNELBASE,256M)
163 * __va(x) = (x) - PHYSICAL_START + KERNELBASE
167 * KERNELBASE = Compiled virtual address of _stext.
176 * Let the kernel be loaded at 64MB and KERNELBASE be 0xc0000000 (same as PAGE_OFFSET).
187 * __va(x) = (x) - [ PHYSICAL_START - Effective KERNELBASE ]
191 * Effective KERNELBASE = virtual_base =
192 * = ALIGN_DOWN(KERNELBASE,256M) +
198 * virt_phys_offset = Effective KERNELBASE - PHYSICAL_START
199 * = ALIGN_DOWN(KERNELBASE,256M) -
204 * __va(x) = x - PHYSICAL_START + Effective KERNELBASE
208 * __pa(x) = x + PHYSICAL_START - Effective KERNELBASE
260 * Don't compare things with KERNELBASE or PAGE_OFFSET to test for
334 return kernstart_virt_addr - KERNELBASE;