Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
asm.h File Reference
#include <asm/sysreg.h>
#include <asm/asm-offsets.h>
#include <asm/thread_info.h>

Go to the source code of this file.

Macros

#define mask_interrupts   ssrf SYSREG_GM_OFFSET
 
#define mask_exceptions   ssrf SYSREG_EM_OFFSET
 
#define unmask_interrupts   csrf SYSREG_GM_OFFSET
 
#define unmask_exceptions   csrf SYSREG_EM_OFFSET
 

Variables

macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov 
reg
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min 
sr
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min 
tmp
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w 
sp
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half 
r10
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half 
r11
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half 
r12
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 
r9
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r0
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r1
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r2
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r3
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r4
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r5
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r6
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r7
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user 
r8 = \reg
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user lr st w lr
zero_fp mfsr sr st w tmp endm
macro restore_full_user sp
mtsr tmp ld w 
lr
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user lr st w lr
zero_fp mfsr sr st w tmp endm
macro restore_full_user sp
mtsr tmp ld w sp ldmts lr endm
macro branch_if_kernel 
scratch
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user lr st w lr
zero_fp mfsr sr st w tmp endm
macro restore_full_user sp
mtsr tmp ld w sp ldmts lr endm
macro branch_if_kernel label
get_thread_info scratch ld w
scratch[TI_flags] bld
TIF_USERSPACE brcc label endm
macro ret_if_privileged 
addr
 
macro save_fp endm macro
restore_fp endm macro zero_fp
endm macro get_thread_info reg
mov sp andl THREAD_SIZE &endm
macro save_min sr zero_fp st w
tmp endm macro restore_min sp
mtsr tmp popm lr endm macro
save_half lr zero_fp mfsr sr
st w tmp endm macro
restore_half sp mtsr tmp popm
r8 lr restore_fp endm macro
save_full_user lr st w lr
zero_fp mfsr sr st w tmp endm
macro restore_full_user sp
mtsr tmp ld w sp ldmts lr endm
macro branch_if_kernel label
get_thread_info scratch ld w
scratch[TI_flags] bld
TIF_USERSPACE brcc label endm
macro ret_if_privileged 
size
 

Macro Definition Documentation

#define mask_exceptions   ssrf SYSREG_EM_OFFSET

Definition at line 16 of file asm.h.

#define mask_interrupts   ssrf SYSREG_GM_OFFSET

Definition at line 15 of file asm.h.

#define unmask_exceptions   csrf SYSREG_EM_OFFSET

Definition at line 18 of file asm.h.

#define unmask_interrupts   csrf SYSREG_GM_OFFSET

Definition at line 17 of file asm.h.

Variable Documentation

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts lr endm macro branch_if_kernel label get_thread_info scratch ld w scratch [TI_flags] bld TIF_USERSPACE brcc label endm macro ret_if_privileged addr

Definition at line 80 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w lr

Definition at line 80 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r0

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r1

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r10

Definition at line 57 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r11

Definition at line 57 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r12

Definition at line 57 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r2

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r3

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r4

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r5

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r6

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r7

Definition at line 72 of file asm.h.

exitm endif ifc r8 = \reg

Definition at line 72 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts r9

Definition at line 65 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl reg

Definition at line 39 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE &endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts lr endm macro branch_if_kernel label get_thread_info scratch ld w scratch

Definition at line 80 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts lr endm macro branch_if_kernel label get_thread_info scratch ld w scratch [TI_flags] bld TIF_USERSPACE brcc label endm macro ret_if_privileged ret sub size

Definition at line 80 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr tmp ld w sp ldmts sp

Definition at line 44 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE &endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user sp mtsr sr

Definition at line 39 of file asm.h.

macro save_fp endm macro restore_fp endm macro zero_fp endm macro get_thread_info reg mov sp andl THREAD_SIZE& endm macro save_min sr zero_fp st w tmp endm macro restore_min sp mtsr tmp popm lr endm macro save_half lr zero_fp mfsr sr st w tmp endm macro restore_half sp mtsr tmp popm r8 lr restore_fp endm macro save_full_user lr st w lr zero_fp mfsr sr st w tmp endm macro restore_full_user tmp
Initial value:
pushm lr
mfsr \tmp

Definition at line 44 of file asm.h.