Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mips-atomic.c File Reference
#include <asm/irqflags.h>
#include <asm/hazards.h>
#include <linux/compiler.h>
#include <linux/preempt.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

 __asm__ (" .macro arch_local_irq_disable\n"" .set push \n"" .set noat \n"" mfc0 $1,$12 \n"" ori $1,0x1f \n"" xori $1,0x1f \n"" .set noreorder \n"" mtc0 $1,$12 \n"" irq_disable_hazard \n"" .set pop \n"" .endm \n")
 
notrace void arch_local_irq_disable (void)
 
 EXPORT_SYMBOL (arch_local_irq_disable)
 
 __asm__ (" .macro arch_local_irq_save result \n"" .set push \n"" .set reorder \n"" .set noat \n"" mfc0 \\result, $12 \n"" ori $1, \\result, 0x1f \n"" xori $1, 0x1f \n"" .set noreorder \n"" mtc0 $1, $12 \n"" irq_disable_hazard \n"" .set pop \n"" .endm \n")
 
notrace unsigned long arch_local_irq_save (void)
 
 EXPORT_SYMBOL (arch_local_irq_save)
 
 __asm__ (" .macro arch_local_irq_restore flags \n"" .set push \n"" .set noreorder \n"" .set noat \n"" mfc0 $1, $12 \n"" andi \\flags, 1 \n"" ori $1, 0x1f \n"" xori $1, 0x1f \n"" or \\flags, $1 \n"" mtc0 \\flags, $12 \n"" irq_disable_hazard \n"" .set pop \n"" .endm \n")
 
notrace void arch_local_irq_restore (unsigned long flags)
 
 EXPORT_SYMBOL (arch_local_irq_restore)
 
notrace void __arch_local_irq_restore (unsigned long flags)
 
 EXPORT_SYMBOL (__arch_local_irq_restore)
 

Function Documentation

notrace void __arch_local_irq_restore ( unsigned long  flags)

Definition at line 162 of file mips-atomic.c.

__asm__ ( " .macro arch_local_irq_disable\n"" .set push \n"" .set noat \n"" mfc0  $1,
  $12\n""ori,
0x1f\n""xori  $1,
0x1f\n"".set noreorder\n""mtc0  $1,
  $12\n""irq_disable_hazard\n"".set pop\n"".endm\n" 
)
__asm__ ( " .macro arch_local_irq_save result \n"" .set push \n"" .set reorder \n"" .set noat \n"" mfc0 \\  result,
  $12\n""ori,
\\  result,
0x1f\n""xori  $1,
0x1f\n"".set noreorder\n""mtc0  $1,
  $12\n""irq_disable_hazard\n"".set pop\n"".endm\n" 
)
__asm__ ( " .macro arch_local_irq_restore flags \n"" .set push \n"" .set noreorder \n"" .set noat \n"" mfc0  $1,
  $12\n""andi\\,
1\n""ori  $1,
0x1f\n""xori  $1,
0x1f\n""or\\  flags,
  $1\n""mtc0\\,
  $12\n""irq_disable_hazard\n"".set pop\n"".endm\n" 
)
notrace void arch_local_irq_disable ( void  )

Definition at line 59 of file mips-atomic.c.

notrace void arch_local_irq_restore ( unsigned long  flags)

Definition at line 138 of file mips-atomic.c.

notrace unsigned long arch_local_irq_save ( void  )

Definition at line 96 of file mips-atomic.c.

EXPORT_SYMBOL ( arch_local_irq_disable  )
EXPORT_SYMBOL ( arch_local_irq_save  )
EXPORT_SYMBOL ( arch_local_irq_restore  )
EXPORT_SYMBOL ( __arch_local_irq_restore  )