Thx. Got it.
Any other solution to speed up the access to this
variable ? It's location never changes from kernel
init to shutdown if I haven't made that clear.
--- Jun Sun <email@example.com> wrote:
> 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
> > quite a few times. This variable is a structure
> > is approximately 60 bytes big.
> > In there any way I can "convince" my kernel
> > 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
> and current thread in 2.5. Don't mess with it
> you are absolutely sure what you are doing.
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more