Skip to contentSkip to conversation

gp

DISCUSSION Tim Hockin 2 participants 2 messages Jul 15, 1999 – Jul 16, 1999 MIPS

lore
Share & tools
lore

Tim Hockin

author
#0 lore raw

Ralf + crew

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?

Tim

#1 lore raw
Quoted 7 lines · Tim Hockin

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