]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/um/os-Linux/util/mk_user_constants.c
3 /* For some reason, x86_64 nowhere defines u64 and u32, even though they're
4 * used throughout the headers.
10 int main(int argc
, char **argv
)
13 printf(" * Generated by mk_user_constants\n");
16 printf("#ifndef __UM_USER_CONSTANTS_H\n");
17 printf("#define __UM_USER_CONSTANTS_H\n");
19 /* I'd like to use FRAME_SIZE from ptrace.h here, but that's wrong on
20 * x86_64 (216 vs 168 bytes). user_regs_struct is the correct size on
21 * both x86_64 and i386.
23 printf("#define UM_FRAME_SIZE %d\n", (int) sizeof(struct user_regs_struct
));