Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2781 | ||
---|---|---|---|
Line 71... | Line 71... | ||
71 | #define OFFSET_FR29 0x78 |
71 | #define OFFSET_FR29 0x78 |
72 | #define OFFSET_FR30 0x80 |
72 | #define OFFSET_FR30 0x80 |
73 | #define OFFSET_FR31 0x88 |
73 | #define OFFSET_FR31 0x88 |
74 | #define OFFSET_FPSCR 0x90 |
74 | #define OFFSET_FPSCR 0x90 |
75 | 75 | ||
- | 76 | #ifdef __ASM__ |
|
- | 77 | # include <arch/asm/regname.h> |
|
- | 78 | ||
- | 79 | ||
- | 80 | # ctx: address of the structure with saved context |
|
- | 81 | .macro CONTEXT_SAVE_ARCH_CORE ctx:req |
|
- | 82 | stw sp, OFFSET_SP(\ctx) |
|
- | 83 | stw r2, OFFSET_R2(\ctx) |
|
- | 84 | stw r13, OFFSET_R13(\ctx) |
|
- | 85 | stw r14, OFFSET_R14(\ctx) |
|
- | 86 | stw r15, OFFSET_R15(\ctx) |
|
- | 87 | stw r16, OFFSET_R16(\ctx) |
|
- | 88 | stw r17, OFFSET_R17(\ctx) |
|
- | 89 | stw r18, OFFSET_R18(\ctx) |
|
- | 90 | stw r19, OFFSET_R19(\ctx) |
|
- | 91 | stw r20, OFFSET_R20(\ctx) |
|
- | 92 | stw r21, OFFSET_R21(\ctx) |
|
- | 93 | stw r22, OFFSET_R22(\ctx) |
|
- | 94 | stw r23, OFFSET_R23(\ctx) |
|
- | 95 | stw r24, OFFSET_R24(\ctx) |
|
- | 96 | stw r25, OFFSET_R25(\ctx) |
|
- | 97 | stw r26, OFFSET_R26(\ctx) |
|
- | 98 | stw r27, OFFSET_R27(\ctx) |
|
- | 99 | stw r28, OFFSET_R28(\ctx) |
|
- | 100 | stw r29, OFFSET_R29(\ctx) |
|
- | 101 | stw r30, OFFSET_R30(\ctx) |
|
- | 102 | stw r31, OFFSET_R31(\ctx) |
|
- | 103 | .endm |
|
- | 104 | ||
- | 105 | # ctx: address of the structure with saved context |
|
- | 106 | .macro CONTEXT_RESTORE_ARCH_CORE ctx:req |
|
- | 107 | lwz sp, OFFSET_SP(\ctx) |
|
- | 108 | lwz r2, OFFSET_R2(\ctx) |
|
- | 109 | lwz r13, OFFSET_R13(\ctx) |
|
- | 110 | lwz r14, OFFSET_R14(\ctx) |
|
- | 111 | lwz r15, OFFSET_R15(\ctx) |
|
- | 112 | lwz r16, OFFSET_R16(\ctx) |
|
- | 113 | lwz r17, OFFSET_R17(\ctx) |
|
- | 114 | lwz r18, OFFSET_R18(\ctx) |
|
- | 115 | lwz r19, OFFSET_R19(\ctx) |
|
- | 116 | lwz r20, OFFSET_R20(\ctx) |
|
- | 117 | lwz r21, OFFSET_R21(\ctx) |
|
- | 118 | lwz r22, OFFSET_R22(\ctx) |
|
- | 119 | lwz r23, OFFSET_R23(\ctx) |
|
- | 120 | lwz r24, OFFSET_R24(\ctx) |
|
- | 121 | lwz r25, OFFSET_R25(\ctx) |
|
- | 122 | lwz r26, OFFSET_R26(\ctx) |
|
- | 123 | lwz r27, OFFSET_R27(\ctx) |
|
- | 124 | lwz r28, OFFSET_R28(\ctx) |
|
- | 125 | lwz r29, OFFSET_R29(\ctx) |
|
- | 126 | lwz r30, OFFSET_R30(\ctx) |
|
- | 127 | lwz r31, OFFSET_R31(\ctx) |
|
- | 128 | .endm |
|
- | 129 | ||
- | 130 | #endif /* __ASM__ */ |
|
- | 131 | ||
76 | #endif |
132 | #endif |