Skip to content

Commit 02b8186

Browse files
committed
PCIBridge: Use string for platform function name to support older versions
1 parent 111a411 commit 02b8186

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MacHyperVSupport/PCIBridge/HyperVPCIBridge.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
OSDefineMetaClassAndStructors(HyperVPCIBridge, super);
1111

12-
extern const OSSymbol *gIOPlatformGetMessagedInterruptAddressKey;
13-
1412
bool HyperVPCIBridge::start(IOService *provider) {
1513
bool result = false;
1614
IOReturn status;
@@ -115,7 +113,7 @@ IOReturn HyperVPCIBridge::callPlatformFunction(const OSSymbol *functionName, boo
115113
//
116114
// ARGS: gIOPlatformGetMessagedInterruptAddressKey, ..., nub, NULL, vector number, (out) message address[3]
117115
//
118-
if (functionName == gIOPlatformGetMessagedInterruptAddressKey) {
116+
if (strcmp(functionName->getCStringNoCopy(), "GetMessagedInterruptAddress") == 0) {
119117
//
120118
// vector = interrupt vector
121119
// message[0] = MSI addr lo

0 commit comments

Comments
 (0)