VirtualBox

Ignore:
Timestamp:
Feb 6, 2025 8:48:47 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167382
Message:

Runtime/RTAcpi*: Updates to the ASL -> AML compiler, it is now possible to produce a valid AML table from the pre processed vbox-cpuhotplug.dsl SSDT, bugref:10733

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/acpi/acpi-ast.cpp

    r108087 r108088  
    390390            rc = RTAcpiTblStmtSimpleAppend(hAcpiTbl, kAcpiStmt_Return);
    391391            if (RT_SUCCESS(rc))
    392                 rc = rtAcpiAstDumpToTbl(pAstNd->aArgs[0].u.pAstNd, hAcpiTbl);
     392            {
     393                if (pAstNd->aArgs[0].u.pAstNd)
     394                    rc = rtAcpiAstDumpToTbl(pAstNd->aArgs[0].u.pAstNd, hAcpiTbl);
     395                else
     396                    rc = RTAcpiTblNullNameAppend(hAcpiTbl);
     397            }
    393398            break;
    394399        }
     
    596601        }
    597602        case kAcpiAstNodeOp_Store:
     603        case kAcpiAstNodeOp_Notify:
    598604        {
    599605            AssertBreakStmt(   pAstNd->cArgs == 2
     
    601607                            && pAstNd->aArgs[1].enmType == kAcpiAstArgType_AstNode,
    602608                            rc = VERR_INTERNAL_ERROR);
    603             rc = RTAcpiTblStmtSimpleAppend(hAcpiTbl, kAcpiStmt_Store);
     609            rc = RTAcpiTblStmtSimpleAppend(hAcpiTbl,
     610                                             pAstNd->enmOp == kAcpiAstNodeOp_Store
     611                                           ? kAcpiStmt_Store
     612                                           : kAcpiStmt_Notify);
    604613            if (RT_SUCCESS(rc))
    605614                rc = rtAcpiAstDumpToTbl(pAstNd->aArgs[0].u.pAstNd, hAcpiTbl);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette