Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/include/specialreg.h
| Show First 20 Lines • Show All 898 Lines • ▼ Show 20 Lines | |||||
| #define IA32_PRED_CMD_IBPB_BARRIER 0x0000000000000001ULL | #define IA32_PRED_CMD_IBPB_BARRIER 0x0000000000000001ULL | ||||
| /* MSR IA32_FLUSH_CMD */ | /* MSR IA32_FLUSH_CMD */ | ||||
| #define IA32_FLUSH_CMD_L1D 0x00000001 | #define IA32_FLUSH_CMD_L1D 0x00000001 | ||||
| /* MSR IA32_MCU_OPT_CTRL */ | /* MSR IA32_MCU_OPT_CTRL */ | ||||
| #define IA32_RNGDS_MITG_DIS 0x00000001 | #define IA32_RNGDS_MITG_DIS 0x00000001 | ||||
| /* MSR IA32_PM_ENABLE */ | |||||
| #define IA32_PM_ENABLE_HWP_ENABLE (1ULL << 0) | |||||
mchoo: Like above, you can simply use `0x00000001`, | |||||
Not Done Inline ActionsValues below are of the form (1ULL << x) though and I think it's fine. From the Intel doc:
So if the source doc uses "bit 0" I think (1ULL << 0) is straightforward. emaste: Values below are of the form `(1ULL << x)` though and I think it's fine.
From the Intel doc:
>… | |||||
| /* MSR IA32_HWP_CAPABILITIES */ | /* MSR IA32_HWP_CAPABILITIES */ | ||||
| #define IA32_HWP_CAPABILITIES_HIGHEST_PERFORMANCE(x) (((x) >> 0) & 0xff) | #define IA32_HWP_CAPABILITIES_HIGHEST_PERFORMANCE(x) (((x) >> 0) & 0xff) | ||||
| #define IA32_HWP_CAPABILITIES_GUARANTEED_PERFORMANCE(x) (((x) >> 8) & 0xff) | #define IA32_HWP_CAPABILITIES_GUARANTEED_PERFORMANCE(x) (((x) >> 8) & 0xff) | ||||
| #define IA32_HWP_CAPABILITIES_EFFICIENT_PERFORMANCE(x) (((x) >> 16) & 0xff) | #define IA32_HWP_CAPABILITIES_EFFICIENT_PERFORMANCE(x) (((x) >> 16) & 0xff) | ||||
| #define IA32_HWP_CAPABILITIES_LOWEST_PERFORMANCE(x) (((x) >> 24) & 0xff) | #define IA32_HWP_CAPABILITIES_LOWEST_PERFORMANCE(x) (((x) >> 24) & 0xff) | ||||
| /* MSR IA32_HWP_REQUEST */ | /* MSR IA32_HWP_REQUEST */ | ||||
| #define IA32_HWP_REQUEST_MINIMUM_VALID (1ULL << 63) | #define IA32_HWP_REQUEST_MINIMUM_VALID (1ULL << 63) | ||||
| ▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines | |||||
Like above, you can simply use 0x00000001,