/* Prom init. We read our one and only communication with the firmware. Grab the amount of installed memory. Better boot loaders (CoLo) pass a command line too :-)  */
void __init prom_init(void)
/* Prom init. We read our one and only communication with the firmware. Grab the amount of installed memory. Better boot loaders (CoLo) pass a command line too :-)  */
void __init prom_init(void)
{
	unsigned long memsz;
	int argc, i;
	char **argv;
	memsz = fw_arg0 & 0x7fff0000;
	argc = fw_arg0 & 0x0000ffff;
	argv = (char **)fw_arg1;
	for (i = 1; i < argc; i++) {
		strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE);
		if (i < (argc - 1))
			strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
	}
	add_memory_region(0x0, memsz, BOOT_MEM_RAM);
}