patch-2.3.99-pre6 linux/include/asm-ia64/ia32.h

Next file: linux/include/asm-ia64/ide.h
Previous file: linux/include/asm-ia64/hw_irq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-ia64/ia32.h linux/include/asm-ia64/ia32.h
@@ -90,7 +90,7 @@
        unsigned int eflags;
        unsigned int esp_at_signal;
        unsigned short ss, __ssh;
-       struct _fpstate_ia32 * fpstate;
+       unsigned int fpstate;		/* really (struct _fpstate_ia32 *) */
        unsigned int oldmask;
        unsigned int cr2;
 };
@@ -221,8 +221,7 @@
 #define ELF_PLATFORM	0
 
 #ifdef __KERNEL__
-# define SET_PERSONALITY(EX,IBCS2)				\
-	(current->personality = (IBCS2) ? PER_SVR4 : PER_LINUX)
+#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
 #endif
 
 #define IA32_EFLAG	0x200
@@ -288,9 +287,14 @@
  *  IA32 floating point control registers starting values
  */
 
-#define IA32_FSR_DEFAULT	0x555500000	/* set all tag bits */
+#define IA32_FSR_DEFAULT	0x55550000	/* set all tag bits */
 #define IA32_FCR_DEFAULT	0x33f		/* single precision, all masks */
 
+#define IA32_PTRACE_GETREGS	12
+#define IA32_PTRACE_SETREGS	13
+#define IA32_PTRACE_GETFPREGS	14
+#define IA32_PTRACE_SETFPREGS	15
+
 #define ia32_start_thread(regs,new_ip,new_sp) do {				\
 	set_fs(USER_DS);							\
 	ia64_psr(regs)->cpl = 3;	/* set user mode */			\
@@ -303,10 +307,11 @@
 } while (0)
 
 extern void ia32_gdt_init (void);
-extern long ia32_setup_frame1 (int sig, struct k_sigaction *ka, siginfo_t *info,
+extern int ia32_setup_frame1 (int sig, struct k_sigaction *ka, siginfo_t *info,
 			       sigset_t *set, struct pt_regs *regs);
 extern void ia32_init_addr_space (struct pt_regs *regs);
 extern int ia32_setup_arg_pages (struct linux_binprm *bprm);
+extern int ia32_exception (struct pt_regs *regs, unsigned long isr);
 
 #endif /* !CONFIG_IA32_SUPPORT */
  

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