0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include <linux/kernel.h>
0011 #include <linux/init.h>
0012 #include <linux/io.h>
0013 #include <linux/string.h>
0014 #include <linux/initrd.h>
0015
0016 #include <asm/bootinfo.h>
0017 #include <asm/addrspace.h>
0018 #include <asm/fw/fw.h>
0019
0020 #include "common.h"
0021
0022 void __init prom_init(void)
0023 {
0024 fw_init_cmdline();
0025
0026 #ifdef CONFIG_BLK_DEV_INITRD
0027
0028 initrd_start = fw_getenvl("initrd_start");
0029 if (initrd_start) {
0030 initrd_start = KSEG0ADDR(initrd_start);
0031 initrd_end = initrd_start + fw_getenvl("initrd_size");
0032 }
0033 #endif
0034 }