[IA64-SGI] cleanup the way XPC locates the reserved page
[sfrench/cifs-2.6.git] / arch / um / kernel / skas / util / mk_ptregs-x86_64.c
1 /*
2  * Copyright 2003 PathScale, Inc.
3  *
4  * Licensed under the GPL
5  */
6
7 #include <stdio.h>
8 #include <user-offsets.h>
9
10 #define SHOW(name) \
11         printf("#define %s (%d / sizeof(unsigned long))\n", #name, name)
12
13 int main(int argc, char **argv)
14 {
15         printf("/* Automatically generated by "
16                "arch/um/kernel/skas/util/mk_ptregs */\n");
17         printf("\n");
18         printf("#ifndef __SKAS_PT_REGS_\n");
19         printf("#define __SKAS_PT_REGS_\n");
20         SHOW(HOST_FRAME_SIZE);
21         SHOW(HOST_RBX);
22         SHOW(HOST_RCX);
23         SHOW(HOST_RDI);
24         SHOW(HOST_RSI);
25         SHOW(HOST_RDX);
26         SHOW(HOST_RBP);
27         SHOW(HOST_RAX);
28         SHOW(HOST_R8);
29         SHOW(HOST_R9);
30         SHOW(HOST_R10);
31         SHOW(HOST_R11);
32         SHOW(HOST_R12);
33         SHOW(HOST_R13);
34         SHOW(HOST_R14);
35         SHOW(HOST_R15);
36         SHOW(HOST_ORIG_RAX);
37         SHOW(HOST_CS);
38         SHOW(HOST_SS);
39         SHOW(HOST_EFLAGS);
40 #if 0
41         SHOW(HOST_FS);
42         SHOW(HOST_GS);
43         SHOW(HOST_DS);
44         SHOW(HOST_ES);
45 #endif
46
47         SHOW(HOST_IP);
48         SHOW(HOST_SP);
49         printf("#define HOST_FP_SIZE 0\n");
50         printf("#define HOST_XFP_SIZE 0\n");
51         printf("\n");
52         printf("\n");
53         printf("#endif\n");
54         return(0);
55 }
56
57 /*
58  * Overrides for Emacs so that we follow Linus's tabbing style.
59  * Emacs will notice this stuff at the end of the file and automatically
60  * adjust the settings for this buffer only.  This must remain at the end
61  * of the file.
62  * ---------------------------------------------------------------------------
63  * Local variables:
64  * c-file-style: "linux"
65  * End:
66  */