📄 pros_edma3protectcrit.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.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 1.0 Created
; */
.global _Edma3_critsec32
.global _Edma3_endcrit32
.if __TI_ARM9ABI_ASSEMBLER
.armfunc _Edma3_critsec32
.armfunc _Edma3_endcrit32
.endif
.global _gintmask
.text
.align
.state32
_Edma3_critsec32:
mrs r1, cpsr
mov r0,r1
orr r1, r1, #0xc0
msr cpsr, R1
bx r14
.align
.state32
_Edma3_endcrit32:
msr cpsr, R0
bx r14
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -