⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 util.s

📁 wince底层驱动开发代码 ARM作为一种嵌入式系统处理器
💻 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.
;
;******************************************************************************
;*
;* System On Chip(SOC)
;*
;* Copyright (c) 2002 Software Center, Samsung Electronics, Inc.
;* All rights reserved.
;*
;* This software is the confidential and proprietary information of Samsung 
;* Electronics, Inc("Confidential Information"). You Shall not disclose such 
;* Confidential Information and shall use it only in accordance with the terms 
;* of the license agreement you entered into Samsung.
;*
;*-----------------------------------------------------------------------------
;*
;*  S3C2440 BSP (WinCE3.0 & PocketPC2002)
;*
;* util.s :     EBoot Utility Srcs for S3C2440 Board
;*
;* @author  zartoven@samsung.com (SOC, SWC, SAMSUNG Electronics)
;*
;* @date    2002/04/08
;* 
;* Log:
;*      2002/04/08  Start
;*      
;******************************************************************************

    INCLUDE kxarm.h

PHY_RAM_START   EQU 0x30000000
VIR_RAM_START   EQU 0x8c000000

    TEXTAREA

    LEAF_ENTRY Launch

    ldr r2, = PhysicalStart
    ldr     r3, = (VIR_RAM_START - PHY_RAM_START)

    sub     r2, r2, r3

    mov     r1, #0x0070             ; Disable MMU
    mcr     p15, 0, r1, c1, c0, 0
    nop
    mov     pc, r2                  ; Jump to PStart
    nop

    ; MMU & caches now disabled.

PhysicalStart

    mov     r2, #0
    mcr     p15, 0, r2, c8, c7, 0   ; Flush the TLB
    mov     pc, r0          ; Jump to program we are launching.

    ;++
    ;  Routine:
    ;
    ;      ShowLights
    ;
    ;  Description:
    ;
    ;      Set the Hexadecimal LED array to the values specified
    ;
    ;  Arguments:
    ;
    ;      r0 = word containing 8 nibble values to write to the Hexadecimal LED
    ;      
    ;
    ;--

    LEAF_ENTRY ShowLights

    mov pc, lr

    END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -