[Top] [All Lists]

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

To: Ralf Baechle <>
Subject: Re: [PATCH] Reserve stack/heap area for RP program
From: "tiejun.chen" <>
Date: Fri, 31 Oct 2008 09:42:48 +0800
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Thunderbird (X11/20080925)
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

<Prev in Thread] Current Thread [Next in Thread>