ring0 priviledged actions

This commit is contained in:
Ciro Santilli
2018-04-13 14:17:10 +01:00
parent 898e945e6c
commit 7b0bd10c0b
5 changed files with 111 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
/*
See ../ring0.c
This executable is expected to segfault.
*/
#include <stdio.h>
#include <stdlib.h>
#include "../ring0.h"
int main(void) {
#if defined(__x86_64__) || defined(__i386__)
Ring0Regs ring0_regs;
ring0_get_control_regs(&ring0_regs);
#endif
return EXIT_SUCCESS;
}