ia64/xen-unstable
view linux-2.6-xen-sparse/include/asm-i386/smp_alt.h @ 13341:3040ba0f2d3d
When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.
Signed-off-by: John Levon <john.levon@sun.com>
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.
Signed-off-by: John Levon <john.levon@sun.com>
author | Tim Deegan <Tim.Deegan@xensource.com> |
---|---|
date | Tue Jan 09 13:24:45 2007 +0000 (2007-01-09) |
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__ */