From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: [PATCH] Mini-os get_current() fixup Date: Mon, 15 Oct 2007 17:30:58 +0100 Message-ID: <20071015163058.GC26450@implementation.uk.xensource.com> References: <20071015162332.GB26450@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20071015162332.GB26450@implementation.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Samuel Thibault, le Mon 15 Oct 2007 17:23:32 +0100, a =E9crit : > 0x00019301 : mov $0x1,%ecx > 0x00019306 : mov $0xffffe000,%eax > 0x0001930b : mov %ecx,0x32980 > 0x00019311 : and %esp,%edx > 0x00019313 : mov (%edx),%ecx > 0x00019315 : mov (%ecx),%eax >=20 > Which is supposed to approximately correspond to get_current(). It > happens that %edx is never set to 0xfffff000. The attached patch fixes (I meant 0xffffe000 of course) Samuel