1 #include <linux/errno.h>
2 #include <linux/sched.h>
3 #include <linux/kernel.h>
6 #include <linux/smp_lock.h>
7 #include <linux/stddef.h>
8 #include <linux/unistd.h>
9 #include <linux/ptrace.h>
10 #include <linux/malloc.h>
11 #include <linux/user.h>
12 #include <linux/a.out.h>
14 #include <asm/pgtable.h>
15 #include <asm/uaccess.h>
16 #include <asm/system.h>
20 * Do various before compile checks of data structures
27 if ( sizeof(struct thread_struct
) % 16 )
29 printf("Thread struct is not modulo 16 bytes: "
30 "%d bytes total, %d bytes off\n",
31 sizeof(struct thread_struct
),
32 sizeof(struct thread_struct
)%16);
37 if ( sizeof(struct pt_regs
) % 16 )
39 printf("pt_regs struct is not modulo 16 bytes: "
40 "%d bytes total, %d bytes off\n",
41 sizeof(struct pt_regs
),
42 sizeof(struct pt_regs
)%16);
47 printf("Task size : %d bytes\n"
48 "Tss size : %d bytes\n"
49 "pt_regs size : %d bytes\n"
50 "Kernel stack size: %d bytes\n",
51 sizeof(struct task_struct
), sizeof(struct thread_struct
),
52 sizeof(struct pt_regs
),
53 sizeof(union task_union
) - sizeof(struct task_struct
));