We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c65161f commit b8a13d3Copy full SHA for b8a13d3
src/intel_workarounds.c
@@ -57,7 +57,7 @@ static int pit_8254cge_workaround(void)
57
{
58
uint8_t reg8;
59
uint32_t reg;
60
- uint64_t base;
+ unsigned long base;
61
bool p2sb_hide = false;
62
63
reg = pciConfigReadDWord(0, PCI_DEVICE_NUMBER_PCH_P2SB,
@@ -93,7 +93,14 @@ static int pit_8254cge_workaround(void)
93
94
PCI_FUNCTION_NUMBER_PCH_P2SB,
95
SBREG_BARH);
96
+#ifdef __LP64__
97
base |= ((uint64_t)reg & 0xFFFFFFFF) << 32;
98
+#else
99
+ if (reg) {
100
+ printf("Invalid P2SB BARH\n");
101
+ goto test_pit;
102
+ }
103
+#endif
104
105
/* FIXME: Validate base */
106
reg = readl(PCH_PCR_ADDRESS(base, PID_ITSS, R_PCH_PCR_ITSS_ITSSPRC));
0 commit comments