1/**************************************************************************/ 2/* */ 3/* Copyright (c) Microsoft Corporation. All rights reserved. */ 4/* */ 5/* This software is licensed under the Microsoft Software License */ 6/* Terms for Microsoft Azure RTOS. Full text of the license can be */ 7/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ 8/* and in the root directory of this software. */ 9/* */ 10/**************************************************************************/ 11 12 13/**************************************************************************/ 14/**************************************************************************/ 15/** */ 16/** ThreadX Component */ 17/** */ 18/** Thread */ 19/** */ 20/**************************************************************************/ 21/**************************************************************************/ 22 23 .text 24 .align 4 25/**************************************************************************/ 26/* */ 27/* FUNCTION RELEASE */ 28/* */ 29/* _tx_thread_interrupt_disable Cortex-Mx/GHS */ 30/* 6.1.7 */ 31/* AUTHOR */ 32/* */ 33/* Scott Larson, Microsoft Corporation */ 34/* */ 35/* DESCRIPTION */ 36/* */ 37/* This function is responsible for disabling interrupts and returning */ 38/* the previous interrupt lockout posture. */ 39/* */ 40/* INPUT */ 41/* */ 42/* None */ 43/* */ 44/* OUTPUT */ 45/* */ 46/* old_posture Old interrupt lockout posture */ 47/* */ 48/* CALLS */ 49/* */ 50/* None */ 51/* */ 52/* CALLED BY */ 53/* */ 54/* Application Code */ 55/* */ 56/* RELEASE HISTORY */ 57/* */ 58/* DATE NAME DESCRIPTION */ 59/* */ 60/* 06-02-2021 Scott Larson Initial Version 6.1.7 */ 61/* */ 62/**************************************************************************/ 63// UINT _tx_thread_interrupt_disable(VOID) 64// { 65 .globl _tx_thread_interrupt_disable 66_tx_thread_interrupt_disable: 67 68 /* Return current interrupt lockout posture. */ 69 MRS r0, PRIMASK 70 CPSID i 71 BX lr 72// } 73 .type _tx_thread_interrupt_disable,$function 74 .size _tx_thread_interrupt_disable,.-_tx_thread_interrupt_disable 75