Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
assembler.h File Reference
#include <asm/ptrace.h>
#include <asm/domain.h>
#include <asm/opcodes-virt.h>

Go to the source code of this file.

Macros

#define IOMEM(x)   (x)
 
#define pull   lsr
 
#define push   lsl
 
#define get_byte_0   lsl #0
 
#define get_byte_1   lsr #8
 
#define get_byte_2   lsr #16
 
#define get_byte_3   lsr #24
 
#define put_byte_0   lsl #0
 
#define put_byte_1   lsl #8
 
#define put_byte_2   lsl #16
 
#define put_byte_3   lsl #24
 
#define PLD(code...)
 
#define CALGN(code...)
 
#define USER(x...)
 
#define ALT_SMP(instr...)
 
#define ALT_UP(instr...)   instr
 
#define ALT_UP_B(label)   b label
 

Functions

macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr 
BSYM (2f) msr spsr_cxsf
 

Variables

macro disable_irq_notrace msr cpsr_c
 
macro disable_irq_notrace msr
endm macro enable_irq_notrace
msr endm macro
asm_trace_hardirqs_off endm
macro 
asm_trace_hardirqs_on_cond
 
macro disable_irq_notrace msr
endm macro enable_irq_notrace
msr endm macro
asm_trace_hardirqs_off endm
macro cond endm macro
asm_trace_hardirqs_on
asm_trace_hardirqs_on_cond al
endm macro disable_irq
disable_irq_notrace
asm_trace_hardirqs_off endm
macro enable_irq
asm_trace_hardirqs_on
enable_irq_notrace endm macro 
save_and_disable_irqs
 
macro disable_irq_notrace msr
endm macro enable_irq_notrace
msr endm macro
asm_trace_hardirqs_off endm
macro cond endm macro
asm_trace_hardirqs_on
asm_trace_hardirqs_on_cond al
endm macro disable_irq
disable_irq_notrace
asm_trace_hardirqs_off endm
macro enable_irq
asm_trace_hardirqs_on
enable_irq_notrace endm macro
oldcpsr mrs 
oldcpsr
 
macro disable_irq_notrace msr
endm macro enable_irq_notrace
msr endm macro
asm_trace_hardirqs_off endm
macro cond endm macro
asm_trace_hardirqs_on
asm_trace_hardirqs_on_cond al
endm macro disable_irq
disable_irq_notrace
asm_trace_hardirqs_off endm
macro enable_irq
asm_trace_hardirqs_on
enable_irq_notrace endm macro
oldcpsr mrs cpsr disable_irq
endm macro 
save_and_disable_irqs_notrace
 
macro disable_irq_notrace msr
endm macro enable_irq_notrace
msr endm macro
asm_trace_hardirqs_off endm
macro cond endm macro
asm_trace_hardirqs_on
asm_trace_hardirqs_on_cond al
endm macro disable_irq
disable_irq_notrace
asm_trace_hardirqs_off endm
macro enable_irq
asm_trace_hardirqs_on
enable_irq_notrace endm macro
oldcpsr mrs cpsr disable_irq
endm macro oldcpsr mrs cpsr
disable_irq_notrace endm macro 
restore_irqs_notrace
 
macro disable_irq_notrace msr
endm macro enable_irq_notrace
msr endm macro
asm_trace_hardirqs_off endm
macro cond endm macro
asm_trace_hardirqs_on
asm_trace_hardirqs_on_cond al
endm macro disable_irq
disable_irq_notrace
asm_trace_hardirqs_off endm
macro enable_irq
asm_trace_hardirqs_on
enable_irq_notrace endm macro
oldcpsr mrs cpsr disable_irq
endm macro oldcpsr mrs cpsr
disable_irq_notrace endm macro
oldcpsr msr oldcpsr endm macro 
restore_irqs
 
macro instr_sync endm macro
smp_dmb mode endm macro 
setmode
 
macro instr_sync endm macro
smp_dmb mode endm macro 
mode
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall 
reg
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov 
lr
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
__ERET
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
instr
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
ptr
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
inc
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
cond =al
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
rept =1
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
abort
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg 
t
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection 
__ex_table
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align 
long
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro 
strusr
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro 
ldrusr
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string 
name
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string string type
name endm macro 
check_uaccess
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string string type
name endm macro 
addr
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string string type
name endm macro 
size
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string string type
name endm macro 
limit
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string string type
name endm macro 
tmp
 
macro instr_sync endm macro
smp_dmb mode endm macro reg
msr endm macro
safe_svcmode_maskall cpsr mov
reg and cmp orr bic orr bne
orr adr reg elseif else error
Unsupported inc macro argument
endif pushsection a align
abort popsection endr endm
macro abort endm macro abort
endm macro string string type
name endm macro 
bad
 

Macro Definition Documentation

#define ALT_SMP (   instr...)

Definition at line 192 of file assembler.h.

#define ALT_UP (   instr...)    instr

Definition at line 193 of file assembler.h.

#define ALT_UP_B (   label)    b label

Definition at line 194 of file assembler.h.

#define CALGN (   code...)

Definition at line 77 of file assembler.h.

#define get_byte_0   lsl #0

Definition at line 35 of file assembler.h.

#define get_byte_1   lsr #8

Definition at line 36 of file assembler.h.

#define get_byte_2   lsr #16

Definition at line 37 of file assembler.h.

#define get_byte_3   lsr #24

Definition at line 38 of file assembler.h.

#define IOMEM (   x)    (x)

Definition at line 27 of file assembler.h.

#define PLD (   code...)

Definition at line 62 of file assembler.h.

#define pull   lsr

Definition at line 33 of file assembler.h.

