summaryrefslogtreecommitdiffstats
path: root/arch/mips64
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-08-19 22:56:31 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-08-19 22:56:31 +0000
commit8a1ae5514bf9f793282ea5a61254f7fbb3a5ec3e (patch)
tree317452d53b8f901052d08c7ebbce07e85839bb43 /arch/mips64
parent794ff4dc959a8dfef4f704ef6a5bb7334e421623 (diff)
MIPS 64, day 2.
Diffstat (limited to 'arch/mips64')
-rw-r--r--arch/mips64/kernel/Makefile20
-rw-r--r--arch/mips64/mm/init.c35
2 files changed, 21 insertions, 34 deletions
diff --git a/arch/mips64/kernel/Makefile b/arch/mips64/kernel/Makefile
new file mode 100644
index 000000000..34f033d17
--- /dev/null
+++ b/arch/mips64/kernel/Makefile
@@ -0,0 +1,20 @@
+#
+# Makefile for the Linux/MIPS kernel.
+#
+# 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).
+#
+
+.S.o:
+ $(CC) $(CFLAGS) -c $< -o $*.o
+
+all: kernel.o
+
+O_TARGET := kernel.o
+O_OBJS :=
+OX_OBJS :=
+
+clean:
+
+include $(TOPDIR)/Rules.make
diff --git a/arch/mips64/mm/init.c b/arch/mips64/mm/init.c
index d6e489693..b94fa636b 100644
--- a/arch/mips64/mm/init.c
+++ b/arch/mips64/mm/init.c
@@ -1,4 +1,4 @@
-/* $Id$
+/* $Id: init.c,v 1.1 1999/08/18 23:37:47 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -386,36 +386,3 @@ si_meminfo(struct sysinfo *val)
val->sharedram <<= PAGE_SHIFT;
return;
}
-
-/* Fixup an immediate instruction */
-static void __init
-__i_insn_fixup(unsigned int **start, unsigned int **stop,
- unsigned int i_const)
-{
- unsigned int **p, *ip;
-
- for (p = start;p < stop; p++) {
- ip = *p;
- *ip = (*ip & 0xffff0000) | i_const;
- }
-}
-
-#define i_insn_fixup(section, const) \
-do { \
- extern unsigned int *__start_ ## section; \
- extern unsigned int *__stop_ ## section; \
- __i_insn_fixup(&__start_ ## section, &__stop_ ## section, const); \
-} while(0)
-
-/* Caller is assumed to flush the caches before the first context switch. */
-void __init
-__asid_setup(unsigned int inc, unsigned int mask, unsigned int version_mask,
- unsigned int first_version)
-{
- i_insn_fixup(__asid_inc, inc);
- i_insn_fixup(__asid_mask, mask);
- i_insn_fixup(__asid_version_mask, version_mask);
- i_insn_fixup(__asid_first_version, first_version);
-
- asid_cache = first_version;
-}