linux-mips
[Top] [All Lists]

Re: Réf. : Re: To put Linux kernel as closer as possible to 0x80000000

To: "Yoichi Yuasa" <yyuasa@gmail.com>, "Florian DELIZY" <florian.delizy@sagem.com>
Subject: Re: Réf. : Re: To put Linux kernel as closer as possible to 0x80000000
From: "colin" <colin@realtek.com.tw>
Date: Wed, 14 Dec 2005 11:11:49 +0800
Cc: <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <OFCB10026D.F6B473F3-ONC12570D6.0043AA59-C12570D6.00447CD7@sagem.com>
Sender: linux-mips-bounce@linux-mips.org
 
Hi Florian,
We use MIPS 4kec.
Linux runs in Interrupt Compatibility Mode, and it will use 0x80000200 to store the "Jump" instruction.
Therefore, we can move Linux kernel to 0x80000204. Is it right?
 
Another new question. If we modify Linux to use Ventored Interrupt mode, can we gain much performance?
 
Regards,
Colin
 
----- Original Message -----
Sent: Tuesday, December 13, 2005 8:28 PM
Subject: Réf. : Re: To put Linux kernel as closer as possible to 0x80000000



> Yoichi Yuasa wrote :
> Hi
>
> It has no problem.
> Kernel has reserved space for exception handlers.
>
> Yoichi
>
> 2005/12/13, colin <colin@realtek.com.tw>:
> >
> > Hi all,
> > We want to put Linux kernel as closer as possible to the bottom of memory.
> > I know that there is some stuff put in the beginning of memory, like
> > Exception table.
> > So, what's the closest address to 0x80000000 that is allowable to store
> > kernel?



You should just take care to start after reserved exception/interruption vectors

0x80000000 : TLB Refull
0x80000080 : General Exception Vector

+ 32 instructions.

Depending on your architecture, those addresses may vary (I don't know anything about MIPS64

BTW, what's your arch ?

-- Florian

-----BEGIN GEEK CODE BLOCK-----
GCS:GE:GM/ d? s-:+ a-- C+++
U(BLUAVHISX)++++ P++++ L++++
E--- W+++ N+++ o++++ w--- O M V
PS PE- PGP++ t 5 X+++ R+++ tv-
b+ BI++++ D+++ G e+++ h-- r+++ y+++
-----END GEEK CODE BLOC------
<Prev in Thread] Current Thread [Next in Thread>