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

📄 pros_edma3protectcrit_ebinder.s

📁 vicp做为dm6446上的硬件加速器
💻 S
字号:
;/*******************************************************************************
;**+--------------------------------------------------------------------------+**
;**|                            ****                                          |**
;**|                            ****                                          |**
;**|                            ******o***                                    |**
;**|                      ********_///_****                                   |**
;**|                      ***** /_//_/ ****                                   |**
;**|                       ** ** (__/ ****                                    |**
;**|                           *********                                      |**
;**|                            ****                                          |**
;**|                            ***                                           |**
;**|                                                                          |**
;**|         Copyright (c) 1998-2004 Texas Instruments Incorporated           |**
;**|                        ALL RIGHTS RESERVED                               |**
;**|                                                                          |**
;**| Permission is hereby granted to licensees of Texas Instruments           |**
;**| Incorporated (TI) products to use this computer program for the sole     |**
;**| purpose of implementing a licensee product based on TI products.         |**
;**| No other rights to reproduce, use, or disseminate this computer          |**
;**| program, whether in part or in whole, are granted.                       |**
;**|                                                                          |**
;**| TI makes no representation or warranties with respect to the             |**
;**| performance of this computer program, and specifically disclaims         |**
;**| any responsibility for any damages, special or consequential,            |**
;**| connected with the use of this program.                                  |**
;**|                                                                          |**
;**+--------------------------------------------------------------------------+**
;*******************************************************************************/

;/** \file   pros_edma3ProtectCrit_ebinder.s
;    \brief  OsPROTECT Assembly code for Interrupt protect
;
;    This file implements OS Protect Interrupt call. Since PrOS does not provide
;    a function that stores previous status of interrupts (cpsr register), this
;    function shall do the same
;
;    (C) Copyright 2004, Texas Instruments, Inc
;
;    \author     Sukumar Ghorai
;    \version    0.1    Created
; */

		EXPORT Edma3_critsec32
		EXPORT Edma3_endcrit32

		AREA |CODE$$edma3_osProtectCrit|, CODE, READONLY
		ALIGN 4
		CODE32

Edma3_critsec32
		mrs             r1, cpsr
		mov             r0,r1
		orr             r1, r1, #0xc0
		msr             cpsr_cxsf, R1
		bx              r14

		ALIGN 4
Edma3_endcrit32
		msr             cpsr_cxsf, R0
		bx              r14

		END

⌨️ 快捷键说明

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