diff options
Diffstat (limited to 'src/vendorcode/amd')
-rw-r--r-- | src/vendorcode/amd/pi/00670F00/Lib/amdlib.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c b/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c index b03beee287..8a4113f9b2 100644 --- a/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c +++ b/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c @@ -266,9 +266,6 @@ LibAmdMsrRead ( IN OUT AMD_CONFIG_PARAMS *ConfigPtr ) { - if ((MsrAddress == 0xFFFFFFFF) || (MsrAddress == 0x00000000)) { - IdsErrorStop(MsrAddress); - } *Value = __readmsr (MsrAddress); } @@ -574,27 +571,3 @@ GetPciMmioAddress ( } return MmioIsEnabled; } - -BOOLEAN -IdsErrorStop ( - IN UINT32 FileCode - ) -{ - struct POST { - UINT16 deadlo; - UINT32 messagelo; - UINT16 deadhi; - UINT32 messagehi; - } post = {0xDEAD, FileCode, 0xDEAD, FileCode}; - UINT16 offset = 0; - UINT16 j; - - while(1) { - offset %= sizeof(struct POST) / 2; - WriteIo16(80, *((UINT16 *)&post)+offset); - ++offset; - for (j=0; j<250; ++j) { - ReadIo8(80); - } - } -} |