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: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 30 Oct 2008 12:17:07 +0000
Cc: linux-mips@linux-mips.org
In-reply-to: <1225365345-15635-2-git-send-email-tiejun.chen@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>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
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.

  Ralf

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