![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef _ASM_X86_TRAP_PF_H 0003 #define _ASM_X86_TRAP_PF_H 0004 0005 /* 0006 * Page fault error code bits: 0007 * 0008 * bit 0 == 0: no page found 1: protection fault 0009 * bit 1 == 0: read access 1: write access 0010 * bit 2 == 0: kernel-mode access 1: user-mode access 0011 * bit 3 == 1: use of reserved bit detected 0012 * bit 4 == 1: fault was an instruction fetch 0013 * bit 5 == 1: protection keys block access 0014 * bit 15 == 1: SGX MMU page-fault 0015 */ 0016 enum x86_pf_error_code { 0017 X86_PF_PROT = 1 << 0, 0018 X86_PF_WRITE = 1 << 1, 0019 X86_PF_USER = 1 << 2, 0020 X86_PF_RSVD = 1 << 3, 0021 X86_PF_INSTR = 1 << 4, 0022 X86_PF_PK = 1 << 5, 0023 X86_PF_SGX = 1 << 15, 0024 }; 0025 0026 #endif /* _ASM_X86_TRAP_PF_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |