Skip to content

OcBootManagementLib: Redesign and unify OcRunFirmwareApplication funсtions - #667

Open
ilikesn0w wants to merge 1 commit into
acidanthera:masterfrom
ilikesn0w:OcbmMemLeak
Open

ilikesn0w wants to merge 1 commit into
acidanthera:masterfrom
ilikesn0w:OcbmMemLeak

Conversation

@ilikesn0w

Copy link
Copy Markdown
Contributor

I think it would be better to create 1 universal function than splitting it.

What was changed:

  1. PickerEntryReason now sets in OcLaunchAppleBootPicker
  2. Combined OcRunFirmwareApplication and OcRunFirmwareApplicationWithLoadOptions into one OcRunFirmwareApplication
  3. OcRunFirmwareApplication now accepts optional LoadOptions arg instead of SetReason
  4. The function has been made slightly more readable
  5. Dp leak has been fixed
  6. Function now checks whether ApplicationGuid is NULL

Comment on lines +637 to +640
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_ERROR, "OCB: Failed to start %g FW app - %r\n", ApplicationGuid, Status));
return EFI_UNSUPPORTED;
}

@ilikesn0w ilikesn0w Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I unload it here?

@ilikesn0w

ilikesn0w commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Also I'm not positive about fixed return codes that I return, but I did it so I wouldn't break the color screen in Boot/SlingKicker, maybe I should return real error codes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant