ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-i386/smp_alt.h @ 11221:7c9d7fc3dce5

[HVM] Fix SMBIOS entry point copy destination.
Spotted by Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@localhost.localdomain
date Sat Aug 19 12:06:36 2006 +0100 (2006-08-19)
parents fd9b2c1bb577
children
line source
1 #ifndef __ASM_SMP_ALT_H__
2 #define __ASM_SMP_ALT_H__
4 #include <linux/config.h>
6 #ifdef CONFIG_SMP
7 #if defined(CONFIG_SMP_ALTERNATIVES) && !defined(MODULE)
8 #define LOCK \
9 "6677: nop\n" \
10 ".section __smp_alternatives,\"a\"\n" \
11 ".long 6677b\n" \
12 ".long 6678f\n" \
13 ".previous\n" \
14 ".section __smp_replacements,\"a\"\n" \
15 "6678: .byte 1\n" \
16 ".byte 1\n" \
17 ".byte 0\n" \
18 ".byte 1\n" \
19 ".byte -1\n" \
20 "lock\n" \
21 "nop\n" \
22 ".previous\n"
23 void prepare_for_smp(void);
24 void unprepare_for_smp(void);
25 #else
26 #define LOCK "lock ; "
27 #endif
28 #else
29 #define LOCK ""
30 #endif
32 #endif /* __ASM_SMP_ALT_H__ */