patch-2.1.79 linux/include/asm-sparc/processor.h

Next file: linux/include/asm-sparc/psr.h
Previous file: linux/include/asm-sparc/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/include/asm-sparc/processor.h linux/include/asm-sparc/processor.h
@@ -1,4 +1,4 @@
-/* $Id: processor.h,v 1.59 1997/05/01 01:42:03 davem Exp $
+/* $Id: processor.h,v 1.61 1997/10/22 09:25:42 jj Exp $
  * include/asm-sparc/processor.h
  *
  * Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu)
@@ -35,11 +35,20 @@
  */
 #define TASK_SIZE	(page_offset)
 
+#define COPY_TASK_STRUCT(dst, src) 	\
+do {					\
+	*dst = *src;			\
+} while (0)
+
 struct fpq {
 	unsigned long *insn_addr;
 	unsigned long insn;
 };
 
+typedef struct {
+	int seg;
+} mm_segment_t;
+
 /* The Sparc processor specific thread struct. */
 struct thread_struct {
 	unsigned long uwinmask __attribute__ ((aligned (8)));
@@ -74,7 +83,7 @@
 	struct fpq	fpqueue[16];
 	struct sigstack sstk_info;
 	unsigned long flags;
-	int current_ds;
+	mm_segment_t current_ds;
 	struct exec core_exec;     /* just what it says. */
 	int new_signal;
 };
@@ -103,7 +112,7 @@
 /* sstk_info */ \
 { 0, 0, }, \
 /* flags,              current_ds, */ \
-   SPARC_FLAG_KTHREAD, USER_DS, \
+   SPARC_FLAG_KTHREAD, KERNEL_DS, \
 /* core_exec */ \
 { 0, }, \
 /* new_signal */ \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov