Ppc fixes #11

Merged
koorogi merged 13 commits from ppc-fixes into master 2019-04-06 14:30:38 +00:00
koorogi commented 2019-04-05 20:30:49 +00:00 (Migrated from github.com)

This fixes a number of issues in the PPC32/PPC64 ports.

  • There are some mistakes in the stack frame layout produced by makecontext, particularly for PPC64.
  • getcontext at least cannot be correctly written in C. If it spills its return address to the stack, it can be clobbered before the context is restored with setcontext or swapcontext. This results in the second return from getcontext returning to the wrong location.
This fixes a number of issues in the PPC32/PPC64 ports. * There are some mistakes in the stack frame layout produced by `makecontext`, particularly for PPC64. * `getcontext` at least cannot be correctly written in C. If it spills its return address to the stack, it can be clobbered before the context is restored with `setcontext` or `swapcontext`. This results in the second return from `getcontext` returning to the wrong location.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/libucontext#11
There is no content yet.