Changeset daadfa6 in mainline
- Timestamp:
- 2023-02-10T15:18:53Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1871118
- Parents:
- e994898
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cpu.h
re994898 rdaadfa6 55 55 tlb_shootdown_msg_t tlb_messages[TLB_MESSAGE_QUEUE_LEN]; 56 56 size_t tlb_messages_count; 57 58 context_t saved_context;59 57 60 58 atomic_size_t nrdy; -
kernel/generic/src/main/main.c
re994898 rdaadfa6 364 364 * switch to this cpu's private stack prior to waking kmp up. 365 365 */ 366 context_save(&CPU->saved_context); 367 context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), 366 context_t ctx; 367 context_save(&ctx); 368 context_set(&ctx, FADDR(main_ap_separated_stack), 368 369 (uintptr_t) CPU->stack, STACK_SIZE); 369 context_restore(& CPU->saved_context);370 context_restore(&ctx); 370 371 /* not reached */ 371 372 } -
kernel/generic/src/proc/scheduler.c
re994898 rdaadfa6 371 371 * 372 372 */ 373 context_save(&CPU->saved_context); 374 context_set(&CPU->saved_context, FADDR(scheduler_separated_stack), 373 context_t ctx; 374 context_save(&ctx); 375 context_set(&ctx, FADDR(scheduler_separated_stack), 375 376 (uintptr_t) CPU->stack, STACK_SIZE); 376 context_restore(& CPU->saved_context);377 context_restore(&ctx); 377 378 378 379 /* Not reached */
Note:
See TracChangeset
for help on using the changeset viewer.