Rev 671 | Rev 675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 671 | Rev 673 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | #include <main/kinit.h> |
39 | #include <main/kinit.h> |
40 | #include <console/kconsole.h> |
40 | #include <console/kconsole.h> |
41 | #include <cpu.h> |
41 | #include <cpu.h> |
42 | #include <align.h> |
42 | #include <align.h> |
43 | #include <interrupt.h> |
43 | #include <interrupt.h> |
- | 44 | #include <main/version.h> |
|
44 | 45 | ||
45 | #ifdef CONFIG_SMP |
46 | #ifdef CONFIG_SMP |
46 | #include <arch/smp/apic.h> |
47 | #include <arch/smp/apic.h> |
47 | #include <arch/smp/mps.h> |
48 | #include <arch/smp/mps.h> |
48 | #endif /* CONFIG_SMP */ |
49 | #endif /* CONFIG_SMP */ |
Line 62... | Line 63... | ||
62 | #include <arch.h> |
63 | #include <arch.h> |
63 | #include <arch/faddr.h> |
64 | #include <arch/faddr.h> |
64 | 65 | ||
65 | #include <typedefs.h> |
66 | #include <typedefs.h> |
66 | 67 | ||
67 | char *project = "SPARTAN kernel"; |
- | |
68 | char *copyright = "Copyright (C) 2001-2006 HelenOS project"; |
- | |
69 | char *release = RELEASE; |
- | |
70 | char *name = NAME; |
- | |
71 | char *arch = ARCH; |
- | |
72 | - | ||
73 | #ifdef REVISION |
- | |
74 | char *revision = ", revision " REVISION; |
- | |
75 | #else |
- | |
76 | char *revision = ""; |
- | |
77 | #endif |
- | |
78 | - | ||
79 | #ifdef TIMESTAMP |
- | |
80 | char *timestamp = " on " TIMESTAMP; |
- | |
81 | #else |
- | |
82 | char *timestamp = ""; |
- | |
83 | #endif |
- | |
84 | - | ||
85 | config_t config; |
68 | config_t config; |
86 | context_t ctx; |
69 | context_t ctx; |
87 | 70 | ||
88 | /** |
71 | /** |
89 | * These 'hardcoded' variables will be intialized by |
72 | * These 'hardcoded' variables will be intialized by |
Line 165... | Line 148... | ||
165 | * commands. |
148 | * commands. |
166 | */ |
149 | */ |
167 | kconsole_init(); |
150 | kconsole_init(); |
168 | 151 | ||
169 | /* Exception handler initialization, before architecture |
152 | /* Exception handler initialization, before architecture |
170 | * starts adding it's own handlers |
153 | * starts adding its own handlers |
171 | */ |
154 | */ |
172 | exc_init(); |
155 | exc_init(); |
173 | 156 | ||
174 | arch_pre_mm_init(); |
157 | arch_pre_mm_init(); |
175 | early_heap_init(config.heap_addr, config.heap_size + config.heap_delta); |
158 | early_heap_init(config.heap_addr, config.heap_size + config.heap_delta); |
176 | frame_init(); |
159 | frame_init(); |
177 | page_init(); |
160 | page_init(); |
178 | tlb_init(); |
161 | tlb_init(); |
179 | arch_post_mm_init(); |
162 | arch_post_mm_init(); |
180 | 163 | ||
181 | printf("%s, release %s (%s)%s\nBuilt%s for %s\n%s\n", project, release, name, revision, timestamp, arch, copyright); |
164 | version_print(); |
- | 165 | ||
182 | printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n", |
166 | printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n", |
183 | config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024); |
167 | config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024); |
184 | 168 | ||
185 | arch_pre_smp_init(); |
169 | arch_pre_smp_init(); |
186 | smp_init(); |
170 | smp_init(); |