亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? startup.s

?? i.Mx31 bootloader(for WinCE6.0)
?? S
字號:
;
; Copyright (c) Microsoft Corporation.  All rights reserved.
;
;
; Use of this source code is subject to the terms of the Microsoft end-user
; license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
; If you did not accept the terms of the EULA, you are not authorized to use
; this source code. For a copy of the EULA, please see the LICENSE.RTF on your
; install media.
;
;------------------------------------------------------------------------------
;
;  Copyright (C) 2004-2007, Freescale Semiconductor, Inc. All Rights Reserved.
;  THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
;  AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
;
;------------------------------------------------------------------------------
;
;  File:  startup.s
;
;  Defines configuration parameters used to create the NK and Bootloader
;  program images.
;
;------------------------------------------------------------------------------

    GBLL    BOOTLOADER
BOOTLOADER   SETL    {TRUE}

    INCLUDE ..\\..\\..\\..\\src\\oal\\oallib\\startup.s
    INCLUDE image_cfg.inc

    IMPORT  main
    IMPORT  OALVAtoPA
    IMPORT  OALPAtoVA

;-------------------------------------------------------------------------------
;
; KernelStart: OEM bootloader startup code.  This routine will:
;
; * Copy the image to RAM if it's not already running there.
;
; * Set up the MMU and Dcache for the bootloader.
;
; * Initialize the first-level page table based up the contents
;   of the MemoryMap array and enable the MMU and caches.
;
; Inputs: None.
; 
; On return: N/A.
;
; Register used:
;
;-------------------------------------------------------------------------------
;
    ALIGN
    
    LEAF_ENTRY KernelStart



    ; Copy the bootloader image from flash to RAM.  The image is configured
    ; to run in RAM, but is stored in flash.  Absolute address references
    ; should be avoided until the image has been relocated and the MMU enabled.
    ;
    ; NOTE: The destination (RAM) address must match the address in the
    ; bootloader's .bib file.  The latter dictates the code fix-up addresses.
    ;

    ; Check if we are running from NOR flash
    mov     r0, pc
    ldr     r1, =IMAGE_BOOT_NORDEV_NOR_PA_START
    cmp     r0, r1
    blt     CODEINRAM

    ldr     r1, =IMAGE_BOOT_NORDEV_NOR_PA_END
    cmp     r0, r1
    bgt     CODEINRAM
    
    ldr     r8, =IMAGE_BOOT_BOOTIMAGE_NOR_PA_START
    ldr     r1, =IMAGE_BOOT_BOOTIMAGE_RAM_PA_START
    ldr     r2, =(IMAGE_BOOT_BOOTIMAGE_RAM_SIZE / 16)    ; Bootloader image length (this must be <= the NK
                                                   ; length in the .bib file).  We are block-copying 
                                                   ; 16-bytes per iteration.
                                                   
    ; Do 4x32-bit block copies from flash->RAM (corrupts r4-r7).
    ;
10  ldmia   r8!, {r4-r7}        ; Loads from flash (post increment).
    stmia   r1!, {r4-r7}        ; Stores to RAM (post increment).
    subs    r2, r2, #1          ;
    bne     %B10                ; Done?


    ; Now that we've copied ourselves to RAM, jump to the RAM image.  Use the "CodeInRAM" label
    ; to determine the RAM-based code address to which we should jump.
    ;
    ldr     r1, =IMAGE_BOOT_BOOTIMAGE_NOR_PA_START
    adr     r2, CODEINRAM
    sub     r2, r2, r1
    ldr     r0, =IMAGE_BOOT_BOOTIMAGE_RAM_PA_START
    add     r2, r0, r2
    mov     pc, r2
    nop
    nop
    nop

CODEINRAM
    ; Now that we're running out of RAM, construct the first-level Section descriptors
    ; to create 1MB mapped regions from the addresses defined in the OEMAddressTable.
    ; This will allow us to enable the MMU and use a virtual address space that matches
    ; the mapping used by the OS image.
    ;
    ; We'll create two different mappings from the addresses specified:
    ;     [8000 0000 --> 9FFF FFFF] = Cacheable, Bufferable
    ;     [A000 0000 --> BFFF FFFF] = NonCacheable, nonBufferable
    ;
