Re: [PATCH] x86-64: adjust ia32entry.S

From: Jan Beulich (JBeulich_at_novell.com)
Date: 11/11/05

  • Next message: Guido Guenther: "sparc64: Oops in pci_alloc_consistent with cingergyT2"
    Date:	Fri, 11 Nov 2005 16:50:49 +0100
    To: "Andi Kleen" <ak@suse.de>
    
    

    >>> Andi Kleen <ak@suse.de> 11.11.05 16:34:44 >>>
    >On Wednesday 09 November 2005 17:10, Jan Beulich wrote:
    >> IA32 compatibility entry points needlessly played with extended
    >> registers. Additionally, frame unwind information was still
    incorrect
    >> for ia32_ptregs_common (sorry, my fault).
    >
    >What do you mean with needlessly played? That it didn't initialize
    >all on the stack frame? That was more a feature than a bug.
    >Did it cause you problems?

    It saved and restored R12-R15, even though these registers have no
    meaning (and are architecturally undefined) when coming from/going to
    32-bit mode. Problems? No, except that without the extra loads (stores
    don't matter that much I believe) performance is better...

    >In general I'm weary of making the asm macros more complex
    >(adding more arguments etc.) Please keep it simple.

    Then ignore this, perhaps with the exception of the unwind info
    adjustment.

    Jan
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Guido Guenther: "sparc64: Oops in pci_alloc_consistent with cingergyT2"

    Relevant Pages

    • Re: [PATCH] x86-64: adjust ia32entry.S
      ... > registers. ... frame unwind information was still incorrect ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [discuss] booting a kernel compiled with -mregparm=0
      ... > this one) and even if GCC produced valid code by miracle, ... That's the default for a 'C' compiler (not to pass parameters ... This forced some parameters to be passed in registers, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Semaphore assembly-code bug
      ... registers (ie the old code often caused gcc to first generate the value ... generating it into %eax in the first place). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • NMI lockup in fib_sync_down
      ... NMI Watchdog detected LOCKUP on CPU1, eip c026a8d4, registers: ... inlined prefetch function (offsets do not match the registers ... extern inline void prefetch ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Being more anal about iospace accesses..
      ... No longer true. ... that large silicon manufacturer has released with 32-bit wide registers ... If clauses will still be needed, the only difference is that instead ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)