patch-2.3.4 linux/arch/sparc64/mm/init.c

Next file: linux/arch/sparc64/solaris/ioctl.c
Previous file: linux/arch/sparc64/math-emu/udivmodti4.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.3/linux/arch/sparc64/mm/init.c linux/arch/sparc64/mm/init.c
@@ -1,4 +1,4 @@
-/*  $Id: init.c,v 1.127 1999/05/08 03:00:38 davem Exp $
+/*  $Id: init.c,v 1.128 1999/05/25 16:53:24 jj Exp $
  *  arch/sparc64/mm/init.c
  *
  *  Copyright (C) 1996-1999 David S. Miller (davem@caip.rutgers.edu)
@@ -21,6 +21,7 @@
 #include <asm/oplib.h>
 #include <asm/iommu.h>
 #include <asm/io.h>
+#include <asm/uaccess.h>
 #include <asm/mmu_context.h>
 #include <asm/vaddrs.h>
 #include <asm/dma.h>
@@ -729,6 +730,9 @@
 {
 	unsigned long pstate;
 	int i;
+
+	if (!enter)
+		set_fs(current->tss.current_ds);
 
 	if (!prom_ditlb_set)
 		return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)