lkml.org 
[lkml]   [2021]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/9] x86/asm: Fix register order
    Ensure the register order is correct; this allows for easy translation
    between register number and trampoline and vice-versa.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    ---
    arch/x86/include/asm/GEN-for-each-reg.h | 10 ++++++----
    1 file changed, 6 insertions(+), 4 deletions(-)

    --- a/arch/x86/include/asm/GEN-for-each-reg.h
    +++ b/arch/x86/include/asm/GEN-for-each-reg.h
    @@ -1,11 +1,12 @@
    #ifdef CONFIG_64BIT
    GEN(rax)
    -GEN(rbx)
    GEN(rcx)
    GEN(rdx)
    +GEN(rbx)
    +GEN(rsp)
    +GEN(rbp)
    GEN(rsi)
    GEN(rdi)
    -GEN(rbp)
    GEN(r8)
    GEN(r9)
    GEN(r10)
    @@ -16,10 +17,11 @@ GEN(r14)
    GEN(r15)
    #else
    GEN(eax)
    -GEN(ebx)
    GEN(ecx)
    GEN(edx)
    +GEN(ebx)
    +GEN(esp)
    +GEN(ebp)
    GEN(esi)
    GEN(edi)
    -GEN(ebp)
    #endif

    \
     
     \ /
      Last update: 2021-10-13 14:41    [W:4.755 / U:0.620 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site