Compare commits

..

1 commit

Author SHA1 Message Date
Sudeep Mohanty 6b813854f0
Merge f0609db5cc into 03dc002c9b 2025-05-12 14:23:52 +08:00

View file

@ -187,7 +187,7 @@
* ; * memory mode) registers the _usCriticalNesting value and the Stack Pointer * ; * memory mode) registers the _usCriticalNesting value and the Stack Pointer
* ; * of the active Task onto the task stack. * ; * of the active Task onto the task stack.
* ; *---------------------------------------------------------------------------*/ * ; *---------------------------------------------------------------------------*/
portSAVE_CONTEXT MACRO portSAVE_CONTEXT MACRO
PUSH AX; /* Save AX Register to stack. */ PUSH AX; /* Save AX Register to stack. */
PUSH HL PUSH HL
#if __CODE_MODEL__ == __CODE_MODEL_FAR__ #if __CODE_MODEL__ == __CODE_MODEL_FAR__
@ -217,7 +217,7 @@ portSAVE_CONTEXT MACRO
* ; * general purpose registers and the CS and ES (only in __far memory mode) * ; * general purpose registers and the CS and ES (only in __far memory mode)
* ; * of the selected task from the task stack. * ; * of the selected task from the task stack.
* ; *---------------------------------------------------------------------------*/ * ; *---------------------------------------------------------------------------*/
portRESTORE_CONTEXT MACRO portRESTORE_CONTEXT MACRO
MOVW AX, _pxCurrentTCB; /* Restore the Task stack pointer. */ MOVW AX, _pxCurrentTCB; /* Restore the Task stack pointer. */
MOVW HL, AX MOVW HL, AX
MOVW AX, [ HL ] MOVW AX, [ HL ]