patch-1.3.92 linux/arch/alpha/mm/fault.c
Next file: linux/arch/i386/kernel/process.c
Previous file: linux/arch/alpha/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Apr 19 13:28:06 1996
- Orig file:
v1.3.91/linux/arch/alpha/mm/fault.c
- Orig date:
Tue Mar 12 15:31:10 1996
diff -u --recursive --new-file v1.3.91/linux/arch/alpha/mm/fault.c linux/arch/alpha/mm/fault.c
@@ -18,6 +18,22 @@
#include <asm/system.h>
#include <asm/segment.h>
#include <asm/pgtable.h>
+#include <asm/mmu_context.h>
+
+unsigned long asn_cache = ASN_FIRST_VERSION;
+
+#ifndef BROKEN_ASN
+/*
+ * Select a new ASN and reload the context. This is
+ * not inlined as this expands to a pretty large
+ * function.
+ */
+void get_new_asn_and_reload(struct task_struct *tsk, struct mm_struct *mm)
+{
+ get_new_mmu_context(tsk, mm, asn_cache);
+ reload_context(tsk);
+}
+#endif
extern void die_if_kernel(char *,struct pt_regs *,long);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this