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_control 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 changing the interrupt lockout */ 38/* posture of the system. */ 39/* */ 40/* INPUT */ 41/* */ 42/* new_posture New interrupt lockout posture */ 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_control(UINT new_posture) 64// { 65 .globl _tx_thread_interrupt_control 66_tx_thread_interrupt_control: 67 MRS r1, PRIMASK // Pickup current interrupt lockout 68 MSR PRIMASK, r0 // Apply the new interrupt lockout 69 MOV r0, r1 // Transfer old to return register 70 BX lr // Return to caller 71// } 72 .type _tx_thread_interrupt_control,$function 73 .size _tx_thread_interrupt_control,.-_tx_thread_interrupt_control 74