ring0.c 281 B

12345678910111213141516171819
  1. /*
  2. See ../ring0.c
  3. This executable is expected to segfault.
  4. */
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include "../ring0.h"
  8. int main(void) {
  9. #if defined(__x86_64__) || defined(__i386__)
  10. Ring0Regs ring0_regs;
  11. ring0_get_control_regs(&ring0_regs);
  12. #endif
  13. return EXIT_SUCCESS;
  14. }