patch-2.1.79 linux/arch/ppc/chrpboot/mknote.c

Next file: linux/arch/ppc/chrpboot/no_initrd.c
Previous file: linux/arch/ppc/chrpboot/misc.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/arch/ppc/chrpboot/mknote.c linux/arch/ppc/chrpboot/mknote.c
@@ -0,0 +1,25 @@
+struct desc
+{
+	unsigned long namesz;
+	unsigned long descrsz;
+	unsigned long type;
+	char name[8];
+	unsigned long real_mode;
+	unsigned long real_base;
+	unsigned long real_size;
+	unsigned long virt_base;
+	unsigned long virt_size;
+	unsigned long load_base;
+};
+
+int main(void)
+{
+	struct desc ns;
+	ns.namesz = 8;
+	ns.descrsz = 24;
+	ns.type = 0x1275;
+	strcpy(ns.name, "PowerPC");
+	ns.load_base = -1;
+	write( 1, &ns, sizeof(struct desc));
+	return 0;
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov