Re: [PATCH v4] x86, mem: move memmove to out of line assembler

From: Nick Desaulniers
Date: Thu Sep 29 2022 - 13:26:48 EST


On Thu, Sep 29, 2022 at 1:02 AM Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> Yeah, so you did various whitespace & indentation cleanups, and I think if
> we are touching trivialities we might as well fix/improve the documentation
> of this function too...

Yes, these are all wonderful suggestions. My hope is to also improve
the readability of the implementation. I will incorporate your
suggestions into a v5 and credit you with a suggested-by tag.

> calling standards details. If we want to mention it to make it clear what
> we are saving on the stack and what not, the best description is the one
> from calling.h:
>
> x86 function calling convention, 32-bit:
> ----------------------------------------
> arguments | callee-saved | extra caller-saved | return
> [callee-clobbered] | | [callee-clobbered] |
> -------------------------------------------------------------------------
> eax edx ecx | ebx edi esi ebp [*] | <none> | eax

Oh! Perfect! I'm so glad this table exists!

> Feel free to carry these changes over into your patch.

Will do, thanks.
--
Thanks,
~Nick Desaulniers