* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / ppc / kernel / checks.c
blob9bb8e690ee4ad2b98e12e0c71c653fa139339e54
1 #include <linux/errno.h>
2 #include <linux/sched.h>
3 #include <linux/kernel.h>
4 #include <linux/mm.h>
5 #include <linux/smp.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>
17 #include <asm/io.h>
20 * Do various before compile checks of data structures
21 * -- Cort
23 int main(void)
25 int ret = 0;
26 #if 0
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);
33 ret = -1;
35 #endif
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);
43 ret = -1;
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));
54 return ret;