lkml.org 
[lkml]   [2005]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] save 4 bytes in "thread_struct" by changing fs/gs to "unsigned short"
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-06-06 02:15    [W:0.027 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site