FreeRTOS-Kernel/portable/IAR/RL78
Thomas Quiniou 3453311f08 fix[RL78 Port] incorrect register image for pvParameters in FAR model (#1316)
In the RL78 FAR data model, pxPortInitialiseStack() did not initialize
the register image for the task parameter (pvParameters) correctly.
A:DE registers were saved with dummy values instead of the actual pointer.

Effect: on first context restore the function prologue read a corrupted
parameter. NEAR builds were not affected.

This patch aligns the FAR path with the calling convention and compiler
version:
 - IAR V2: pass pvParameters via registers → DE = low 16 bits, A = high 8
 - IAR V1 (fallback): keep legacy stack write
Also keeps the original stack-frame layout and updates the comment to
reflect that pointer sizes depend on __DATA_MODEL__.

Result: tasks in FAR receive the correct parameter at entry; NEAR remains
unchanged.
2025-10-06 08:43:06 +02:00
..
port.c fix[RL78 Port] incorrect register image for pvParameters in FAR model (#1316) 2025-10-06 08:43:06 +02:00
portasm.s Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
portmacro.h fix[IAR/RL78 Port] Compilation fails on portasm.s file (#1278) 2025-05-12 21:20:46 +05:30