mk_ptregs-i386.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #include <stdio.h>
  2. #include <user-offsets.h>
  3. #define SHOW(name) printf("#define %s %d\n", #name, name)
  4. int main(int argc, char **argv)
  5. {
  6. printf("/* Automatically generated by "
  7. "arch/um/kernel/skas/util/mk_ptregs */\n");
  8. printf("\n");
  9. printf("#ifndef __SKAS_PT_REGS_\n");
  10. printf("#define __SKAS_PT_REGS_\n");
  11. printf("\n");
  12. SHOW(HOST_FRAME_SIZE);
  13. SHOW(HOST_FP_SIZE);
  14. SHOW(HOST_XFP_SIZE);
  15. SHOW(HOST_IP);
  16. SHOW(HOST_SP);
  17. SHOW(HOST_EFLAGS);
  18. SHOW(HOST_EAX);
  19. SHOW(HOST_EBX);
  20. SHOW(HOST_ECX);
  21. SHOW(HOST_EDX);
  22. SHOW(HOST_ESI);
  23. SHOW(HOST_EDI);
  24. SHOW(HOST_EBP);
  25. SHOW(HOST_CS);
  26. SHOW(HOST_SS);
  27. SHOW(HOST_DS);
  28. SHOW(HOST_FS);
  29. SHOW(HOST_ES);
  30. SHOW(HOST_GS);
  31. printf("\n");
  32. printf("#endif\n");
  33. return(0);
  34. }
  35. /*
  36. * Overrides for Emacs so that we follow Linus's tabbing style.
  37. * Emacs will notice this stuff at the end of the file and automatically
  38. * adjust the settings for this buffer only. This must remain at the end
  39. * of the file.
  40. * ---------------------------------------------------------------------------
  41. * Local variables:
  42. * c-file-style: "linux"
  43. * End:
  44. */