Release 4.14 arch/score/include/asm/irqflags.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SCORE_IRQFLAGS_H
#define _ASM_SCORE_IRQFLAGS_H
#ifndef __ASSEMBLY__
#include <linux/types.h>
static inline unsigned long arch_local_save_flags(void)
{
unsigned long flags;
asm volatile(
" mfcr r8, cr0 \n"
" nop \n"
" nop \n"
" mv %0, r8 \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" ldi r9, 0x1 \n"
" and %0, %0, r9 \n"
: "=r" (flags)
:
: "r8", "r9");
return flags;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 18 | 90.00% | 1 | 50.00% |
Chen Liqin | 2 | 10.00% | 1 | 50.00% |
Total | 20 | 100.00% | 2 | 100.00% |
static inline unsigned long arch_local_irq_save(void)
{
unsigned long flags;
asm volatile(
" mfcr r8, cr0 \n"
" li r9, 0xfffffffe \n"
" nop \n"
" mv %0, r8 \n"
" and r8, r8, r9 \n"
" mtcr r8, cr0 \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
: "=r" (flags)
:
: "r8", "r9", "memory");
return flags;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 15 | 75.00% | 1 | 33.33% |
Chen Liqin | 5 | 25.00% | 2 | 66.67% |
Total | 20 | 100.00% | 3 | 100.00% |
static inline void arch_local_irq_restore(unsigned long flags)
{
asm volatile(
" mfcr r8, cr0 \n"
" ldi r9, 0x1 \n"
" and %0, %0, r9 \n"
" or r8, r8, %0 \n"
" mtcr r8, cr0 \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
:
: "r"(flags)
: "r8", "r9", "memory");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 12 | 85.71% | 1 | 50.00% |
Chen Liqin | 2 | 14.29% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
static inline void arch_local_irq_enable(void)
{
asm volatile(
" mfcr r8,cr0 \n"
" nop \n"
" nop \n"
" ori r8,0x1 \n"
" mtcr r8,cr0 \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
:
:
: "r8", "memory");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 9 | 75.00% | 1 | 50.00% |
Chen Liqin | 3 | 25.00% | 1 | 50.00% |
Total | 12 | 100.00% | 2 | 100.00% |
static inline void arch_local_irq_disable(void)
{
asm volatile(
" mfcr r8,cr0 \n"
" nop \n"
" nop \n"
" srli r8,r8,1 \n"
" slli r8,r8,1 \n"
" mtcr r8,cr0 \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
:
:
: "r8", "memory");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 10 | 83.33% | 1 | 50.00% |
Chen Liqin | 2 | 16.67% | 1 | 50.00% |
Total | 12 | 100.00% | 2 | 100.00% |
static inline bool arch_irqs_disabled_flags(unsigned long flags)
{
return !(flags & 1);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 17 | 89.47% | 1 | 50.00% |
David Howells | 2 | 10.53% | 1 | 50.00% |
Total | 19 | 100.00% | 2 | 100.00% |
static inline bool arch_irqs_disabled(void)
{
return arch_irqs_disabled_flags(arch_local_save_flags());
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
#endif /* __ASSEMBLY__ */
#endif /* _ASM_SCORE_IRQFLAGS_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 86 | 65.15% | 1 | 25.00% |
Chen Liqin | 45 | 34.09% | 2 | 50.00% |
Greg Kroah-Hartman | 1 | 0.76% | 1 | 25.00% |
Total | 132 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.