[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A5CF62F.6020102@nortel.com>
Date: Tue, 14 Jul 2009 15:18:39 -0600
From: "Chris Friesen" <cfriesen@...tel.com>
To: linuxppc-dev@...abs.org,
Linux kernel <linux-kernel@...r.kernel.org>
Subject: proper way to reserve a chunk of memory at the top of the kernel?
I have a powerpc board with 512BM of memory. The BIOS has a chunk of
memory at the top end of physical memory which it does not zero out over
a reboot.
What's the proper way to tell linux that this chunk of physical memory
should be ignored (so that we can access it later without worrying that
Linux will try to allocate it)? Should I be calling
lmb_reserve(lmb_end_of_DRAM() - size, size);
in early_reserve_mem() or is there a better mechanism?
For comparison, in an older kernel this was done in set_phys_avail(), by
calling mem_pieces_remove(&phys_avail, total_lowmem - size, size, 1);
Thanks,
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists