Rev 1953 | Rev 2017 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1953 | Rev 1959 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | #include <interrupt.h> |
59 | #include <interrupt.h> |
60 | #include <arch/debugger.h> |
60 | #include <arch/debugger.h> |
61 | #include <proc/thread.h> |
61 | #include <proc/thread.h> |
62 | #include <syscall/syscall.h> |
62 | #include <syscall/syscall.h> |
63 | #include <console/console.h> |
63 | #include <console/console.h> |
- | 64 | #include <ddi/irq.h> |
|
64 | 65 | ||
65 | start_info_t start_info; |
66 | start_info_t start_info; |
66 | memzone_t meminfo; |
67 | memzone_t meminfo; |
67 | 68 | ||
68 | extern void xen_callback(void); |
69 | extern void xen_callback(void); |
Line 126... | Line 127... | ||
126 | void arch_pre_mm_init(void) |
127 | void arch_pre_mm_init(void) |
127 | { |
128 | { |
128 | pm_init(); |
129 | pm_init(); |
129 | 130 | ||
130 | if (config.cpu_active == 1) { |
131 | if (config.cpu_active == 1) { |
- | 132 | interrupt_init(); |
|
131 | // bios_init(); |
133 | // bios_init(); |
132 | 134 | ||
133 | exc_register(VECTOR_SYSCALL, "syscall", (iroutine) syscall); |
- | |
134 | - | ||
135 | #ifdef CONFIG_SMP |
- | |
136 | exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", |
- | |
137 | (iroutine) tlb_shootdown_ipi); |
- | |
138 | #endif /* CONFIG_SMP */ |
- | |
139 | } |
135 | } |
140 | } |
136 | } |
141 | 137 | ||
142 | void arch_post_mm_init(void) |
138 | void arch_post_mm_init(void) |
143 | { |
139 | { |
144 | if (config.cpu_active == 1) { |
140 | if (config.cpu_active == 1) { |
- | 141 | /* Initialize IRQ routing */ |
|
- | 142 | irq_init(IRQ_COUNT, IRQ_COUNT); |
|
- | 143 | ||
145 | /* video */ |
144 | /* Video */ |
146 | xen_console_init(); |
145 | xen_console_init(); |
- | 146 | ||
147 | /* Enable debugger */ |
147 | /* Enable debugger */ |
148 | debugger_init(); |
148 | debugger_init(); |
- | 149 | ||
149 | /* Merge all memory zones to 1 big zone */ |
150 | /* Merge all memory zones to 1 big zone */ |
150 | zone_merge_all(); |
151 | zone_merge_all(); |
151 | } |
152 | } |
152 | } |
153 | } |
153 | 154 |