Rev 2289 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2289 | Rev 2290 | ||
---|---|---|---|
Line 88... | Line 88... | ||
88 | } |
88 | } |
89 | 89 | ||
90 | 90 | ||
91 | void arch_pre_main(void) |
91 | void arch_pre_main(void) |
92 | { |
92 | { |
93 | dprintf("arch_pre_main\n"); |
- | |
94 | int i; |
93 | int i; |
95 | 94 | ||
96 | init.cnt = bootinfo.cnt; |
95 | init.cnt = bootinfo.cnt; |
97 | 96 | ||
98 | for (i = 0; i < bootinfo.cnt; ++i) { |
97 | for (i = 0; i < bootinfo.cnt; ++i) { |
Line 101... | Line 100... | ||
101 | } |
100 | } |
102 | } |
101 | } |
103 | 102 | ||
104 | void arch_pre_mm_init(void) |
103 | void arch_pre_mm_init(void) |
105 | { |
104 | { |
106 | dprintf("arch_pre_mm_init\n"); |
- | |
107 | - | ||
108 | /* It is not assumed by default */ |
105 | /* It is not assumed by default */ |
109 | interrupts_disable(); |
106 | interrupts_disable(); |
110 | 107 | ||
111 | setup_exception_stacks(); |
108 | setup_exception_stacks(); |
112 | } |
109 | } |
113 | 110 | ||
114 | void prefetch_exception_generator(void); |
111 | void prefetch_exception_generator(void); |
115 | 112 | ||
116 | void arch_post_mm_init(void) |
113 | void arch_post_mm_init(void) |
117 | { |
114 | { |
118 | // dprintf("arch_post_mm_init start()\n"); |
- | |
119 | gxemul_hw_map_init(); |
115 | gxemul_hw_map_init(); |
120 | 116 | ||
121 | /* Initialize dispatch table */ |
117 | /* Initialize dispatch table */ |
122 | exception_init(); |
118 | exception_init(); |
123 | 119 | ||
124 | // drivers_init(); |
- | |
125 | interrupt_init(); |
120 | interrupt_init(); |
126 | 121 | ||
127 | console_init(device_assign_devno()); |
122 | console_init(device_assign_devno()); |
- | 123 | ||
128 | //fb_init(0x12000000, 640, 480, 1920, VISUAL_RGB_8_8_8); |
124 | //fb_init(0x12000000, 640, 480, 1920, VISUAL_RGB_8_8_8); |
129 | 125 | ||
130 | interrupts_enable(); |
126 | interrupts_enable(); |
131 | dprintf("arch_post_mm_init end()\n"); |
- | |
132 | - | ||
133 | } |
127 | } |
134 | 128 | ||
135 | void arch_post_cpu_init(void) |
129 | void arch_post_cpu_init(void) |
136 | { |
130 | { |
137 | /* TODO */ |
131 | /* TODO */ |