Linux MIPS Architecture development
 help / color / mirror / Atom feed
* beginners question
@ 2004-11-22  1:25 Mad Props
  2004-11-22 15:01 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Mad Props @ 2004-11-22  1:25 UTC (permalink / raw)
  To: linux-mips

Hi,

i wrote a little MIPS startup code that uses the serial port to print some
output. Further I enabled timer interrupts. So far, I'm using kseg1 since
nothing else is intialized.

I have a static variable in my C exception hander. The problem with it: it's
apparently not within kseg1 but in the user segment and causes the exception
handler to get invoked recursively. How can I change this so that all
variables / code use kseg1 ?

thx

Thomas

-- 
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: beginners question
  2004-11-22  1:25 beginners question Mad Props
@ 2004-11-22 15:01 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2004-11-22 15:01 UTC (permalink / raw)
  To: Mad Props; +Cc: linux-mips

On Mon, Nov 22, 2004 at 02:25:06AM +0100, Mad Props wrote:

> i wrote a little MIPS startup code that uses the serial port to print some
> output. Further I enabled timer interrupts. So far, I'm using kseg1 since
> nothing else is intialized.
> 
> I have a static variable in my C exception hander. The problem with it: it's
> apparently not within kseg1 but in the user segment and causes the exception
> handler to get invoked recursively. How can I change this so that all
> variables / code use kseg1 ?

Seems like you need a linker script.  The kernel has it's linker script
in arch/mips/kernel/vmlinux.lds.S but due to complexity that's probably
not a good example to look at.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-22 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-22  1:25 beginners question Mad Props
2004-11-22 15:01 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox