Changes in kernel/generic/src/main/main.c [9e40355e:3b3faf51] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/main.c
r9e40355e r3b3faf51 62 62 #include <console/kconsole.h> 63 63 #include <console/console.h> 64 #include <log.h> 64 65 #include <cpu.h> 65 66 #include <align.h> … … 75 76 #include <synch/waitq.h> 76 77 #include <synch/futex.h> 78 #include <synch/workqueue.h> 79 #include <smp/smp_call.h> 77 80 #include <arch/arch.h> 78 81 #include <arch.h> … … 113 116 .physmem_end = 0 114 117 }; 118 119 /** Boot arguments. */ 120 char bargs[CONFIG_BOOT_ARGUMENTS_BUFLEN] = {}; 115 121 116 122 /** Initial user-space tasks */ … … 235 241 * Memory management subsystems initialization. 236 242 */ 237 arch_pre_mm_init();243 ARCH_OP(pre_mm_init); 238 244 km_identity_init(); 239 245 frame_init(); … … 247 253 km_non_identity_init(); 248 254 ddi_init(); 249 arch_post_mm_init();255 ARCH_OP(post_mm_init); 250 256 reserve_init(); 251 arch_pre_smp_init();257 ARCH_OP(pre_smp_init); 252 258 smp_init(); 253 259 … … 262 268 263 269 cpu_init(); 264 265 270 calibrate_delay_loop(); 271 ARCH_OP(post_cpu_init); 272 273 smp_call_init(); 274 workq_global_init(); 266 275 clock_counter_init(); 267 276 timeout_init(); … … 270 279 thread_init(); 271 280 futex_init(); 272 281 282 sysinfo_set_item_data("boot_args", NULL, bargs, str_size(bargs) + 1); 283 273 284 if (init.cnt > 0) { 274 285 size_t i; … … 281 292 ipc_init(); 282 293 event_init(); 283 klog_init(); 294 kio_init(); 295 log_init(); 284 296 stats_init(); 285 297 … … 334 346 the_initialize(THE); 335 347 336 arch_pre_mm_init();348 ARCH_OP(pre_mm_init); 337 349 frame_init(); 338 350 page_init(); 339 351 tlb_init(); 340 arch_post_mm_init();352 ARCH_OP(post_mm_init); 341 353 342 354 cpu_init(); 343 355 calibrate_delay_loop(); 344 arch_post_cpu_init();356 ARCH_OP(post_cpu_init); 345 357 346 358 the_copy(THE, (the_t *) CPU->stack); … … 365 377 void main_ap_separated_stack(void) 366 378 { 379 smp_call_init(); 380 367 381 /* 368 382 * Configure timeouts for this cpu.
Note:
See TracChangeset
for help on using the changeset viewer.