On Sat, Apr 2, 2016 at 12:44 PM, Philip Guenther <[email protected]> wrote:
> On Sat, Apr 2, 2016 at 5:19 AM, Patrick Wildt <[email protected]> wrote:
>> the Procedure Call Standard used in EABI requires the stack pointer to
>> be 8-byte aligned by
>>
>>   * exception handlers, before calling AAPCS-conforming code.
>>   * the OS, before giving control to an application.
>>
>> This diff makes sure our kernel interfaces adhere to that requirement.
>>
>> Can someone make sure this doesn't break armish/zaurus?
>
> The changes to cpu_switchto(), savectx(), and switchframe seem odd;
> those are leaf functions, no?  When would their frame layouts result
> in misaligned stacks for EABI-expecting code?

Ah, I now see where cpu_switchto() makes calls to C functions, so that
part makes sense to me now.


Philip Guenther

Reply via email to