BUILDTTB

    add     r11, pc, #g_oalAddressTable-(.+8)    ; Pointer to OEMAddressTable.
    
    ; Set the TTB.
    ;
    ldr     r9, =IMAGE_BOOT_BOOTPT_RAM_PA_START
    ldr     r0, =0xFFFFC000                   ;
    and     r9, r9, r0                        ; Mask off TTB to be on 16K boundary.
    mcr     p15, 0, r9, c2, c0, 0             ; Set the TTB.

    ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ; ~~~~~~~~~~ MAP CACHED and BUFFERED SECTION DESCRIPTORS ~~~~~~~~~~~~~~~~~~
    ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    mov     r0, #0x0A                         ; Section (1MB) descriptor; (C=1 B=0: cached write-through).
    orr     r0, r0, #0x400                    ; Set AP.
20  mov     r1, r11                           ; Pointer to OEMAddressTable.

    ; Start Crunching through the OEMAddressTable[]:
    ;
    ; r2 temporarily holds OEMAddressTable[VA]
    ; r3 temporarily holds OEMAddressTable[PHY]
    ; r4 temporarily holds OEMAddressTable[#MB]
    ;
25  ldr     r2, [r1], #4                       ; Virtual (cached) address to map physical address to.
    ldr     r3, [r1], #4                       ; Physical address to map from.
    ldr     r4, [r1], #4                       ; Number of MB to map.

    cmp     r4, #0                             ; End of table?
    beq     %F29

    ; r2 holds the descriptor address (virtual address)
    ; r0 holds the actual section descriptor
    ;

    ; Create descriptor address.
    ;
    ldr     r6, =0xFFF00000
    and     r2, r2, r6             ; Only VA[31:20] are valid.
    orr     r2, r9, r2, LSR #18    ; Build the descriptor address:  r2 = (TTB[31:14} | VA[31:20] >> 18)

    ; Create the descriptor.
    ;
    ldr     r6, =0xFFF00000
    and     r3, r3, r6             ; Only PA[31:20] are valid for the descriptor and the rest will be static.
    orr     r0, r3, r0             ; Build the descriptor: r0 = (PA[31:20] | the rest of the descriptor)

    ; Store the descriptor at the proper (physical) address
    ;
28  str     r0, [r2], #4
    add     r0, r0, #0x00100000    ; Section descriptor for the next 1MB mapping (just add 1MB).
    sub     r4, r4, #1             ; Decrement number of MB left.
    cmp     r4, #0                 ; Done?
    bne     %B28                   ; No - map next MB.

    bic     r0, r0, #0xF0000000    ; Clear section base address field.
    bic     r0, r0, #0x0FF00000    ; Clear section base address field.
    b       %B25                   ; Get and process the next OEMAddressTable element.

    ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ; ~~~~~~~~~~ MAP UNCACHED and UNBUFFERED SECTION DESCRIPTORS ~~~~~~~~~~~~~~
    ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

29  tst     r0, #8                 ; Test for 'C' bit set (means we just used 
                                   ; above loop structure to map cached and buffered space).
    bic     r0, r0, #0x0C          ; Clear cached and buffered bits in the descriptor (clear C&B bits).
    add     r9, r9, #0x0800        ; Pointer to the first PTE for "unmapped uncached space" (0x2000 0000 + V_U_Adx).
    bne     %B20                   ; Repeat the descriptor setup for uncached space (map C=B=0 space).

ACTIVATEMMU
    ; The 1st Level Section Descriptors are setup. Initialize the MMU and turn it on.
    ;
    mov     r1, #1
    mcr     p15, 0, r1, c3, c0, 0   ; Set up access to domain 0.
    mov     r0, #0
    mcr     p15, 0, r0, c8, c7, 0   ; Flush the instruction and data TLBs.
    mcr     p15, 0, r1, c7, c10, 4  ; Drain the write and fill buffers.

    mov     r1, #0x78               ; Bits [6:3] must be written as 1's.
    orr     r1, r1, #0x1            ; Enable MMU.
    orr     r1, r1, #0x1000         ; Enable IC.
    orr     r1, r1, #0x0800         ; Enable BTB.
    orr     r1, r1, #0x4            ; Enable DC.
    ldr     r2, =VirtualStart       ; Get virtual address of 'VirtualStart' label.
    cmp     r2, #0                  ; Make sure no stall on "mov pc,r2" below.

    ; Enable the MMU.
    ;
    mcr     p15, 0, r1, c1, c0, 0   ; MMU ON:  All memory accesses are now virtual.

    ; Jump to the virtual address of the 'VirtualStart' label.
    ;
    mov     pc, r2                  ;
    nop
    nop
    nop

    ; *************************************************************************
    ; *************************************************************************
    ; The MMU and caches are now enabled and we're running in a virtual
    ; address space.
    ;
    
    ALIGN
    
