linux-mips
[Top] [All Lists]

Re: [PATCH] Reserve stack/heap area for RP program

To: "tiejun.chen" <tiejun.chen@windriver.com>
Subject: Re: [PATCH] Reserve stack/heap area for RP program
From: "tiejun.chen" <tiejun.chen@windriver.com>
Date: Mon, 03 Nov 2008 19:18:16 +0800
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
In-reply-to: <490A6298.8080002@windriver.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1225365345-15635-1-git-send-email-tiejun.chen@windriver.com> <1225365345-15635-2-git-send-email-tiejun.chen@windriver.com> <20081030121707.GJ26256@linux-mips.org> <490A6298.8080002@windriver.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.17 (X11/20080925)
tiejun.chen wrote:
> Ralf Baechle wrote:
>> On Thu, Oct 30, 2008 at 07:15:45PM +0800, Tiejun Chen wrote:
>>
>>> When you want to run a program on RP it's necessary to reserve
>>> corresponding stack/heap area of that program.
>> The official method is to pass a mem= argument when booting the kernel and
>> adjust by the amount required.  Which certainly is more flexible than
>> having to hack a constant deeply hidden in the kernel code as in your
>> proposed patch.
>>
> 
> This issue is not related to pass "mem= " if enable 
> CONFIG_MIPS_VPE_LOADER_TOM.
> That way is only load RP on the hidden memory to run. Anyway we still not
> reserve necessary memory for stack/heap of RP which may be overwrite by AP 
> such
> as linux so you will found kernel crash.

Ralf,

Can you give me some suggestions?

Best Regards
Tiejun

> 
>>   Ralf
>>
> 
> 
> 


<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH] Reserve stack/heap area for RP program, tiejun.chen <=