Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/
-->;------------------------------------------------------------------------------ ; Copy boot loader to memory
ands r9, pc, #0xFF000000 ; see if we are in flash or in ram bne %f20 ; go ahead if we are already in ram
; This is the loop that perform copying. ldr r0, = 0x21000 ; offset into the RAM add r0, r0, #PHYBASE ; add physical base mov r1, r0 ; (r1) copy destination ldr r2, =0x0 ; (r2) flash started at physical address 0 ldr r3, =0x10000 ; counter (0x40000/4) 10 ldr r4, [r2], #4 str r4, [r1], #4 subs r3, r3, #1 bne %b10
; Restart from the RAM position after copying. mov pc, r0 nop nop nop
; Shouldn"t get here. b . EBOOT在实现必备功能的前提下,我们还可以扩展其功能,譬如说初始化LCD,并显示特定的启动画面,显示加载映像的进度等。 本文粗略的介绍了WinCE6.0下EBOOT的内容,但没有涉及具体的代码实现,相关代码可以参考目录C:"WINCE600"PLATFORM"DEVICEEMULATOR"SRC"BOOTLOADER"EBOOT。总的来说,EBOOT的核心功能就是引导操作系统映像。本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-06/132035.htm