diff options
author | Jeremy Kerr <jeremy.kerr@au1.ibm.com> | 2014-09-12 14:26:06 +0800 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-10-30 16:50:39 +1100 |
commit | 8ae439ca855c0435e8bd84f7ffc16e505cad85f7 (patch) | |
tree | 6f0e23df1760a8b1dda46785889018070bebe01e /include/mem-map.h | |
parent | 4797b3eee3a0fc41ff5d68408dc73ac5e6fd248e (diff) | |
download | skiboot-8ae439ca855c0435e8bd84f7ffc16e505cad85f7.zip skiboot-8ae439ca855c0435e8bd84f7ffc16e505cad85f7.tar.gz skiboot-8ae439ca855c0435e8bd84f7ffc16e505cad85f7.tar.bz2 |
core: Add support for loading an external initramfs
Using the platform.load_resource interface, allow an external initramfs
image to be passed to the kernel.
We split the KERNEL_LOAD_BASE/KERNEL_LOAD_SIZE region in half, to allow
space for the initramfs.
Signed-off-by: Jeremy Kerr <jeremy.kerr@au.ibm.com>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/mem-map.h')
-rw-r--r-- | include/mem-map.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mem-map.h b/include/mem-map.h index 2d01ab6..5ed45de 100644 --- a/include/mem-map.h +++ b/include/mem-map.h @@ -110,7 +110,10 @@ * without a built-in kernel. */ #define KERNEL_LOAD_BASE ((void *)0x20000000) -#define KERNEL_LOAD_SIZE 0x10000000 +#define KERNEL_LOAD_SIZE 0x08000000 + +#define INITRAMFS_LOAD_BASE KERNEL_LOAD_BASE + KERNEL_LOAD_SIZE +#define INITRAMFS_LOAD_SIZE 0x08000000 /* Size allocated to build the device-tree */ #define DEVICE_TREE_MAX_SIZE 0x80000 |