diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-01-17 03:49:37 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-01-17 03:49:37 +0000 |
commit | 317b660279d583d4db3fc112e3ef2e56b20bec87 (patch) | |
tree | edd0330546242932075dae028c437a613e2ad6b8 /arch/mips/baget/prom | |
parent | 78c388aed2b7184182c08428db1de6c872d815f5 (diff) |
First round of commits for support for DECstations and Bagets.
Diffstat (limited to 'arch/mips/baget/prom')
-rw-r--r-- | arch/mips/baget/prom/Makefile | 15 | ||||
-rw-r--r-- | arch/mips/baget/prom/init.c | 21 |
2 files changed, 36 insertions, 0 deletions
diff --git a/arch/mips/baget/prom/Makefile b/arch/mips/baget/prom/Makefile new file mode 100644 index 000000000..a98779f0e --- /dev/null +++ b/arch/mips/baget/prom/Makefile @@ -0,0 +1,15 @@ +# $Id$ +# Makefile for the Baget/MIPS prom emulator library routines. +# +# Note! Dependencies are done automagically by 'make dep', which also +# removes any old dependencies. DON'T put your own dependencies here +# unless it's something special (ie not a .c file). +# +# Note 2! The CFLAGS definitions are now in the main makefile... + +O_TARGET := bagetlib.a +O_OBJS := init.o + +all: $(O_TARGET) + +include $(TOPDIR)/Rules.make diff --git a/arch/mips/baget/prom/init.c b/arch/mips/baget/prom/init.c new file mode 100644 index 000000000..e5c100dea --- /dev/null +++ b/arch/mips/baget/prom/init.c @@ -0,0 +1,21 @@ +/* + * init.c: PROM library initialisation code. + * + * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov + * + * $Id$ + */ +#include <linux/init.h> +#include <linux/config.h> +#include <asm/bootinfo.h> + +char arcs_cmdline[CL_SIZE]; + +__initfunc(int prom_init(unsigned int mem_upper)) +{ + mips_memory_upper = mem_upper; + mips_machgroup = MACH_GROUP_UNKNOWN; + mips_machtype = MACH_UNKNOWN; + arcs_cmdline[0] = 0; + return 0; +} |