Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
876 B

  1. /*++
  2. Module Name:
  3. protocol.c
  4. Abstract:
  5. Author:
  6. Mudit Vats (v-muditv) 12-13-99
  7. Revision History:
  8. --*/
  9. #include <precomp.h>
  10. void
  11. InitializeProtocols(
  12. IN struct _EFI_SYSTEM_TABLE *SystemTable
  13. )
  14. {
  15. EFI_BOOT_SERVICES *bootServices;
  16. EFI_RUNTIME_SERVICES *runtimeServices;
  17. //
  18. // Stash some of the handle protocol pointers
  19. //
  20. bootServices = SystemTable->BootServices;
  21. HandleProtocol = bootServices->HandleProtocol;
  22. LocateHandle = bootServices->LocateHandle;
  23. LocateDevicePath = bootServices->LocateDevicePath;
  24. LoadImage = bootServices->LoadImage;
  25. StartImage = bootServices->StartImage;
  26. //
  27. // Stash some of the Runtime services pointers
  28. //
  29. runtimeServices = SystemTable->RuntimeServices;
  30. SetVariable = runtimeServices->SetVariable;
  31. }