1 /* SPDX-License-Identifier: GPL-2.0 */
5 * CONFIG_MEMORY_START +-----------------------+
7 * +-----------------------+
10 * CONFIG_MEMORY_START +-----------------------+
12 * +-----------------------+
14 * BOOT_RELOC_ADDR +-----------------------+
16 * KERNEL_DECOMPRESS_ADDR +-----------------------+
18 * +-----------------------+
20 * 3. relocate copy & jump code
22 * CONFIG_MEMORY_START +-----------------------+
24 * +-----------------------+
26 * BOOT_RELOC_ADDR +-----------------------+
28 * KERNEL_DECOMPRESS_ADDR +-----------------------+
30 * +-----------------------+
32 * 4. relocate decompressed kernel
34 * CONFIG_MEMORY_START +-----------------------+
36 * +-----------------------+
38 * BOOT_RELOC_ADDR +-----------------------+
40 * KERNEL_DECOMPRESS_ADDR +-----------------------+
42 * +-----------------------+
51 #define DECOMPRESS_OFFSET_BASE __val(0x00900000)
52 #define BOOT_RELOC_SIZE __val(0x00001000)
54 #define KERNEL_EXEC_ADDR __val(CONFIG_MEMORY_START)
55 #define KERNEL_DECOMPRESS_ADDR __val(CONFIG_MEMORY_START + \
56 DECOMPRESS_OFFSET_BASE + BOOT_RELOC_SIZE)
57 #define KERNEL_ENTRY __val(CONFIG_MEMORY_START + 0x1000)
59 #define BOOT_EXEC_ADDR __val(CONFIG_MEMORY_START)
60 #define BOOT_RELOC_ADDR __val(CONFIG_MEMORY_START + DECOMPRESS_OFFSET_BASE)