[PATCH] save 4 bytes in "thread_struct" by changing fs/gs to "unsigned short"

From: Marcelo Tosatti
Date: Sun Jun 05 2005 - 19:13:26 EST


Hi HJLu, Linus, Arjan,

Now that all users of fs and gs fields of "thread_struct" have been switched
to use "mov" instead of "movl" (newer binutils requirement), why not save
4 bytes switching those fields to 16-bit data types.

No big deal, but as we say around here, "grain by grain the chicken gets fat".

--- a/include/asm-i386/processor.h.orig 2005-06-05 20:11:00.000000000 -0300
+++ b/include/asm-i386/processor.h 2005-06-05 20:11:44.000000000 -0300
@@ -439,8 +439,8 @@ struct thread_struct {
unsigned long sysenter_cs;
unsigned long eip;
unsigned long esp;
- unsigned long fs;
- unsigned long gs;
+ unsigned short fs;
+ unsigned short gs;
/* Hardware debugging registers */
unsigned long debugreg[8]; /* %%db0-7 debug registers */
/* fault info */
-
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/