From 8a1ae5514bf9f793282ea5a61254f7fbb3a5ec3e Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 19 Aug 1999 22:56:31 +0000 Subject: MIPS 64, day 2. --- arch/mips64/mm/init.c | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'arch/mips64/mm') 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; -} -- cgit v1.2.3