patch-1.3.93 linux/include/asm-sparc/processor.h
Next file: linux/include/asm-sparc/ross.h
Previous file: linux/include/asm-sparc/posix_types.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Sun Apr 21 12:30:33 1996
- Orig file:
v1.3.92/linux/include/asm-sparc/processor.h
- Orig date:
Mon Mar 4 08:50:02 1996
diff -u --recursive --new-file v1.3.92/linux/include/asm-sparc/processor.h linux/include/asm-sparc/processor.h
@@ -1,4 +1,4 @@
-/* $Id: processor.h,v 1.40 1996/02/03 10:06:01 davem Exp $
+/* $Id: processor.h,v 1.43 1996/03/23 02:40:05 davem Exp $
* include/asm-sparc/processor.h
*
* Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu)
@@ -24,10 +24,10 @@
#define MCA_bus__is_a_macro /* for versions in ksyms.c */
/*
- * Write Protection works right in supervisor mode on the Sparc...
- * And then there came the Swift module, which isn't so swift...
+ * The sparc has no problems with write protection
*/
-extern char wp_works_ok;
+#define wp_works_ok 1
+#define wp_works_ok__is_a_macro /* for versions in ksyms.c */
/* Whee, this is STACK_TOP and the lowest kernel address too... */
#define TASK_SIZE (KERNBASE)
@@ -122,14 +122,14 @@
regs->pc = ((pc & (~3)) - 4);
regs->npc = regs->pc + 4;
regs->psr = saved_psr;
- regs->u_regs[UREG_G1] = sp; /* Base of arg/env stack area */
- regs->u_regs[UREG_G2] = regs->u_regs[UREG_G7] = regs->npc;
regs->u_regs[UREG_FP] = (sp - REGWIN_SZ);
}
+#ifdef __KERNEL__
extern unsigned long (*alloc_kernel_stack)(struct task_struct *tsk);
extern void (*free_kernel_stack)(unsigned long stack);
extern struct task_struct *(*alloc_task_struct)(void);
extern void (*free_task_struct)(struct task_struct *tsk);
+#endif
#endif /* __ASM_SPARC_PROCESSOR_H */
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