x86: add macro for privileged 64-bit operation
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 30 Jan 2008 12:32:07 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:07 +0000 (13:32 +0100)
commit4a8c4c4e10d1bc2c3bd80caabb6a76a66849f7e8
treeb93a8cef2dd647128cea3d28bf86bc97eaff074f
parent2e47d3e6c35bb5b78fea2b2584c7eeaf782f138d
x86: add macro for privileged 64-bit operation

i386 has a macro GET_CR0_INTO_EAX, used in early trap handling code.
x86_64 has similar needs, only it needs to put cr2 into rcx. We provide
a macro for such task, in the same way

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/paravirt.h