VirtualStart

    ;  Set up a supervisor mode stack.
    ;
    ; NOTE: These values must match the OEMAddressTable and .bib file entries for
    ; the bootloader.
    ;
    ldr     sp, =(IMAGE_BOOT_STACK_RAM_CA_START)

    ; Jump to the C entrypoint.
    ;
    bl      main                              ; Jump to main.c::main(), never to return...
    nop
    nop
    nop
    
STALL2
    b      STALL2 



;-------------------------------------------------------------------------------
;
; void Launch(UINT32 pFunc): This function launches the program at pFunc (pFunc
;                            is a physical address).  The MMU is disabled just
;                            before jumping to specified address.
;
; Inputs: pFunc (r0) - Physical address of program to Launch.
; 
; On return: None - the launched program never returns.
;
; Register used:
;
;-------------------------------------------------------------------------------
;
    ALIGN
    LEAF_ENTRY Launch
   
    ; r3 now contains the physical launch address.
    ;
    mov     r3, r0

    ; Compute the physical address of the PhysicalStart tag.  We'll jump to this
    ; address once we've turned the MMU and caches off.
    ;
    stmdb   sp!, {r3}
    ldr     r0, =PhysicalStart
    bl      OALVAtoPA
    nop
    ldmia   sp!, {r3}
    
    ; r0 now contains the physical address of 'PhysicalStart'.
    ; r3 now contains the physical launch address.
   
    ; Next, we disable the MMU, and I&D caches.
    ;
    mov     r1, #0x0078
    mcr     p15, 0, r1, c1, c0, 0

    
    ; Jump to 'PhysicalStart'.
    ;
    mov  pc, r0
    nop
    nop
    nop
    nop

