|
From: Andy P. <at...@us...> - 2001-07-31 17:33:29
|
Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax
In directory usw-pr-cvs1:/tmp/cvs-serv1125
Modified Files:
irq.h ka43.h processor.h ptrace.h sigcontext.h vsa.h
Added Files:
ucontext.h
Log Message:
New mm layer + start of signal handling + misc fixes
--- NEW FILE ---
#ifndef _ASM_VAX_UCONTEXT_H
#define _ASM_VAX_UCONTEXT_H
/* atp Jul 2001, taken from other ports */
struct ucontext {
unsigned long uc_flags;
struct ucontext *uc_link;
stack_t uc_stack;
struct sigcontext uc_mcontext;
sigset_t uc_sigmask; /* mask last for extensibility */
};
#endif /* _ASM_VAX_UCONTEXT_H */
Index: irq.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/irq.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- irq.h 2001/02/16 00:54:26 1.2
+++ irq.h 2001/07/31 17:33:26 1.3
@@ -18,7 +18,8 @@
#define NO_IRQ 1023
#endif
-#define INT_STACK_SIZE 8192
+/* atp Jul 01 increased this to three pages - my M38 needs it for some reason */
+#define INT_STACK_SIZE 12288
#ifndef __ASSEMBLY__
Index: ka43.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/ka43.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ka43.h 2001/06/26 19:01:11 1.3
+++ ka43.h 2001/07/31 17:33:26 1.4
@@ -158,5 +158,7 @@
#endif /* __ASSEMBLY */
+extern void ka43_diagmem_remap(unsigned long int address, unsigned long int size);
+
#endif /* __VAX_KA43_H */
Index: processor.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/processor.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- processor.h 2001/06/10 22:40:09 1.8
+++ processor.h 2001/07/31 17:33:26 1.9
@@ -5,7 +5,7 @@
#include <asm/pcb.h> /* process control block definition */
#include <asm/page.h>
#include <asm/vaxcpu.h> /* CPU type definitions */
-
+#include <asm/mm/task.h> /* task memory space defines */
/*
* Default implementation of macro that returns current
* instruction pointer ("program counter").
@@ -25,18 +25,6 @@
} vax_cpu;
-/*
- * * User space process size: 2GB (default).
- * */
-#define TASK_SIZE (PAGE_OFFSET)
-
-/* This decides where the kernel will search for a free chunk of vm
- * * space during mmap's.
- * */
-/*#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)*/
-/* Put the MMAP base at 32MB into the process memory space...
- we currently allocate 48MB per process */
-#define TASK_UNMAPPED_BASE (32*1024*1024)
/* from alpha port */
Index: ptrace.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/ptrace.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ptrace.h 2001/01/23 16:51:27 1.2
+++ ptrace.h 2001/07/31 17:33:26 1.3
@@ -1,3 +1,4 @@
+/* ptrace.h linux vax porting team 1998-2001 */
#ifndef _VAX_PTRACE_H
#define _VAX_PTRACE_H
Index: sigcontext.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/sigcontext.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sigcontext.h 2001/01/17 16:18:52 1.1
+++ sigcontext.h 2001/07/31 17:33:26 1.2
@@ -5,12 +5,27 @@
#include <asm/ptrace.h>
-struct sigcontext_struct {
- unsigned long _unused[4];
- int signal;
- unsigned long handler;
- unsigned long oldmask;
- struct pt_regs *regs;
+//struct sigcontext_struct {
+// unsigned long _unused[4];
+// int signal;
+// unsigned long handler;
+// unsigned long oldmask;
+// struct pt_regs *regs;
+//};
+
+/* This struct is saved by setup_frame in signal.c, to keep the current context while
+ a signal handler is executed. It's restored by sys_sigreturn.
+
+ To keep things simple, we use pt_regs here even though normally you just specify
+ the list of regs to save. Then we can use copy_from_user on the entire regs instead
+ of a bunch of get_user's as well...
+
+*/
+
+struct sigcontext {
+ struct pt_regs regs; /* needs to be first */
+ unsigned long oldmask;
+ unsigned long usp; /* usp before stacking this gunk on it */
};
#endif
Index: vsa.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/vsa.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vsa.h 2001/06/17 11:43:45 1.4
+++ vsa.h 2001/07/31 17:33:26 1.5
@@ -30,6 +30,9 @@
extern int vsbus_disable_int(int bit_nr);
extern int vsbus_clear_int(int bit_nr);
extern int vsbus_probe_irq(void);
+extern int vsbus_probe_irq_on(void);
+extern unsigned char vsbus_probe_irq_report(void);
+
#define VSA_BASE_REGS 0x20080000
|