[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / arch / um / util / mk_task.c
blob36c9606505e2a69b753a49766e0090816f8b2bd9
1 #include <stdio.h>
2 #include <kernel-offsets.h>
4 void print_ptr(char *name, char *type, int offset)
6 printf("#define %s(task) ((%s *) &(((char *) (task))[%d]))\n", name, type,
7 offset);
10 void print(char *name, char *type, int offset)
12 printf("#define %s(task) *((%s *) &(((char *) (task))[%d]))\n", name, type,
13 offset);
16 int main(int argc, char **argv)
18 printf("/*\n");
19 printf(" * Generated by mk_task\n");
20 printf(" */\n");
21 printf("\n");
22 printf("#ifndef __TASK_H\n");
23 printf("#define __TASK_H\n");
24 printf("\n");
25 print_ptr("TASK_REGS", "union uml_pt_regs", TASK_REGS);
26 print("TASK_PID", "int", TASK_PID);
27 printf("\n");
28 printf("#endif\n");
29 return(0);