MdeModulePkg: Add unload support for SnpDxe and fix NULL ImageHandle in EfiLibInstallDriverBindingComponentName2() in driver entry point.
Signed-off-by: xdu2 Reviewed-by: vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11967 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
597cb96fa3
commit
f3de0a607d
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Implementation of driver entry point and driver binding protocol.
|
Implementation of driver entry point and driver binding protocol.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed
|
This program and the accompanying materials are licensed
|
||||||
and made available under the terms and conditions of the BSD License which
|
and made available under the terms and conditions of the BSD License which
|
||||||
accompanies this distribution. The full text of the license may be found at
|
accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -1014,7 +1014,7 @@ InitializeSnpNiiDriver (
|
||||||
ImageHandle,
|
ImageHandle,
|
||||||
SystemTable,
|
SystemTable,
|
||||||
&mSimpleNetworkDriverBinding,
|
&mSimpleNetworkDriverBinding,
|
||||||
NULL,
|
ImageHandle,
|
||||||
&gSimpleNetworkComponentName,
|
&gSimpleNetworkComponentName,
|
||||||
&gSimpleNetworkComponentName2
|
&gSimpleNetworkComponentName2
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## @file
|
## @file
|
||||||
# Component description file for SNP module.
|
# Component description file for SNP module.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
# This program and the accompanying materials are licensed
|
# This program and the accompanying materials are licensed
|
||||||
# and made available under the terms and conditions of the BSD License which
|
# and made available under the terms and conditions of the BSD License which
|
||||||
# accompanies this distribution. The full text of the license may be found at
|
# accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
MODULE_TYPE = UEFI_DRIVER
|
MODULE_TYPE = UEFI_DRIVER
|
||||||
VERSION_STRING = 1.0
|
VERSION_STRING = 1.0
|
||||||
ENTRY_POINT = InitializeSnpNiiDriver
|
ENTRY_POINT = InitializeSnpNiiDriver
|
||||||
|
UNLOAD_IMAGE = NetLibDefaultUnload
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following information is for reference only and not required by the build tools.
|
# The following information is for reference only and not required by the build tools.
|
||||||
|
@ -63,7 +64,7 @@
|
||||||
UefiDriverEntryPoint
|
UefiDriverEntryPoint
|
||||||
BaseMemoryLib
|
BaseMemoryLib
|
||||||
DebugLib
|
DebugLib
|
||||||
|
NetLib
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gEfiEventExitBootServicesGuid ## CONSUMES
|
gEfiEventExitBootServicesGuid ## CONSUMES
|
||||||
|
|
Loading…
Reference in New Issue