探索EBOOT是如何进入main的(zz)

在2410wince 4.2 BSP的fw.s,位于KERNEL\HAL\ARM\中调用了 KernelStart,fw.s是eboot和nk公用的,
进入nk的 KernelStart在armtrap.s文件中,
该文件位于WINCE420\PRIVATE\WINCEOS\COREOS\NK\KERNEL\ARM\
函数说明如下:
;-------------------------------------------------------------------------------
; KernelStart - kernel main entry point
;
; The OEM layer will setup any platform or CPU specific configuration that is
; required for the kernel to have access to ROM and DRAM and jump here to start up
; the system. Any processor specific cache or MMU initialization should be completed.
; The MMU and caches should not enabled.
;
; This routine will initialize the first-level page table based up the contents of
; the MemoryMap array and enable the MMU and caches.
;
; NOTE: Until the MMU is enabled, kernel symbolic addresses are not valid and must be
; translated via the MemoryMap array to find the correct physical address.
;
; Entry (r0) = pointer to MemoryMap array in physical memory
; Exit returns if MemoryMap is invalid
;-------------------------------------------------------------------------------

你可能感兴趣的:(main,职场,休闲,EBoot)