[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1psetqg7d.fsf@ebiederm.dsl.xmission.com>
Date: Tue, 22 Aug 2006 03:20:54 -0600
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Andi Kleen <ak@...e.de>
Cc: Magnus Damm <magnus@...inux.co.jp>, fastboot@...ts.osdl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86_64: Reload CS when startup_64 is used.
Andi Kleen <ak@...e.de> writes:
> On Tue, 22 Aug 2006 02:37:44 -0600
> ebiederm@...ssion.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists