You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix[RL78 Port] incorrect register image for pvParameters in FAR model (#1316)
In the RL78 FAR data model, pxPortInitialiseStack() did not correctly
initialize the register image for the task parameter (pvParameters).
The saved A:DE registers were filled with dummy values instead of the
actual pointer value.
As a result, when the first context restore occurred, the compiler's
function prologue read a corrupted parameter from the register image.
This only affected FAR builds; NEAR model was not impacted.
This patch updates the RL78 FAR path so that the register image matches
the calling convention:
- DE = low 16 bits of pvParameters
- A = high 8 bits of pvParameters (via AX register image, X = 0)
With this change, tasks in FAR model receive the correct parameter
at entry, while NEAR model remains unchanged.
0 commit comments