From: Ralf Baechle <ralf@linux-mips.org>
To: Mad Props <madprops@gmx.net>
Cc: linux-mips@linux-mips.org
Subject: Re: beginners question
Date: Mon, 22 Nov 2004 16:01:08 +0100 [thread overview]
Message-ID: <20041122150108.GA4241@linux-mips.org> (raw)
In-Reply-To: <8709.1101086706@www8.gmx.net>
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
prev parent reply other threads:[~2004-11-22 15:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-22 1:25 beginners question Mad Props
2004-11-22 15:01 ` Ralf Baechle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041122150108.GA4241@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=madprops@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox