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] A useless short jmp?

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] A useless short jmp?
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Tue, 19 Jun 2007 10:03:42 +0800
Delivery-date: Mon, 18 Jun 2007 19:02:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C29C65D8.10D60%keir@xxxxxxxxxxxxx>
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: <B30DA1341B0CFA4893EF8A36B40B5C5D01484D89@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C29C65D8.10D60%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcexsWxtRnqse1ngRRSVOXIcWSiSzwADXzoNABVnA0A=
Thread-topic: [Xen-devel] A useless short jmp?
>> According to Intel Spec, it's useless, do we have any 
>special reason to
>> have it there?
>> BTW why put mov $1, %bl between lmsw and it's corresponding ljmp?
>
>Hmmm... I'm sure I read somewhere about a jmp to clear the 
>prefetch queue,


Surely you did read it :-), in the latest Spec (version of May 2007),
in17.29.3 Enabling and Disabling Paging, it's said a near jump should be
executed after set or clear PG flag in CR0, but it's a different case
since we are setting or clearing PE flag, probably plus PG changes too.

-Xin 

>but reading the appropriate manual pages now I see I only need 
>the ljmp.
>I'll fix that and also move the write to %bx somewhere more sensible.
>
> Thanks,
> Keir
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>