* [PATCH] save 4 bytes in "thread_struct" by changing fs/gs to "unsigned short"
@ 2005-06-05 18:51 Marcelo Tosatti
0 siblings, 0 replies; only message in thread
From: Marcelo Tosatti @ 2005-06-05 18:51 UTC (permalink / raw)
To: hjl, arjan, torvalds; +Cc: linux-kernel
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-06 0:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-05 18:51 [PATCH] save 4 bytes in "thread_struct" by changing fs/gs to "unsigned short" Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox