Re: [PATCH] more i386 head.S cleanups

From: Brian Gerst
Date: Sat Apr 03 2004 - 17:50:03 EST


Matt Mackall wrote:
On Sat, Apr 03, 2004 at 09:32:07AM -0500, Brian Gerst wrote:

- Move empty_zero_page and swapper_pg_dir to BSS. This requires that BSS is cleared earlier, but reclaims over 3k that was lost due to page alignment.
- Move stack_start, ready, and int_msg, boot_gdt_descr, idt_descr, and cpu_gdt_descr to .data. They were interfering with disassembly while in .text.


Nice. Do you mean 3k here or 0x3000?

3 kilobytes apporiximately. Most of the first page was wasted because swapper_pg_dir aligns to the start of the next page.


On a related note, I've been sitting on this patch which reorders the
bootstrap code so we can free most of it once we're up:


The bootstrap page tables can easily be reclaimed if large pages are used, but the bootstrap code needs more care, especially with hotplug cpus.

--
Brian Gerst
-
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/