diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-05-18 16:36:44 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-05-18 16:36:44 +0000 |
commit | 8b2ebe6762a72cca3dc5a11e6a56b1a3695b7d03 (patch) | |
tree | 7a5f4cfad44c4c3f72b01e36bf13f0b2fc26d0a0 /xen/include/asm-x86/smp.h | |
parent | fb7d812c3861307d3a101933060b2518f3dc7f78 (diff) | |
download | xen-8b2ebe6762a72cca3dc5a11e6a56b1a3695b7d03.tar.gz xen-8b2ebe6762a72cca3dc5a11e6a56b1a3695b7d03.tar.bz2 xen-8b2ebe6762a72cca3dc5a11e6a56b1a3695b7d03.zip |
bitkeeper revision 1.1449.1.1 (428b6f1cotmJt0X1Gu4JjKeAeDY1BQ)
Re-factor current.h. It now requires no sub-architecture portions, and
stack offset calculations are cleaned up by introduction of a
cpu_info structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/smp.h')
-rw-r--r-- | xen/include/asm-x86/smp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h index f8edfd1fca..336cab889f 100644 --- a/xen/include/asm-x86/smp.h +++ b/xen/include/asm-x86/smp.h @@ -8,6 +8,7 @@ #include <xen/config.h> #include <xen/kernel.h> #include <xen/cpumask.h> +#include <asm/current.h> #endif #ifdef CONFIG_X86_LOCAL_APIC @@ -48,7 +49,7 @@ extern u8 x86_cpu_to_apicid[]; * from the initial startup. We map APIC_BASE very early in page_setup(), * so this is correct in the x86 case. */ -#define __smp_processor_id() (current->processor) +#define __smp_processor_id() (get_processor_id()) extern cpumask_t cpu_callout_map; extern cpumask_t cpu_callin_map; |