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

📄 flushic.src

📁 WinCE5.0BSP for Renesas SH7770
💻 SRC
字号:
;
;  Copyright(C) Renesas Technology Corp. 2004. All rights reserved.
;
;  generic cache routines for ITS-DS7 Ver.0.8.0
;
;  FILE      : flushic.src
;  CREATED   : 2004.09.01
;  MODIFIED  : 
;  AUTHOR    : Renesas Technology Corp.
;  HARDWARE  : RENESAS ITS-DS7
;  HISTORY   : 
;              2004.09.01
;              - Created release code.
;                (based on ASPEN for WCE5.0)
;

;
; 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.
;
	.include "kxshx.h"
	.include "shx.inc"

    .align 4

;++
; Routine Description:
;    Flush and invalidate the Instruction Cache
;
; Syntax:
;       void SH4FlushICache(void);
;
; Arguments:
;       -- none --
;
; Return Value:
;       -- none --
;--
    LEAF_ENTRY _SH4FlushICache
    
    mov     #CCN_CCR, r1
    mov.l   @r1, r0
    mov     #h'00000800, r2
    or      r2, r0              ; invalidate I-cache
    mov.l   r0, @r1

    ; Wait 8 nops after changing the CCN_CCR 
    nop
    nop
    nop
    nop
    nop
    nop
    nop
    nop

    rts
    nop
    
    .endf

    .end

⌨️ 快捷键说明

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