Skip to content

Instantly share code, notes, and snippets.

View x1tan's full-sized avatar

xitan x1tan

View GitHub Profile
//this requires being able to run at kernel mode and assumes you're using MSVC
//this also uses an unnamed structure for cr0_t, which is a nonstandard extension of the C language
//data structure for cr0
typedef union _cr0_t
{
struct
{
uint64_t protection_enable : 1;