Changeset b524f816 in mainline
- Timestamp:
- 2005-08-30T21:51:39Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 379d73f3
- Parents:
- ba18512
- Location:
- arch/ppc
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc/Makefile.inc
rba18512 rb524f816 16 16 17 17 arch_sources= \ 18 arch/context.S \ 18 19 arch/ppc.c \ 19 20 arch/debug/panic.s \ -
arch/ppc/_link.ld
rba18512 rb524f816 33 33 _hardcoded_kdata_size = kdata_end - kdata_start; 34 34 _hardcoded_load_address = 0x80000000; 35 36 35 } -
arch/ppc/include/asm/macro.h
rba18512 rb524f816 192 192 193 193 .macro REGISTERS_STORE r 194 stw r0, 0(\r) 195 stw r1, 4(\r) 196 stw r2, 8(\r) 197 stw r3, 12(\r) 198 stw r4, 16(\r) 199 stw r5, 20(\r) 200 stw r6, 24(\r) 201 stw r7, 28(\r) 202 stw r8, 32(\r) 203 stw r9, 36(\r) 204 stw r10, 40(\r) 205 stw r11, 44(\r) 206 stw r12, 48(\r) 207 stw r13, 52(\r) 208 stw r14, 56(\r) 209 stw r15, 60(\r) 210 stw r16, 64(\r) 211 stw r17, 68(\r) 212 stw r18, 72(\r) 213 stw r19, 76(\r) 214 stw r20, 80(\r) 215 stw r21, 84(\r) 216 stw r22, 88(\r) 217 stw r23, 92(\r) 218 stw r24, 96(\r) 219 stw r25, 100(\r) 220 stw r26, 104(\r) 221 stw r27, 108(\r) 222 stw r28, 112(\r) 223 stw r29, 116(\r) 224 stw r30, 120(\r) 225 stw r31, 124(\r) 194 226 .endm 195 227 196 228 .macro REGISTERS_LOAD r 229 lwz r0, 0(\r) 230 lwz r1, 4(\r) 231 lwz r2, 8(\r) 232 lwz r3, 12(\r) 233 lwz r4, 16(\r) 234 lwz r5, 20(\r) 235 lwz r6, 24(\r) 236 lwz r7, 28(\r) 237 lwz r8, 32(\r) 238 lwz r9, 36(\r) 239 lwz r10, 40(\r) 240 lwz r11, 44(\r) 241 lwz r12, 48(\r) 242 lwz r13, 52(\r) 243 lwz r14, 56(\r) 244 lwz r15, 60(\r) 245 lwz r16, 64(\r) 246 lwz r17, 68(\r) 247 lwz r18, 72(\r) 248 lwz r19, 76(\r) 249 lwz r20, 80(\r) 250 lwz r21, 84(\r) 251 lwz r22, 88(\r) 252 lwz r23, 92(\r) 253 lwz r24, 96(\r) 254 lwz r25, 100(\r) 255 lwz r26, 104(\r) 256 lwz r27, 108(\r) 257 lwz r28, 112(\r) 258 lwz r29, 116(\r) 259 lwz r30, 120(\r) 260 lwz r31, 124(\r) 197 261 .endm -
arch/ppc/include/context.h
rba18512 rb524f816 32 32 #include <arch/types.h> 33 33 34 #define SP_DELTA 034 #define SP_DELTA 4 35 35 36 36 struct context { 37 __u32 r0; 37 38 __u32 sp; 39 __u32 r2; 40 __u32 r3; 41 __u32 r4; 42 __u32 r5; 43 __u32 r6; 44 __u32 r7; 45 __u32 r8; 46 __u32 r9; 47 __u32 r10; 48 __u32 r11; 49 __u32 r12; 50 __u32 r13; 51 __u32 r14; 52 __u32 r15; 53 __u32 r16; 54 __u32 r17; 55 __u32 r18; 56 __u32 r19; 57 __u32 r20; 58 __u32 r21; 59 __u32 r22; 60 __u32 r23; 61 __u32 r24; 62 __u32 r25; 63 __u32 r26; 64 __u32 r27; 65 __u32 r28; 66 __u32 r29; 67 __u32 r30; 68 __u32 r31; 38 69 __u32 pc; 39 40 70 pri_t pri; 41 71 } __attribute__ ((packed)); -
arch/ppc/src/dummy.s
rba18512 rb524f816 29 29 .text 30 30 31 .global memcpy 31 32 .global memcopy 32 33 .global cpu_priority_read 33 34 .global memsetb 34 .global context_save35 .global context_restore36 35 .global userspace 37 36 .global before_thread_runs_arch … … 46 45 .global dummy 47 46 47 memcpy: 48 48 memcopy: 49 49 cpu_priority_read: 50 50 memsetb: 51 context_save:52 context_restore:53 51 before_thread_runs_arch: 54 52 userspace: -
arch/ppc/src/start.S
rba18512 rb524f816 36 36 bl early_init 37 37 38 lis r3, _hardcoded_ktext_size@ha 39 addi r3, r3, _hardcoded_ktext_size@l 40 lis r4, hardcoded_ktext_size@ha 41 addi r4, r4, hardcoded_ktext_size@l 42 stw r3, 0(r4) 43 44 lis r3, _hardcoded_kdata_size@ha 45 addi r3, r3, _hardcoded_kdata_size@l 46 lis r4, hardcoded_kdata_size@ha 47 addi r4, r4, hardcoded_kdata_size@l 48 stw r3, 0(r4) 49 50 lis r3, _hardcoded_load_address@ha 51 addi r3, r3, _hardcoded_load_address@l 52 lis r4, hardcoded_load_address@ha 53 addi r4, r4, hardcoded_load_address@l 54 stw r3, 0(r4) 55 38 56 b main_bsp
Note:
See TracChangeset
for help on using the changeset viewer.