44 IN UINT32 LegacyAddress,
45 IN UINT32 LegacyLength
51 EFI_LEGACY_REGION2_PROTOCOL *LegacyRegion2Protocol;
57 LegacyRegionProtocol = NULL;
58 LegacyRegion2Protocol = NULL;
59 Status =
gBS->LocateProtocol (
62 (VOID **)&LegacyRegion2Protocol
65 if (Status == EFI_NOT_FOUND) {
66 Status =
gBS->LocateProtocol (
69 (VOID **)&LegacyRegionProtocol
73 if (!EFI_ERROR (Status)) {
78 if (LegacyRegionProtocol != NULL) {
79 Status = LegacyRegionProtocol->
UnLock (
86 Status = LegacyRegion2Protocol->UnLock (
87 LegacyRegion2Protocol,
96 "OCMM: Unlock LegacyRegion %0X-%0X - %r\n",
98 (LegacyAddress + (LegacyLength - 1)),