Leaked source code of windows server 2003
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.

56 lines
1.1 KiB

  1. #include "bootx86.h"
  2. //
  3. // Data declarations
  4. //
  5. BOOLEAN BlAmd64UseLongMode = FALSE;
  6. #if defined(_X86AMD64_)
  7. #include "..\amd64\amd64x86.c"
  8. #else
  9. ARC_STATUS
  10. BlAmd64CheckForLongMode(
  11. IN ULONG LoadDeviceId,
  12. IN OUT PCHAR KernelPath,
  13. IN PCHAR KernelFileName
  14. )
  15. /*++
  16. Routine Description:
  17. This routine examines a kernel image and determines whether it was
  18. compiled for AMD64. The global BlAmd64UseLongMode is set to non-zero
  19. if a long-modekernel is discovered.
  20. Arguments:
  21. LoadDeviceId - Supplies the load device identifier.
  22. KernelPath - Supplies a pointer to the path to the kernel directory.
  23. Upon successful return, KernelFileName will be appended
  24. to this path.
  25. KernelFileName - Supplies a pointer to the name of the kernel file.
  26. Return Value:
  27. The status of the operation. Upon successful completion ESUCCESS
  28. is returned, whether long mode capability was detected or not.
  29. --*/
  30. {
  31. //
  32. // This version leaves BlAmd64UseLongMode set to FALSE.
  33. //
  34. return ESUCCESS;
  35. }
  36. #endif