include/asm/memory.h中
#define PAGE_OFFSET UL(0xc0000000)
arch/arm/Makefile
TEXT_OFFSET=0x00008000 // 95 textofs-y := 0x00008000 //153 TEXT_OFFSET := $(textofs-y)
-
include/asm-arm/arch-s3c2410/memory.h
-
14 #define PHYS_OFFSET UL(0x30000000)
-
-
arch/arm/kernel/head.S中
-
29 #define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET) //0xc0008000 //3G都说内核的虚地址是3G,就是这么来的
-
30 #define KERNEL_RAM_PADDR (PHYS_OFFSET + TEXT_OFFSET) //0x30008000
-
55 #define KERNEL_START KERNEL_RAM_VADDR //0xc0008000
56 #define KERNEL_END _end
1. macro指令格式如下:
.endm //endm结束标志