Rev 2329 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2329 | Rev 2356 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | 30 | ||
31 | .text |
31 | .text |
32 | 32 | ||
33 | .global kernel_image_start |
33 | .global kernel_image_start |
34 | .global exc_stack |
34 | .global exc_stack |
35 | .global exc_stack |
- | |
36 | .global supervisor_sp |
35 | .global supervisor_sp |
37 | 36 | ||
38 | 37 | ||
39 | kernel_image_start: |
38 | kernel_image_start: |
40 | 39 | ||
41 | # switch to system mode |
40 | # switch to system mode |
42 | mrs r3, cpsr |
41 | mrs r3, cpsr |
43 | orr r3, r3, #0x1f |
42 | orr r3, r3, #0x1f |
44 | msr cpsr_c, r3 |
43 | msr cpsr_c, r3 |
45 | 44 | ||
46 | ldr sp, =end_stack |
45 | ldr sp, =temp_stack |
47 | 46 | ||
48 | cmp r2, #0 |
47 | cmp r2, #0 |
49 | beq bootinfo_end |
48 | beq bootinfo_end |
50 | 49 | ||
51 | ldr r3, =bootinfo |
50 | ldr r3, =bootinfo |
Line 66... | Line 65... | ||
66 | bl arch_pre_main |
65 | bl arch_pre_main |
67 | 66 | ||
68 | bl main_bsp |
67 | bl main_bsp |
69 | 68 | ||
70 | .space TEMP_STACK_SIZE |
69 | .space TEMP_STACK_SIZE |
71 | end_stack: |
70 | temp_stack: |
72 | 71 | ||
73 | .space 1024 |
72 | .space 1024 |
74 | exc_stack: |
73 | exc_stack: |
75 | 74 | ||
76 | supervisor_sp: |
75 | supervisor_sp: |