patch-2.1.80 linux/include/asm-arm/processor.h

Next file: linux/include/asm-arm/procinfo.h
Previous file: linux/include/asm-arm/proc-fns.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.79/linux/include/asm-arm/processor.h linux/include/asm-arm/processor.h
@@ -0,0 +1,51 @@
+/*
+ * include/asm-arm/processor.h
+ *
+ * Copyright (C) 1995 Russell King
+ */
+
+#ifndef __ASM_ARM_PROCESSOR_H
+#define __ASM_ARM_PROCESSOR_H
+
+struct fp_hard_struct {
+	unsigned int save[140/4];		/* as yet undefined */
+};
+
+struct fp_soft_struct {
+	unsigned int save[140/4];		/* undefined information */
+};
+
+union fp_state {
+	struct fp_hard_struct	hard;
+	struct fp_soft_struct	soft;
+};
+
+typedef unsigned long mm_segment_t;		/* domain register	*/
+
+#define DECLARE_THREAD_STRUCT							\
+struct thread_struct {								\
+	unsigned long	address;		/* Address of fault	*/	\
+	unsigned long	trap_no;		/* Trap number		*/	\
+	unsigned long	error_code;		/* Error code of trap	*/	\
+	union fp_state	fpstate;		/* FPE save state	*/	\
+	EXTRA_THREAD_STRUCT							\
+}
+
+#include <asm/arch/processor.h>
+#include <asm/proc/processor.h>
+
+#define INIT_TSS  {			\
+	0,				\
+	0,				\
+	0,				\
+	{ { { 0, }, }, },		\
+	EXTRA_THREAD_STRUCT_INIT	\
+}
+
+/* Free all resources held by a thread. */
+extern void release_thread(struct task_struct *);
+
+#define init_task	(init_task_union.task)
+#define init_stack	(init_task_union.stack)
+
+#endif /* __ASM_ARM_PROCESSOR_H */

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