VisorFolks / cyancore

A unified software platform for embedded system projects ...
https://visorfolks.co.in
Other
80 stars 20 forks source link

<HELIOS> Context Switch mechanism and Yeild #180

Open pranjalchanda08 opened 1 year ago

pranjalchanda08 commented 1 year ago

Current CC_OS only have context_swich and yield place holder function and needs to be coded for performing the same.

akashkollipara commented 1 year ago

Context Switch

  • AVR ctx_frame needs to be updated to save only args/temp regs
  • RV, AVR callee-saved frame / CSF struct needs to be created
  • CSF switch will result in context switch

TCB

  • TCB will be made part of cpu include files thread.h
  • tcb_t will enclose csf_t and other thread parameters
  • tcb_t will be later called in xxxxx_tcb_t for example current cc_sched_tcb_t which will house other parameters too
  • arch_ctx_sw(tcb_t *old, tcb_t *new) will be part of arch.c in each visors
pranjalchanda08 commented 1 year ago

@akashkollipara Once the TCB updates are pushed please create an issue to me so that I can incorporate the changes to HELIOS.

pranjalchanda08 commented 1 year ago

@akashkollipara we need to priorities this FR.