Results 1 to 1 of 1
Hi ppl,
Am new to ARM Linux. Was going through the boot code. And i have doubt about this particular piece of code in arch/arm/kernel/head.S.
add r0, r4, #(TEXTADDR & ...
- 09-25-2008 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 1
ARM Linux boot code doubt
Hi ppl,
Am new to ARM Linux. Was going through the boot code. And i have doubt about this particular piece of code in arch/arm/kernel/head.S.
add r0, r4, #(TEXTADDR & 0xff000000) >> 18 @start of kernel
str r3, [r0, #TEXTADDR & 0x00f00000) >> 18]!
Ok, i could make out that we are making an offset into the page tables to map the kernel. But it's not really clear why shifting by 18 is needed. what's happening here ?
Somebody please clarify this piece of code.
Regards
Srinivas Bakki


Reply With Quote