On 03/10/2022 10:26, RichardHo [何明忠] via groups.io wrote:
diff --git a/UsbNetworkPkg/NetworkCommon/DriverBinding.h 
b/UsbNetworkPkg/NetworkCommon/DriverBinding.h
new file mode 100644
index 0000000000..29f1f967f5
--- /dev/null
+++ b/UsbNetworkPkg/NetworkCommon/DriverBinding.h

+VOID
+UndiApiEntry (
+  IN  UINT64  Cdb
+  );

Needs an EFIAPI modifier, i.e.

VOID
EFIAPI
UndiApiEntry (
  IN  UINT64  Cdb
  );

to avoid runtime failures when using a non-Microsoft compiler.

diff --git a/UsbNetworkPkg/NetworkCommon/PxeFunction.c 
b/UsbNetworkPkg/NetworkCommon/PxeFunction.c
new file mode 100644
index 0000000000..f6505f7018
--- /dev/null
+++ b/UsbNetworkPkg/NetworkCommon/PxeFunction.c
+/**
+  UNDI API table entry.
+
+  @param[in]  Cdb  A pointer to the command descriptor block.
+
+**/
+VOID
+UndiApiEntry (
+  IN  UINT64  Cdb
+  )

As above:

VOID
EFIAPI
UndiApiEntry (
  IN  UINT64  Cdb
  )

Thanks,

Michael


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#96889): https://edk2.groups.io/g/devel/message/96889
Mute This Topic: https://groups.io/mt/94086820/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to