Changeset ed7e057 in mainline for kernel/generic/src/main/main.c
- Timestamp:
- 2024-01-16T15:46:47Z (17 months ago)
- Branches:
- master
- Children:
- 29029ac0, a5b5f17
- Parents:
- 4ed7870
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-15 20:09:30)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-16 15:46:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/main.c
r4ed7870 red7e057 80 80 #include <arch/arch.h> 81 81 #include <arch.h> 82 #include <arch/faddr.h>83 82 #include <ipc/ipc.h> 84 83 #include <macros.h> … … 174 173 ALIGN_UP((uintptr_t) kdata_end - config.base, PAGE_SIZE); 175 174 176 context_save(&ctx); 177 context_set(&ctx, FADDR(main_bsp_separated_stack), 175 context_create(&ctx, main_bsp_separated_stack, 178 176 bootstrap_stack, bootstrap_stack_size); 179 177 context_restore(&ctx); … … 336 334 * switch to this cpu's private stack prior to waking kmp up. 337 335 */ 338 context_t ctx; 339 context_save(&ctx); 340 context_set(&ctx, FADDR(main_ap_separated_stack), 341 (uintptr_t) CPU_LOCAL->stack, STACK_SIZE); 342 context_restore(&ctx); 336 context_replace(main_ap_separated_stack, CPU_LOCAL->stack, STACK_SIZE); 343 337 /* not reached */ 344 338 }
Note:
See TracChangeset
for help on using the changeset viewer.