bbonefwv.S 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*++
  2. Copyright (c) 2016 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. bbonefwv.S
  9. Abstract:
  10. This module includes the firmware volume binary directly.
  11. Author:
  12. Evan Green 4-Oct-2016
  13. Environment:
  14. Any
  15. --*/
  16. //
  17. // ---------------------------------------------------------------- Definitions
  18. //
  19. #if defined(__WINNT) || defined(__CYGWIN__) || defined(__APPLE__)
  20. #define LABEL(_Name) _##_Name
  21. #else
  22. #define LABEL(_Name) _Name
  23. #endif
  24. #define INCLUDE_BINARY(_Path, _Name) \
  25. .align 4; \
  26. .global LABEL(_Name##_start); \
  27. LABEL(_Name##_start):; \
  28. .incbin _Path; \
  29. .global LABEL(_Name##_end); \
  30. LABEL(_Name##_end):
  31. //
  32. // ---------------------------------------------------------------------- Code
  33. //
  34. .text
  35. INCLUDE_BINARY("bbonefwv", _binary_bbonefwv)