Fix the P_PCFI_X86_SMAP bit definition

P_PCFI_X86_SMAP is defined to 3 but should be 4, so that it's a separate bit
not clashing with others. This commit fixes the problem and addresses #64
This commit is contained in:
Adam_pi3 2021-04-11 16:18:12 +00:00
parent 7553c35219
commit b913995bbc
No known key found for this signature in database
GPG Key ID: 7C0A38B52323F571
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
*/
#define P_PCFI_X86_WP 0x1
#define P_PCFI_X86_SMEP 0x2
#define P_PCFI_X86_SMAP 0x3
#define P_PCFI_X86_SMAP 0x4
#define P_IS_WP_FLAG_ENABLED(x) (x & P_PCFI_X86_WP)
#define P_IS_SMEP_FLAG_ENABLED(x) (x & P_PCFI_X86_SMEP)