PhysicalStart

    ; Flush the I&D TLBs.
    ;
    mcr     p15, 0, r2, c8, c7, 0   ; Flush the I&D TLBs

    ; Jump to the physical launch address.  This should never return...
    ;    
    mov     pc, r3
    nop
    nop
    nop
    nop
    nop
    nop
       
    END

    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美不卡一二三| 亚洲福利视频三区| 91精品国产综合久久久久久久| 处破女av一区二区| 国产精品996| 国产一区91精品张津瑜| 国产在线播放一区三区四| 美女一区二区在线观看| 美美哒免费高清在线观看视频一区二区| 亚洲欧美激情小说另类| 亚洲天堂成人网| 综合久久久久久| 国产精品国产自产拍在线| 国产精品久久久久久久浪潮网站 | 亚洲国产精品久久艾草纯爱 | 欧美性受xxxx黑人xyx| 色综合久久久久网| 色先锋aa成人| 欧美日韩aaaaa| 精品国产免费一区二区三区四区| 久久综合网色—综合色88| 国产日韩欧美精品电影三级在线| 国产精品日产欧美久久久久| 中文字幕一区二区三| 亚洲一区在线观看视频| 蜜桃视频第一区免费观看| 国产一二三精品| 色菇凉天天综合网| 3751色影院一区二区三区| 久久久久久久久99精品| 亚洲人成亚洲人成在线观看图片| 午夜影院在线观看欧美| 国产一区久久久| 欧美亚洲国产一卡| 国产性色一区二区| 日韩精品色哟哟| 99久久精品国产导航| 欧美一级二级在线观看| 中文字幕欧美日本乱码一线二线 | 欧美日韩精品欧美日韩精品一综合| 欧美电影在线免费观看| 欧美国产日韩精品免费观看| 亚洲成av人片| 99国产精品国产精品毛片| 欧美一级二级三级蜜桃| 国产精品久久久久久久浪潮网站 | 亚洲精品成人在线| 老司机一区二区| 在线观看成人免费视频| 欧美国产综合色视频| 日韩国产高清在线| 在线观看一区二区精品视频| 精品成人一区二区三区| 日韩一区精品视频| 91一区二区三区在线观看| 久久久久9999亚洲精品| 天堂久久久久va久久久久| av不卡一区二区三区| 国产精品天干天干在观线| 日韩av一区二区三区| 99久久777色| 中文字幕av免费专区久久| 看电影不卡的网站| 欧美视频一区在线观看| 亚洲天堂久久久久久久| 国产**成人网毛片九色| 337p亚洲精品色噜噜| 亚洲午夜av在线| 91在线丨porny丨国产| 国产欧美一区二区在线观看| 精品中文字幕一区二区| 欧美一级欧美三级在线观看| 亚洲午夜久久久久久久久电影院 | 亚洲国产高清在线观看视频| 国产在线视频不卡二| 欧美日韩国产欧美日美国产精品| 亚洲一区在线观看免费| 欧洲精品中文字幕| 亚洲精品成人少妇| 日本精品一级二级| 亚洲欧美日韩成人高清在线一区| 成人黄色综合网站| 中文字幕欧美一区| 99精品国产热久久91蜜凸| 国产精品美女久久福利网站| 国产精品一卡二卡| 欧美国产一区在线| 99精品视频在线播放观看| 亚洲日本一区二区三区| 色婷婷久久综合| 亚洲一区二区三区影院| 欧美日韩五月天| 日本人妖一区二区| 久久亚洲春色中文字幕久久久| 精品一区二区免费在线观看| 国产视频亚洲色图| 91小视频免费看| 亚洲mv在线观看| 精品久久久久一区二区国产| 国产成人精品免费网站| 1024成人网色www| 欧美酷刑日本凌虐凌虐| 九一九一国产精品| 国产精品久久久久久久久免费相片| 91在线精品一区二区三区| 亚洲成精国产精品女| xnxx国产精品| 欧美在线一区二区三区| 精品一区二区三区免费播放| 中文字幕日韩av资源站| 欧美日韩色一区| 国产精品69毛片高清亚洲| 一区二区三区视频在线看| 欧美男女性生活在线直播观看| 丝袜美腿亚洲一区| 国产拍欧美日韩视频二区| 欧美午夜电影在线播放| 国产美女视频91| 亚洲一区二区精品3399| 欧美日韩一区二区在线视频| 欧美区一区二区三区| 丰满亚洲少妇av| 午夜精品在线视频一区| 国产无人区一区二区三区| 欧美日韩精品一区二区三区蜜桃| 国产精品自拍一区| 亚洲精选一二三| 欧美一级一级性生活免费录像| 99视频精品免费视频| 久久av中文字幕片| 亚洲一区二区欧美激情| 国产精品女主播在线观看| 欧美视频一区二区三区| 成人免费观看av| 精彩视频一区二区| 午夜久久久久久久久| 一区二区三区精品视频| 中文字幕乱码日本亚洲一区二区 | 久久福利视频一区二区| 亚洲视频精选在线| 亚洲国产成人在线| 久久亚洲私人国产精品va媚药| 欧美电影在线免费观看| 欧美中文字幕一区二区三区| 成人午夜视频福利| 国产高清精品在线| 国产电影一区二区三区| 精品亚洲国产成人av制服丝袜 | 欧美一二三区在线| 欧美日韩中文国产| 在线看一区二区| 91亚洲大成网污www| 91在线免费看| 色悠悠亚洲一区二区| 99国产精品视频免费观看| 菠萝蜜视频在线观看一区| 国产不卡视频在线观看| 国产iv一区二区三区| 国产福利精品一区| www.日本不卡| 色综合天天性综合| 91免费版在线看| 在线观看成人小视频| 色乱码一区二区三区88| 欧美视频在线一区| 欧美日韩一级片网站| 欧美日韩一本到| 欧美丰满一区二区免费视频| 欧美日韩高清一区二区三区| 欧美挠脚心视频网站| 亚洲精品在线免费播放| 国产精品麻豆视频| 亚洲图片你懂的| 日本在线不卡视频一二三区| 久草热8精品视频在线观看| 国产91精品免费| 色偷偷成人一区二区三区91| 91精品国产综合久久蜜臀| 欧美xxxxxxxxx| 综合激情成人伊人| 日韩制服丝袜av| 岛国精品一区二区| 欧美午夜不卡在线观看免费| 亚洲精品一区二区三区影院| 中文字幕精品一区 | 91精品黄色片免费大全| 精品国产不卡一区二区三区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 亚洲另类春色校园小说| 日韩电影免费在线看| 国产一区二区网址| 国产不卡视频在线观看| 色哟哟欧美精品| 欧美一二三区精品| 国产免费观看久久| 亚洲成人7777| av亚洲精华国产精华精华| 欧美精品乱人伦久久久久久| 久久蜜臀中文字幕| 亚洲美女偷拍久久|