mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: How to tell kernel that a region of memory is reserved (in middle of ram)?
Date: Wed, 02 Jun 2010 13:11:22 +0300	[thread overview]
Message-ID: <1275473482.11579.21.camel@maxim-laptop> (raw)

Hi,

I need to reserve a region of ram to store there a ramoops buffer.
I need to do so early so kernel doesn't overwrite the existing contents.

How to do it?

I noticed that doing memmap=20M$0x70000000 crashes the system although
it promised to work.
Is that a bug?

I have 2GB system with following memory map:

[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[    0.000000]  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000007fcfd000 (usable)
[    0.000000]  BIOS-e820: 000000007fcfd000 - 000000007fd08000 (reserved)
[    0.000000]  BIOS-e820: 000000007fd08000 - 000000007fd52000 (usable)
[    0.000000]  BIOS-e820: 000000007fd52000 - 000000007fd55000 (reserved)
[    0.000000]  BIOS-e820: 000000007fd55000 - 000000007fdbb000 (usable)
[    0.000000]  BIOS-e820: 000000007fdbb000 - 000000007fdbf000 (reserved)
[    0.000000]  BIOS-e820: 000000007fdbf000 - 000000007fe70000 (usable)
[    0.000000]  BIOS-e820: 000000007fe70000 - 000000007febf000 (ACPI NVS)
[    0.000000]  BIOS-e820: 000000007febf000 - 000000007ff00000 (ACPI data)
[    0.000000]  BIOS-e820: 000000007ff00000 - 0000000080000000 (reserved)
[    0.000000]  BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
[    0.000000]  BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
[    0.000000]  BIOS-e820: 00000000fed14000 - 00000000fed1a000 (reserved)
[    0.000000]  BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
[    0.000000]  BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
[    0.000000]  BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)


Best regards,
	Maxim Levitsky


             reply	other threads:[~2010-06-02 10:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 10:11 Maxim Levitsky [this message]
2010-06-02 20:31 ` Yinghai Lu

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=1275473482.11579.21.camel@maxim-laptop \
    --to=maximlevitsky@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®