Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751084AbWHVJVY (ORCPT ); Tue, 22 Aug 2006 05:21:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751374AbWHVJVY (ORCPT ); Tue, 22 Aug 2006 05:21:24 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:54189 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S1751084AbWHVJVX (ORCPT ); Tue, 22 Aug 2006 05:21:23 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Andi Kleen Cc: Magnus Damm , fastboot@lists.osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86_64: Reload CS when startup_64 is used. References: <20060821095328.3132.40575.sendpatchset@cherry.local> <1156208306.21411.85.camel@localhost> <200608221003.12608.ak@suse.de> <20060822110106.7582fcb9.ak@suse.de> Date: Tue, 22 Aug 2006 03:20:54 -0600 In-Reply-To: <20060822110106.7582fcb9.ak@suse.de> (Andi Kleen's message of "Tue, 22 Aug 2006 11:01:06 +0200") Message-ID: User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 730 Lines: 31 Andi Kleen writes: > On Tue, 22 Aug 2006 02:37:44 -0600 > ebiederm@xmission.com (Eric W. Biederman) wrote: > >> >> In long mode the %cs is largely a relic. However there are a few cases >> like lret > > You mean iret? Yes, sorry. > >> + * jump. In addition we need to ensure %cs is set so we make this >> + * a far return. >> */ >> movq initial_code(%rip),%rax >> - jmp *%rax >> + pushq $__KERNEL_CS >> + pushq %rax >> + lretq > > Ok merged thanks > > -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/