From: Ralf Baechle <ralf@linux-mips.org>
To: Andrew Frezell <dfrezell@speakeasy.net>
Cc: linux-mips@linux-mips.org
Subject: Re: mounting fs from memory
Date: Mon, 22 Mar 2004 19:46:34 +0100 [thread overview]
Message-ID: <20040322184634.GC6720@linux-mips.org> (raw)
In-Reply-To: <9C1F2DDC-7BAF-11D8-A797-00039394886E@speakeasy.net>
On Sun, Mar 21, 2004 at 10:18:37PM -0500, Andrew Frezell wrote:
> 1. Is there some way to protect the memory regions in RAM from linux
> just trashing it? I saw a function add_memory_region in
> arch/mips/kernel/setup.c that seems to do something, does anyone know
> what exactly this does?
The kernel won't touch any memory below the kernel itself. I consider that
a bug so will change that for now that's a save region to place something.
add_memory_region takes a third argument which can be BOOT_MEM_RAM,
BOOT_MEM_ROM_DATA or BOOT_MEM_RESERVED. You should pass BOOT_MEM_RESERVED
for to tell the kernel that a certain region should not be considered
usable memory. For completeness sake BOOT_MEM_RAM is free memory and
BOOT_MEM_ROM_DATA will be free at the end of kernel initialization so is
usually used to describe free memory regions which hold firmware data that
becomes useless after initialization.
Ralf
prev parent reply other threads:[~2004-03-22 18:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-22 3:18 mounting fs from memory Andrew Frezell
2004-03-22 18:46 ` 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=20040322184634.GC6720@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=dfrezell@speakeasy.net \
--cc=linux-mips@linux-mips.org \
/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