cregit-Linux how code gets into the kernel

Release 4.18 arch/nds32/include/asm/irqflags.h

// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2005-2017 Andes Technology Corporation

#include <asm/nds32.h>
#include <nds32_intrinsic.h>


#define arch_local_irq_disable()	\
	GIE_DISABLE();


#define arch_local_irq_enable()	\
	GIE_ENABLE();

static inline unsigned long arch_local_irq_save(void) { unsigned long flags; flags = __nds32__mfsr(NDS32_SR_PSW) & PSW_mskGIE; GIE_DISABLE(); return flags; }

Contributors

PersonTokensPropCommitsCommitProp
Greentime Hu29100.00%1100.00%
Total29100.00%1100.00%


static inline unsigned long arch_local_save_flags(void) { unsigned long flags; flags = __nds32__mfsr(NDS32_SR_PSW) & PSW_mskGIE; return flags; }

Contributors

PersonTokensPropCommitsCommitProp
Greentime Hu26100.00%1100.00%
Total26100.00%1100.00%


static inline void arch_local_irq_restore(unsigned long flags) { if(flags) GIE_ENABLE(); }

Contributors

PersonTokensPropCommitsCommitProp
Greentime Hu18100.00%1100.00%
Total18100.00%1100.00%


static inline int arch_irqs_disabled_flags(unsigned long flags) { return !flags; }

Contributors

PersonTokensPropCommitsCommitProp
Greentime Hu15100.00%1100.00%
Total15100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Greentime Hu108100.00%1100.00%
Total108100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.