patch-2.4.19 linux-2.4.19/arch/mips/hp-lj/init.c
Next file: linux-2.4.19/arch/mips/hp-lj/int-handler.S
Previous file: linux-2.4.19/arch/mips/hp-lj/gdb_hook.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/mips/hp-lj/init.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -urN linux-2.4.18/arch/mips/hp-lj/init.c linux-2.4.19/arch/mips/hp-lj/init.c
@@ -0,0 +1,53 @@
+/*
+ * init.c: PROM library initialisation code.
+ *
+ * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov
+ */
+
+#include <linux/mm.h>
+#include <asm/bootinfo.h>
+#include <asm/addrspace.h>
+#include <asm/hp-lj/asic.h>
+#include <linux/bootmem.h>
+
+#include "utils.h"
+
+
+#define Delimiter "CMDLINE="
+const char CommandLine[] = Delimiter
+ "root=/dev/hda3 ";
+
+char arcs_cmdline[CL_SIZE];
+
+int __init prom_init(int argc, char ** argv, char **envp)
+{
+ ulong mem_size = get_mem_avail();
+ int reserve_size = 0;
+
+ printk("Total Memory: %ld bytes\n", mem_size);
+
+ reserve_buffer(CommandLine, mem_size);
+
+ reserve_size = get_reserved_buffer_size();
+ mem_size -= reserve_size;
+
+ add_memory_region(0x0,mem_size, BOOT_MEM_RAM);
+ add_memory_region(mem_size,reserve_size, BOOT_MEM_RESERVED);
+
+ printk("Main Memory: %ld bytes\n", mem_size);
+ printk("Reserved Memory: %ld bytes at 0x%08x\n",
+ get_reserved_buffer_size(), (ulong)get_reserved_buffer());
+
+ printk("Detected %s ASIC\n", GetAsicName());
+ mips_machgroup = MACH_GROUP_HP_LJ;
+ mips_machtype = MACH_UNKNOWN;
+
+ strcpy(arcs_cmdline, CommandLine+strlen(Delimiter));
+
+ return 0;
+}
+
+
+void prom_free_prom_memory (void)
+{
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)