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