linux-mips
[Top] [All Lists]

Re: gp

To: Tim Hockin <thockin@cobaltnet.com>
Subject: Re: gp
From: Ralf Baechle <ralf@uni-koblenz.de>
Date: Fri, 16 Jul 1999 03:35:36 +0200
Cc: linux@cthulhu.engr.sgi.com
In-reply-to: <378E2FEF.6E82871A@cobaltnet.com>; from Tim Hockin on Thu, Jul 15, 1999 at 12:01:03PM -0700
References: <378E2FEF.6E82871A@cobaltnet.com>
Sender: owner-linux@cthulhu.engr.sgi.com
On Thu, Jul 15, 1999 at 12:01:03PM -0700, Tim Hockin wrote:

> just playing around with kernel, and wondering what (if any) work has
> been done to use gp within the kernel.  I know it is built with -G 0
> now.
> 
> I looked into it, and made sure that gp got saved and restored correctly
> (I think), but when I compile with -G > 0 gcc (or egcs) gets signal 11 -
> ideas?

In Linux 2.1 / 2.2 we have an other use of the gp; it contains the
current variable.  See include/asm-mips/current.h.  It's been on my to do
list for a long time to check if -G > 0 will be a better use of $28 than
putting the current variable there.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>
  • gp, Tim Hockin
    • Re: gp, Ralf Baechle <=