]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/um/sys-i386/util/mk_thread_kern.c
948b1ce85230b586c1a6a17d64f1569ead48013c
1 #include "linux/config.h"
2 #include "linux/stddef.h"
3 #include "linux/sched.h"
5 extern void print_head(void);
6 extern void print_constant_ptr(char *name
, int value
);
7 extern void print_constant(char *name
, char *type
, int value
);
8 extern void print_tail(void);
10 #define THREAD_OFFSET(field) offsetof(struct task_struct, thread.field)
12 int main(int argc
, char **argv
)
15 print_constant_ptr("TASK_DEBUGREGS", THREAD_OFFSET(arch
.debugregs
));
17 print_constant("TASK_EXTERN_PID", "int", THREAD_OFFSET(mode
.tt
.extern_pid
));