diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 13:31:27 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:31:27 +0100 |
commit | 0ccb8acc51693a2aef0f38024943808046d81251 (patch) | |
tree | ba3dd7f108803ba3f9ed71304c8ff1ea676cbb30 /include/asm-x86/processor_32.h | |
parent | 683e0253dbd12554b2ee969b15e68105252bff57 (diff) | |
download | op-kernel-dev-0ccb8acc51693a2aef0f38024943808046d81251.zip op-kernel-dev-0ccb8acc51693a2aef0f38024943808046d81251.tar.gz |
x86: unify current_text_addr
current_text_addr() has a different implementation in x86_64 and
i386, but it is not fundamentally different. I stick to the i386
implementation, that seem to be a common base, and move it to processor.h
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>
Diffstat (limited to 'include/asm-x86/processor_32.h')
-rw-r--r-- | include/asm-x86/processor_32.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h index 9e119d3..6cd2149 100644 --- a/include/asm-x86/processor_32.h +++ b/include/asm-x86/processor_32.h @@ -22,12 +22,6 @@ #include <asm/desc_defs.h> /* - * Default implementation of macro that returns current - * instruction pointer ("program counter"). - */ -#define current_text_addr() ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; }) - -/* * CPU type and hardware bug flags. Kept separately for each CPU. * Members of this structure are referenced in head.S, so think twice * before touching them. [mj] |