#define push   lsl

Definition at line 34 of file assembler.h.

#define put_byte_0   lsl #0

Definition at line 39 of file assembler.h.

#define put_byte_1   lsl #8

Definition at line 40 of file assembler.h.

#define put_byte_2   lsl #16

Definition at line 41 of file assembler.h.

#define put_byte_3   lsl #24

Definition at line 42 of file assembler.h.

#define USER (   x...)
Value:
9999: x; \
.pushsection __ex_table,"a"; \
.align 3; \
.long 9999b,9001f; \
.popsection

Definition at line 162 of file assembler.h.

Function Documentation

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr BSYM ( 2f  )

Variable Documentation

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg __ERET

Definition at line 267 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection __ex_table

Definition at line 321 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro abort
Initial value:
=9001f

Definition at line 267 of file assembler.h.

u32 addr

Definition at line 340 of file assembler.h.

macro disable_irq_notrace msr endm macro enable_irq_notrace msr endm macro asm_trace_hardirqs_off endm macro asm_trace_hardirqs_on_cond

Definition at line 93 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro abort endm macro string string type name endm macro bad

Definition at line 340 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro abort endm macro string string type name endm macro check_uaccess

Definition at line 340 of file assembler.h.

endif endif endm macro abort rept rept notcond elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro cond =al

Definition at line 267 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr cpsr_c

Definition at line 93 of file assembler.h.

endif endif endm macro abort rept rept notcond elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro inc
Initial value:
== 4
\instr\cond\()\t \reg

Definition at line 267 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg instr

Definition at line 267 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro ldrusr

Definition at line 336 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro abort endm macro string string type name endm macro limit

Definition at line 340 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align long

Definition at line 321 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr lr

Definition at line 238 of file assembler.h.

u8 mode

Definition at line 238 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro abort endm macro string string type name

Definition at line 340 of file assembler.h.

macro disable_irq_notrace msr endm macro enable_irq_notrace msr endm macro asm_trace_hardirqs_off endm macro cond endm macro asm_trace_hardirqs_on asm_trace_hardirqs_on_cond al endm macro disable_irq disable_irq_notrace asm_trace_hardirqs_off endm macro enable_irq asm_trace_hardirqs_on enable_irq_notrace endm macro oldcpsr mrs cpsr disable_irq endm macro oldcpsr mrs cpsr disable_irq_notrace endm macro oldcpsr msr oldcpsr endm macro oldcpsr tst oldcpsr

Definition at line 93 of file assembler.h.

u32 ptr

Definition at line 267 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro reg

Definition at line 238 of file assembler.h.

endif endif endm macro abort rept rept notcond elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro abort endm macro rept =1

Definition at line 267 of file assembler.h.

macro disable_irq_notrace msr endm macro enable_irq_notrace msr endm macro asm_trace_hardirqs_off endm macro cond endm macro asm_trace_hardirqs_on asm_trace_hardirqs_on_cond al endm macro disable_irq disable_irq_notrace asm_trace_hardirqs_off endm macro enable_irq asm_trace_hardirqs_on enable_irq_notrace endm macro oldcpsr mrs cpsr disable_irq endm macro oldcpsr mrs cpsr disable_irq_notrace endm macro oldcpsr msr oldcpsr endm macro restore_irqs

Definition at line 93 of file assembler.h.

macro disable_irq_notrace msr endm macro enable_irq_notrace msr endm macro asm_trace_hardirqs_off endm macro cond endm macro asm_trace_hardirqs_on asm_trace_hardirqs_on_cond al endm macro disable_irq disable_irq_notrace asm_trace_hardirqs_off endm macro enable_irq asm_trace_hardirqs_on enable_irq_notrace endm macro oldcpsr mrs cpsr disable_irq endm macro oldcpsr mrs cpsr disable_irq_notrace endm macro restore_irqs_notrace

Definition at line 93 of file assembler.h.

macro disable_irq_notrace msr endm macro enable_irq_notrace msr endm macro asm_trace_hardirqs_off endm macro cond endm macro asm_trace_hardirqs_on asm_trace_hardirqs_on_cond al endm macro disable_irq disable_irq_notrace asm_trace_hardirqs_off endm macro enable_irq asm_trace_hardirqs_on enable_irq_notrace endm macro save_and_disable_irqs

Definition at line 93 of file assembler.h.

macro disable_irq_notrace msr endm macro enable_irq_notrace msr endm macro asm_trace_hardirqs_off endm macro cond endm macro asm_trace_hardirqs_on asm_trace_hardirqs_on_cond al endm macro disable_irq disable_irq_notrace asm_trace_hardirqs_off endm macro enable_irq asm_trace_hardirqs_on enable_irq_notrace endm macro oldcpsr mrs cpsr disable_irq endm macro save_and_disable_irqs_notrace

Definition at line 93 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro setmode

Definition at line 238 of file assembler.h.

__u32 size

Definition at line 340 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg elseif else error Unsupported inc macro argument endif pushsection a align abort popsection endr endm macro strusr

Definition at line 321 of file assembler.h.

macro instr_sync endm macro smp_dmb mode endm macro reg msr endm macro safe_svcmode_maskall cpsr mov reg and cmp orr bic orr bne orr adr reg t
Initial value:
.rept \rept
9999:
.if \inc == 1
\instr\cond\()b\()\t \reg

Definition at line 316 of file assembler.h.

macro fpu_save_16even thread fcr31 sdc1 bgez fpu_save_16odd fcr31 endm macro fpu_restore_16odd thread ldc1 bgez tmp
Initial value:
ld.w \tmp

Definition at line 340 of file assembler.h.