mtkernel_3/include/tk/sysdepend/cpu/core/armv7a/syslib.h | bare source | permlink (0.00 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * micro T-Kernel 3.00.05 4: * 5: * Copyright (C) 2006-2021 by Ken Sakamura. 6: * This software is distributed under the T-License 2.2. 7: *---------------------------------------------------------------------- 8: * 9: * Released by TRON Forum(http://www.tron.org) at 2021/11. 10: * 11: *---------------------------------------------------------------------- 12: */ 13: 14: /* 15: * syslib.h 16: * 17: * micro T-Kernel System Library (ARMv7-A core depended) 18: */ 19: 20: #ifndef __TK_SYSLIB_DEPEND_CORE_H__ 21: #define __TK_SYSLIB_DEPEND_CORE_H__ 22: 23: #include <tk/errno.h> 24: #include <sys/sysdef.h> 25: 26: /*----------------------------------------------------------------------*/ 27: /* 28: * CPU interrupt control for ARMv7-A. 29: * 'intsts' is the value of CPSR.I. 30: * disint() Disable interrupt (IRQ). 31: * enaint() Enable interrupt (IRQ). 32: */ 33: 34: IMPORT UW disint( void ); 35: IMPORT void enaint( UW intsts ); 36: 37: #define DI(intsts) ( (intsts) = (UINT)disint() ) 38: #define EI(intsts) ( enaint((UW)intsts) ) 39: #define isDI(intsts) ( (intsts) != 0 ) 40: 41: #endif /* __TK_SYSLIB_DEPEND_CORE_H__ */