diff options
author | 2011-10-31 17:08:16 -0700 | |
---|---|---|
committer | 2011-10-31 17:30:47 -0700 | |
commit | 0a93ebef698b08ed04af0d7d913bab8aedfdc253 (patch) | |
tree | dcdb4bba9355647dd060d9150422537ad126442a /include/linux/memblock.h | |
parent | mm: avoid null pointer access in vm_struct via /proc/vmallocinfo (diff) | |
download | linux-0a93ebef698b08ed04af0d7d913bab8aedfdc253.tar.gz linux-0a93ebef698b08ed04af0d7d913bab8aedfdc253.tar.bz2 linux-0a93ebef698b08ed04af0d7d913bab8aedfdc253.zip |
memblock: add memblock_start_of_DRAM()
SPARC32 require access to the start address. Add a new helper
memblock_start_of_DRAM() to give access to the address of the first
memblock - which contains the lowest address.
The awkward name was chosen to match the already present
memblock_end_of_DRAM().
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Yinghai Lu <yinghai@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 7525e38c434d..e6b843e16e81 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -80,6 +80,7 @@ extern phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t align, phys_addr_t max_addr); extern phys_addr_t memblock_phys_mem_size(void); +extern phys_addr_t memblock_start_of_DRAM(void); extern phys_addr_t memblock_end_of_DRAM(void); extern void memblock_enforce_memory_limit(phys_addr_t memory_limit); extern int memblock_is_memory(phys_addr_t addr); |