Rev 982 | Rev 1007 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 982 | Rev 1004 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #include <arch/asm/regname.h> |
29 | #include <arch/asm/regname.h> |
30 | 30 | ||
31 | .text |
31 | .text |
32 | 32 | ||
33 | .global cpu_sleep |
33 | .global cpu_sleep |
- | 34 | .global iret |
|
34 | .global memsetb |
35 | .global memsetb |
35 | .global memcpy |
36 | .global memcpy |
36 | 37 | ||
37 | cpu_sleep: |
38 | cpu_sleep: |
38 | b cpu_sleep |
39 | b cpu_sleep |
39 | 40 | ||
- | 41 | iret: |
|
- | 42 | lwz r3, 144(sp) |
|
- | 43 | mtxer r3 |
|
- | 44 | ||
- | 45 | lwz r3, 140(sp) |
|
- | 46 | mtctr r3 |
|
- | 47 | ||
- | 48 | lwz r3, 136(sp) |
|
- | 49 | mtcr r3 |
|
- | 50 | ||
- | 51 | lwz r3, 132(sp) |
|
- | 52 | mtlr r3 |
|
- | 53 | ||
- | 54 | lwz r3, 128(sp) |
|
- | 55 | mtspr srr1, r3 |
|
- | 56 | ||
- | 57 | lwz r3, 124(sp) |
|
- | 58 | mtspr srr0, r3 |
|
- | 59 | ||
- | 60 | lwz r0, 0(sp) |
|
- | 61 | lwz r2, 4(sp) |
|
- | 62 | lwz r3, 8(sp) |
|
- | 63 | lwz r4, 12(sp) |
|
- | 64 | lwz r5, 16(sp) |
|
- | 65 | lwz r6, 20(sp) |
|
- | 66 | lwz r7, 24(sp) |
|
- | 67 | lwz r8, 28(sp) |
|
- | 68 | lwz r9, 32(sp) |
|
- | 69 | lwz r10, 36(sp) |
|
- | 70 | lwz r11, 40(sp) |
|
- | 71 | lwz r12, 44(sp) |
|
- | 72 | lwz r13, 48(sp) |
|
- | 73 | lwz r14, 52(sp) |
|
- | 74 | lwz r15, 56(sp) |
|
- | 75 | lwz r16, 60(sp) |
|
- | 76 | lwz r17, 64(sp) |
|
- | 77 | lwz r18, 68(sp) |
|
- | 78 | lwz r19, 72(sp) |
|
- | 79 | lwz r20, 76(sp) |
|
- | 80 | lwz r21, 80(sp) |
|
- | 81 | lwz r22, 84(sp) |
|
- | 82 | lwz r23, 88(sp) |
|
- | 83 | lwz r24, 92(sp) |
|
- | 84 | lwz r25, 96(sp) |
|
- | 85 | lwz r26, 100(sp) |
|
- | 86 | lwz r27, 104(sp) |
|
- | 87 | lwz r28, 108(sp) |
|
- | 88 | lwz r29, 112(sp) |
|
- | 89 | lwz r30, 116(sp) |
|
- | 90 | lwz r31, 120(sp) |
|
- | 91 | ||
- | 92 | mfspr sp, sprg1 |
|
- | 93 | ||
- | 94 | rfi |
|
- | 95 | ||
40 | memsetb: |
96 | memsetb: |
41 | rlwimi r5, r5, 8, 16, 23 |
97 | rlwimi r5, r5, 8, 16, 23 |
42 | rlwimi r5, r5, 16, 0, 15 |
98 | rlwimi r5, r5, 16, 0, 15 |
43 | 99 | ||
44 | addi r14, r3, -4 |
100 | addi r14, r3, -4 |