Lines Matching refs:KERNELBASE
52 * KERNELBASE is the virtual address of the start of the kernel, it's often
55 * The kdump dump kernel is one example where KERNELBASE != PAGE_OFFSET.
63 * KERNELBASE, PAGE_OFFSET, and PHYSICAL_START are all configurable on
67 * KERNELBASE - PAGE_OFFSET = PHYSICAL_START - MEMORY_START
69 * Also, KERNELBASE >= PAGE_OFFSET and PHYSICAL_START >= MEMORY_START
73 * va = pa + KERNELBASE - PHYSICAL_START
76 * should subtract KERNELBASE.
81 #define KERNELBASE ASM_CONST(CONFIG_KERNEL_START)
107 #define VIRT_PHYS_OFFSET (KERNELBASE - PHYSICAL_START)
116 #define MEMORY_START (PHYSICAL_START + PAGE_OFFSET - KERNELBASE)
136 * virtual_base = ALIGN_DOWN(KERNELBASE,256M) +
140 * ALIGN_DOWN(_stext.run,256M) => ALIGN_DOWN(KERNELBASE,256M)
145 * __va(x) = (x) - PHYSICAL_START + KERNELBASE
149 * KERNELBASE = Compiled virtual address of _stext.
158 * Let the kernel be loaded at 64MB and KERNELBASE be 0xc0000000 (same as PAGE_OFFSET).
169 * __va(x) = (x) - [ PHYSICAL_START - Effective KERNELBASE ]
173 * Effective KERNELBASE = virtual_base =
174 * = ALIGN_DOWN(KERNELBASE,256M) +
180 * virt_phys_offset = Effective KERNELBASE - PHYSICAL_START
181 * = ALIGN_DOWN(KERNELBASE,256M) -
186 * __va(x) = x - PHYSICAL_START + Effective KERNELBASE
190 * __pa(x) = x + PHYSICAL_START - Effective KERNELBASE
261 * Don't compare things with KERNELBASE or PAGE_OFFSET to test for
329 return kernstart_virt_addr - KERNELBASE;