hujun260 opened a new pull request, #14596:
URL: https://github.com/apache/nuttx/pull/14596

   
   ## Summary
   When entering an exception or interrupt, there are two sets of registers:
   one is the "running regs", which we need to save,
   and the other is the "ready to running regs", which we may soon use.
   For consistency in logic, we can always store the "running regs" in the regs 
field of g_running_tasks,
   otherwise it may lead to errors in the storage location of the "running 
regs."
   
   When we need to access the "running regs," we should uniformly retrieve them 
from the regs field of g_running_tasks.
   
   As the next step, we will rename the set_current_regs/up_current_regs 
functions
   for each architecture to more appropriate names, solely for the purpose of 
identifying interrupts.
   
   
   ## Impact
   context switch logic
   
   ## Testing
   **Build Host:**
   * OS: Ubuntu 20.04
   * CPU: x86_64 
   * Compiler: GCC 9.4.0
   
   Configuring NuttX and compile:
   $ ./tools/configure.sh -l qemu-armv8a:nsh_smp
   $ make
   Running with qemu
   $ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
      -machine virt,virtualization=on,gic-version=3 \
      -net none -chardev stdio,id=con,mux=on -serial chardev:con \
      -mon chardev=con,mode=readline -kernel ./nuttx
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to