Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@daaximus

daaximus/cr.h Secret

Last active March 28, 2023 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daaximus/f23bd0f0909cd2486d7b444ec13e67ce to your computer and use it in GitHub Desktop.
Save daaximus/f23bd0f0909cd2486d7b444ec13e67ce to your computer and use it in GitHub Desktop.
CR0 union
union __cr0_t
{
unsigned __int64 control;
struct
{
unsigned __int64 protection_enable : 1;
unsigned __int64 monitor_coprocessor : 1;
unsigned __int64 emulate_fpu : 1;
unsigned __int64 task_switched : 1;
unsigned __int64 extension_type : 1;
unsigned __int64 numeric_error : 1;
unsigned __int64 reserved_0 : 10;
unsigned __int64 write_protection : 1;
unsigned __int64 reserved_1 : 1;
unsigned __int64 alignment_mask : 1;
unsigned __int64 reserved_2 : 10;
unsigned __int64 not_write_through : 1;
unsigned __int64 cache_disable : 1;
unsigned __int64 paging_enable : 1;
} bits;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment