kbuild: fix silentoldconfig with make O=
[linux-2.6/verdex.git] / arch / um / os-Linux / util / mk_user_constants.c
blob4838f30eecf0f056fff89089fd6c85142564335e
1 #include <stdio.h>
2 #include <user-offsets.h>
4 int main(int argc, char **argv)
6 printf("/*\n");
7 printf(" * Generated by mk_user_constants\n");
8 printf(" */\n");
9 printf("\n");
10 printf("#ifndef __UM_USER_CONSTANTS_H\n");
11 printf("#define __UM_USER_CONSTANTS_H\n");
12 printf("\n");
13 /* I'd like to use FRAME_SIZE from ptrace.h here, but that's wrong on
14 * x86_64 (216 vs 168 bytes). user_regs_struct is the correct size on
15 * both x86_64 and i386.
17 printf("#define UM_FRAME_SIZE %d\n", __UM_FRAME_SIZE);
19 printf("\n");
20 printf("#endif\n");
22 return(0);