Skip to content

Commit

Permalink
PCIBridge: Use string for platform function name to support older ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
Goldfish64 committed Oct 16, 2023
1 parent 111a411 commit 02b8186
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MacHyperVSupport/PCIBridge/HyperVPCIBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

OSDefineMetaClassAndStructors(HyperVPCIBridge, super);

extern const OSSymbol *gIOPlatformGetMessagedInterruptAddressKey;

bool HyperVPCIBridge::start(IOService *provider) {
bool result = false;
IOReturn status;
Expand Down Expand Up @@ -115,7 +113,7 @@ IOReturn HyperVPCIBridge::callPlatformFunction(const OSSymbol *functionName, boo
//
// ARGS: gIOPlatformGetMessagedInterruptAddressKey, ..., nub, NULL, vector number, (out) message address[3]
//
if (functionName == gIOPlatformGetMessagedInterruptAddressKey) {
if (strcmp(functionName->getCStringNoCopy(), "GetMessagedInterruptAddress") == 0) {
//
// vector = interrupt vector
// message[0] = MSI addr lo
Expand Down

0 comments on commit 02b8186

Please sign in to comment.