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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] assembly language use in xen

To: Furquan Shaikh <furquan.m.shaikh@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] assembly language use in xen
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 24 Dec 2008 13:25:51 +0000
Cc:
Delivery-date: Wed, 24 Dec 2008 05:26:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <b8ef0f060812240454p3bbc48b1wdd05537ac6615e90@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcllyyPKbQEDiEVg1UWuMGXvE2l0QA==
Thread-topic: [Xen-devel] assembly language use in xen
User-agent: Microsoft-Entourage/12.15.0.081119
I doubt the AT&T syntax is the most significant hurdle. The entry stubs are hidden away in macros in include/asm-x86/x86_32/asm_defns.h, and instantiated at the top of arch/x86/i8259.c. They get poked into the IDT in the first for() loop in init_IRQ().

 -- Keir

On 24/12/2008 12:54, "Furquan Shaikh" <furquan.m.shaikh@xxxxxxxxx> wrote:

Hello Keir,
Thanks a lot for the information.
I am having a tough time understanding the interrupt handling part in Xen as AT&T syntax is new for me.
Could you please give me a brief overview of the flow of control when control is transferred to Xen after interrupt?
Your guidance would be a lot of help for me.

Thanking you

Furquan

On Wed, Dec 24, 2008 at 5:16 PM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
On 24/12/2008 11:29, "Furquan Shaikh" <furquan.m.shaikh@xxxxxxxxx <http://furquan.m.shaikh@xxxxxxxxx> > wrote:

Is .text 1 the same as .section???

.text 1 occurs in entry.S

Please tell me what it means?

It specifies a numeric subsection. It's still part of the text section, but it will presumably be placed after the normal part of the text section. It's being used here to place rarely used code out of line. It also means that straight-line flow of control skips to the next instance of .previous, without needing an extra JMP instruction. Tricky code. :-)

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>