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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/12/07, Andi Kleen <[email protected]> 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 <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux