Changeset daadfa6 in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2023-02-10T15:18:53Z (18 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1871118
Parents:
e994898
Message:

Remove unnecessary context field from cpu_t structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    re994898 rdaadfa6  
    364364         * switch to this cpu's private stack prior to waking kmp up.
    365365         */
    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),
    368369            (uintptr_t) CPU->stack, STACK_SIZE);
    369         context_restore(&CPU->saved_context);
     370        context_restore(&ctx);
    370371        /* not reached */
    371372}
Note: See TracChangeset for help on using the changeset viewer.