Re: [PATCH] more i386 head.S cleanups

From: H. Peter Anvin
Date: Thu Apr 15 2004 - 16:03:02 EST


Followup to: <406ECAE7.1020407@xxxxxxxxxxxxxxxxxxx>
By author: Brian Gerst <bgerst@xxxxxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> - 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.
>

Some of them should be in .rodata instead of .data.

.data should only be used for modifiable numbers.

All in all these patches are a good idea; I had the same thoughts when
I was doing the changes to the boot page tables, but didn't want to
change too much at once.

-hpa
-
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/