Skip to content

Commit

Permalink
Solve civ build failure
Browse files Browse the repository at this point in the history
Test Done:
Compile and boot

Tracked-On: OAM-127436
Signed-off-by: Gang G Chen <[email protected]>
  • Loading branch information
GangSecurity authored and sysopenci committed Nov 19, 2024
1 parent 7076ca1 commit 0d6c62c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion installer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,13 +1229,16 @@ EFI_STATUS installer_transport_stop(void)
return EFI_SUCCESS;
}

EFI_STATUS installer_transport_run(void)
EFI_STATUS installer_transport_run(UINT32 *state)
{
static BOOLEAN initialized = FALSE;
EFI_STATUS ret;
char *cmd;
UINTN cmd_len;

if (state)
*state = 1;

if (!initialized) {
ret = installer_replace_functions();
if (EFI_ERROR(ret))
Expand Down
6 changes: 5 additions & 1 deletion libefiusb/device_mode/UsbDeviceMode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,12 +1268,16 @@ EFI_STATUS
EFIAPI
UsbDeviceRun (
IN EFI_USB_DEVICE_MODE_PROTOCOL *This,
IN UINT32 TimeoutMs
IN UINT32 TimeoutMs,
IN UINT32 *state
)
{
EFI_STATUS Status = EFI_DEVICE_ERROR;
USB_XDCI_DEV_CONTEXT *XdciDevContext;

if (state)
*state = 1;

XdciDevContext = USBUSBD_CONTEXT_FROM_PROTOCOL (This);

//
Expand Down

0 comments on commit 0d6c62c

Please sign in to comment.