Re: [PATCH]x86_64: build and use GDT on copied compressed kernel

From: Yinghai Lu
Date: Sun May 13 2007 - 02:41:19 EST


On 5/12/07, Andi Kleen <ak@xxxxxxx> wrote:
On Sunday 13 May 2007 07:33:14 Yinghai Lu wrote:

Can you please give a little more description on why you think the patch
is needed? Also we need a Signed-off-by line.

in the arch/x86_64/boot/compressed/head.S.
it switch to 64 bit mode and then copy compressed image to higher
address. and jump the copied image, then decompressed the compressed
image to final uncompressed kernel and it may overlapped with original
loaded compressed kernel image.

before jump to 64 bit mode, it will create new page table in some
place higher in copied compressed kernel image. but still use the GDT
in place of original loaded compressed image. So the GDT will be
overwriten in the middle of decompressing.

So we could change to build the GDT like page table together with
copied compressed kernel.

Signed-off-by: Yinghai Lu <yhlu.kernel@xxxxxxxxx>

http://lkml.org/lkml/2007/5/13/8
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/