| To: | Tinga Shilo <tingashilo@yahoo.com> |
|---|---|
| Subject: | Re: static variables access and gp |
| From: | Jun Sun <jsun@mvista.com> |
| Date: | Thu, 6 Mar 2003 09:40:34 -0800 |
| Cc: | linux-mips@linux-mips.org, jsun@mvista.com |
| In-reply-to: | <20030306073017.65521.qmail@web41509.mail.yahoo.com>; from tingashilo@yahoo.com on Wed, Mar 05, 2003 at 11:30:17PM -0800 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20030306073017.65521.qmail@web41509.mail.yahoo.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.2.5i |
On Wed, Mar 05, 2003 at 11:30:17PM -0800, Tinga Shilo wrote: > Hi, > I am implementing a kernel mechanism which is > very performance oriented. Along my long critical > path, > there is a static variable that needs to be accessed > quite a few times. This variable is a structure which > is approximately 60 bytes big. > In there any way I can "convince" my kernel (compiled > with gcc) to access this variable using gp ? > Is gp usually used for this purpose in mips-linux ? > Can it be ? > No. gp is used by kernel to hold current process in 2.4 and current thread in 2.5. Don't mess with it unless you are absolutely sure what you are doing. Jun |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] add CONFIG_DEBUG_INFO, Kip Walker |
|---|---|
| Next by Date: | [pathch] kernel/sched.c bogon?, Kip Walker |
| Previous by Thread: | static variables access and gp, Tinga Shilo |
| Next by Thread: | Re: static variables access and gp, Tinga Shilo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |