Home
last modified time | relevance | path

Searched refs:hwcr (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_mca.c823 uint64_t hwcr; in ao_bankstatus_prewrite() local
825 if (cmi_hdl_rdmsr(hdl, MSR_AMD_HWCR, &hwcr) != CMI_SUCCESS) in ao_bankstatus_prewrite()
828 ao->ao_ms_hwcr_val = hwcr; in ao_bankstatus_prewrite()
830 if (!(hwcr & AMD_HWCR_MCI_STATUS_WREN)) { in ao_bankstatus_prewrite()
831 hwcr |= AMD_HWCR_MCI_STATUS_WREN; in ao_bankstatus_prewrite()
832 (void) cmi_hdl_wrmsr(hdl, MSR_AMD_HWCR, hwcr); in ao_bankstatus_prewrite()
842 uint64_t hwcr = ao->ao_ms_hwcr_val; in ao_bankstatus_postwrite() local
844 if (!(hwcr & AMD_HWCR_MCI_STATUS_WREN)) { in ao_bankstatus_postwrite()
845 hwcr &= ~AMD_HWCR_MCI_STATUS_WREN; in ao_bankstatus_postwrite()
846 (void) cmi_hdl_wrmsr(hdl, MSR_AMD_HWCR, hwcr); in ao_bankstatus_postwrite()
/titanic_41/usr/src/uts/i86pc/cpu/authenticamd/
H A Dauthamd_main.c249 uint64_t hwcr; in authamd_bankstatus_prewrite() local
251 if (cmi_hdl_rdmsr(hdl, MSR_AMD_HWCR, &hwcr) != CMI_SUCCESS) in authamd_bankstatus_prewrite()
254 authamd->amd_hwcr = hwcr; in authamd_bankstatus_prewrite()
256 if (!(hwcr & AMD_HWCR_MCI_STATUS_WREN)) { in authamd_bankstatus_prewrite()
257 hwcr |= AMD_HWCR_MCI_STATUS_WREN; in authamd_bankstatus_prewrite()
258 (void) cmi_hdl_wrmsr(hdl, MSR_AMD_HWCR, hwcr); in authamd_bankstatus_prewrite()
265 uint64_t hwcr = authamd->amd_hwcr; in authamd_bankstatus_postwrite() local
267 if (!(hwcr & AMD_HWCR_MCI_STATUS_WREN)) { in authamd_bankstatus_postwrite()
268 hwcr &= ~AMD_HWCR_MCI_STATUS_WREN; in authamd_bankstatus_postwrite()
269 (void) cmi_hdl_wrmsr(hdl, MSR_AMD_HWCR, hwcr); in authamd_bankstatus_postwrite()