WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] Xen i386 xen-head.S fix sections mixup (updated)

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] [PATCH] Xen i386 xen-head.S fix sections mixup (updated)
From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
Date: 2007年8月20日 13:19:12 -0400
Cc: chrisw@xxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, jeremy@xxxxxxxxxxxxx
Delivery-date: 2007年8月20日 10:19:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46C9311D.2030702@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070820030420.GA11070@Krystal > <46C9311D.2030702@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006年08月11日)
Xen i386 xen-head.S fix sections mixup
xen-head.S does not come back to the data section, leaving the text section
as current section. It causes problems with a slightly enhanced DEBUG_RODATA
that supports CONFIG_HOTPLUG and bringing a CPU up after the text has been
marked read-only: reference to early_gdt_descr causes a page fault.
Update:
It should be using pushsection/popsection.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
CC: jeremy@xxxxxxxxxxxxx
CC: chrisw@xxxxxxxxxxxx
CC: virtualization@xxxxxxxxxxxxxx
CC: xen-devel@xxxxxxxxxxxxxxxxxxx
---
 arch/i386/xen/xen-head.S | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Index: linux-2.6-lttng/arch/i386/xen/xen-head.S
===================================================================
--- linux-2.6-lttng.orig/arch/i386/xen/xen-head.S 2007年08月20日 
00:22:16.000000000 -0400
+++ linux-2.6-lttng/arch/i386/xen/xen-head.S 2007年08月20日 13:02:38.000000000 
-0400
@@ -7,20 +7,21 @@
 #include <asm/boot.h>
 #include <xen/interface/elfnote.h>
 
- .section .init.text
+.pushsection .init.text
 ENTRY(startup_xen)
 movl %esi,xen_start_info
 cld
 movl $(init_thread_union+THREAD_SIZE),%esp
 jmp xen_start_kernel
+.popsection
 
-.pushsection ".bss.page_aligned"
+.pushsection .bss.page_aligned
 .align PAGE_SIZE_asm
 ENTRY(hypercall_page)
 .skip 0x1000
 .popsection
 
- .section .text
+.pushsection .text
 ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
 ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION, .asciz "2.6")
 ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION, .asciz "xen-3.0")
@@ -34,5 +35,6 @@ ENTRY(hypercall_page)
 ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "no")
 #endif
 ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic")
+.popsection
 
 #endif /*CONFIG_XEN */
-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: [PATCH] Xen i386 xen-head.S fix sections mixup , Jeremy Fitzhardinge
Next by Date: [Xen-devel] Re: [PATCH] Xen i386 xen-head.S fix sections mixup (updated) , Jeremy Fitzhardinge
Previous by Thread: [Xen-devel] Re: [PATCH] Xen i386 xen-head.S fix sections mixup , Jeremy Fitzhardinge
Next by Thread: [Xen-devel] Re: [PATCH] Xen i386 xen-head.S fix sections mixup (updated) , Jeremy Fitzhardinge
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /