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#ifdef TX_INCLUDE_USER_DEFINE_FILE 23#include "tx_user.h" 24#endif 25 26 .text 27 .align 3 28/**************************************************************************/ 29/* */ 30/* FUNCTION RELEASE */ 31/* */ 32/* _tx_thread_interrupt_disable ARMv8-A */ 33/* 6.3.0 */ 34/* AUTHOR */ 35/* */ 36/* William E. Lamie, Microsoft Corporation */ 37/* */ 38/* DESCRIPTION */ 39/* */ 40/* This function is responsible for disabling interrupts */ 41/* */ 42/* INPUT */ 43/* */ 44/* None */ 45/* */ 46/* OUTPUT */ 47/* */ 48/* old_posture Old interrupt lockout posture */ 49/* */ 50/* CALLS */ 51/* */ 52/* None */ 53/* */ 54/* CALLED BY */ 55/* */ 56/* Application Code */ 57/* */ 58/* RELEASE HISTORY */ 59/* */ 60/* DATE NAME DESCRIPTION */ 61/* */ 62/* 09-30-2020 William E. Lamie Initial Version 6.1 */ 63/* 01-31-2022 Andres Mlinar Updated comments, */ 64/* resulting in version 6.1.10 */ 65/* 10-31-2023 Tiejun Zhou Modified comment(s), added */ 66/* #include tx_user.h, */ 67/* resulting in version 6.3.0 */ 68/* */ 69/**************************************************************************/ 70// UINT _tx_thread_interrupt_disable(void) 71// { 72 .global _tx_thread_interrupt_disable 73 .type _tx_thread_interrupt_disable, @function 74_tx_thread_interrupt_disable: 75 76 /* Pickup current interrupt lockout posture. */ 77 78 MRS x0, DAIF // Pickup current interrupt lockout posture 79 80 /* Mask interrupts. */ 81 82 MSR DAIFSet, 0x3 // Lockout interrupts 83 RET // Return to caller 84// } 85