|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [IA64] Every processor call xen_early_setup (required on
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 88f97bb8f3ae7e0fb85dbe8fb420d7f02f844a34
# Parent 18b0911d936d89bffad2e145dd62a440c9a953e7
[IA64] Every processor call xen_early_setup (required on SMP-guest to set ivt).
Only BP set running_on_xen.
xensetup.S slightly compacted.
Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
diff -r 18b0911d936d -r 88f97bb8f3ae
linux-2.6-xen-sparse/arch/ia64/kernel/head.S
--- a/linux-2.6-xen-sparse/arch/ia64/kernel/head.S Wed Mar 1 16:53:17 2006
+++ b/linux-2.6-xen-sparse/arch/ia64/kernel/head.S Wed Mar 1 17:01:54 2006
@@ -363,6 +363,12 @@
;;
(isBP) st8 [r2]=r28 // save the address of the boot param area
passed by the bootloader
+#ifdef CONFIG_XEN
+ // Note: isBP is used by the subprogram.
+ br.call.sptk.many rp=early_xen_setup
+ ;;
+#endif
+
#ifdef CONFIG_SMP
(isAP) br.call.sptk.many rp=start_secondary
.ret0:
@@ -371,10 +377,6 @@
// This is executed by the bootstrap processor (bsp) only:
-#ifdef CONFIG_XEN
- br.call.sptk.many rp=early_xen_setup
- ;;
-#endif
#ifdef CONFIG_IA64_FW_EMU
// initialize PAL & SAL emulator:
br.call.sptk.many rp=sys_fw_init
diff -r 18b0911d936d -r 88f97bb8f3ae
linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S
--- a/linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S Wed Mar 1 16:53:17 2006
+++ b/linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S Wed Mar 1 17:01:54 2006
@@ -14,13 +14,15 @@
running_on_xen:
data4 0
+#define isBP p3 // are we the Bootstrap Processor?
+
.text
GLOBAL_ENTRY(early_xen_setup)
- mov r8=cr.dcr;;
- extr.u r8=r8,63,1
- movl r9=running_on_xen;;
- st4 [r9]=r8;;
+ mov r8=cr.dcr
+(isBP) movl r9=running_on_xen;;
+ extr.u r8=r8,63,1;;
cmp.ne p7,p0=r8,r0;;
+(isBP) st4 [r9]=r8
(p7) movl r10=xen_ivt;;
(p7) mov cr.iva=r10
br.ret.sptk.many rp;;
@@ -28,6 +30,6 @@
GLOBAL_ENTRY(is_running_on_xen)
movl r9=running_on_xen;;
- ld4 r8=[r9];;
+ ld4 r8=[r9]
br.ret.sptk.many rp;;
END(is_running_on_xen)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [IA64] Every processor call xen_early_setup (required on SMP-guest to set ivt).,
Xen patchbot -unstable <=
|
|
|
|
|