Re: [PATCH] um: make stub_exe _start() pure inline asm

2024-10-22 Thread David Gow
On Tue, 22 Oct 2024 at 20:02, Johannes Berg wrote: > > From: Johannes Berg > > Since __attribute__((naked)) cannot be used with functions > containing C statements, just generate the few instructions > it needs in assembly directly. > > While at it, fix the stack usage ("1 + 2*x - 1" is odd) and

[PATCH] um: make stub_exe _start() pure inline asm

2024-10-22 Thread Johannes Berg
From: Johannes Berg Since __attribute__((naked)) cannot be used with functions containing C statements, just generate the few instructions it needs in assembly directly. While at it, fix the stack usage ("1 + 2*x - 1" is odd) and document what it must do, and why it must adjust the stack. Fixes