summaryrefslogtreecommitdiff
path: root/Nt32Pkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-28 09:12:52 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-28 09:12:52 +0000
commit806b6f31d9e43ed798938a4a9dc900bdca008c70 (patch)
tree9c7c11babbb72b8c5ae7af339e42549706e6d407 /Nt32Pkg
parent9e8ababcb3a142e96db69babbca23fef37429f56 (diff)
downloadedk2-platforms-806b6f31d9e43ed798938a4a9dc900bdca008c70.tar.xz
Clear up network stack to use R9 MdeLib:
1.Use driver model APIs in UefiLib 2.Register Unload Image in INF/MSA to be included in autogen code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3970 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg')
-rw-r--r--Nt32Pkg/SnpNt32Dxe/SnpNt32.c5
-rw-r--r--Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf2
2 files changed, 3 insertions, 4 deletions
diff --git a/Nt32Pkg/SnpNt32Dxe/SnpNt32.c b/Nt32Pkg/SnpNt32Dxe/SnpNt32.c
index 67a3ac0038..6559d316e7 100644
--- a/Nt32Pkg/SnpNt32Dxe/SnpNt32.c
+++ b/Nt32Pkg/SnpNt32Dxe/SnpNt32.c
@@ -1018,15 +1018,14 @@ Returns:
// Install the Driver Protocols
//
- Status = NetLibInstallAllDriverProtocolsWithUnload (
+ Status = EfiLibInstallAllDriverProtocols (
ImageHandle,
SystemTable,
&gSnpNt32DriverBinding,
ImageHandle,
&gSnpNt32DriverComponentName,
NULL,
- NULL,
- SnpNt32Unload
+ NULL
);
if (EFI_ERROR (Status)) {
return Status;
diff --git a/Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf b/Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
index 2896a83c34..abc0644db1 100644
--- a/Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
+++ b/Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
@@ -24,7 +24,7 @@
EFI_SPECIFICATION_VERSION = 0x00020000
ENTRY_POINT = InitializeSnpNt32river
-
+ UNLOAD_IMAGE = SnpNt32Unload
#
# The following information is for reference only and not required by the build tools.
#