2 * Copyright 2001 PPC 64 Team, IBM Corp
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
10 #include <linux/errno.h>
11 #include <linux/sched.h>
12 #include <linux/kernel.h>
14 #include <linux/smp.h>
15 #include <linux/smp_lock.h>
16 #include <linux/stddef.h>
17 #include <linux/unistd.h>
18 #include <linux/ptrace.h>
19 #include <linux/slab.h>
20 #include <linux/user.h>
21 #include <linux/a.out.h>
23 #include <asm/pgtable.h>
24 #include <asm/uaccess.h>
25 #include <asm/system.h>
29 * Do various before compile checks of data structures
31 * This is invoked when you do a make checks
32 * Is this enough or are there more things that we would like to do here?
39 if ( sizeof(struct thread_struct) % 16 )
41 printf("Thread struct is not modulo 16 bytes: "
42 "%d bytes total, %d bytes off\n",
43 sizeof(struct thread_struct),
44 sizeof(struct thread_struct)%16);
49 if ( sizeof(struct pt_regs) % 16 )
51 printf("pt_regs struct is not modulo 16 bytes: "
52 "%d bytes total, %d bytes off\n",
53 sizeof(struct pt_regs),
54 sizeof(struct pt_regs)%16);
59 printf("Task size : %d bytes\n"
60 "Tss size : %d bytes\n"
61 "pt_regs size : %d bytes\n"
62 "Kernel stack size: %d bytes\n",
63 sizeof(struct task_struct), sizeof(struct thread_struct),
64 sizeof(struct pt_regs),
65 sizeof(union task_union) - sizeof(struct task_struct));