Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;                                                              ;;
  3. ;; Copyright (C) KolibriOS team 2020. All rights reserved.      ;;
  4. ;; Distributed under terms of the GNU General Public License    ;;
  5. ;; Version 2, or (at your option) any later version.            ;;
  6. ;;                                                              ;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8. ;;                                                              ;;
  9. ;; Based on UEFI library for fasm by bzt, Public Domain.        ;;
  10. ;;                                                              ;;
  11. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  12.  
  13. DN fix dd       ; native
  14.  
  15. include "uefi.inc"
  16.  
  17. EFIERR = 0x80000000
  18.  
  19. struct EFI_SYSTEM_TABLE
  20.   Hdr                   EFI_TABLE_HEADER
  21.   FirmwareVendor        dd ?
  22.   FirmwareRevision      dd ?
  23.   ConsoleInHandle       dd ?
  24.   ConIn                 dd ?
  25.   ConsoleOutHandle      dd ?
  26.   ConOut                dd ?
  27.   StandardErrorHandle   dd ?
  28.   StdErr                dd ?
  29.   RuntimeServices       dd ?
  30.   BootServices          dd ?
  31.   NumberOfTableEntries  dd ?
  32.   ConfigurationTable    dd ?
  33. ends
  34.  
  35. struct EFI_CONFIGURATION_TABLE
  36.   VendorGUID    rd 4
  37.   VendorTable   dd ?
  38. ends
  39.  
  40. struct EFI_LOADED_IMAGE_PROTOCOL
  41.   Revision              dd ?
  42.   ParentHandle          dd ?
  43.   SystemTable           dd ?
  44.   DeviceHandle          dd ?
  45.   FilePath              dd ?
  46.   Reserved              dd ?
  47.   LoadOptionsSize       dd ?
  48.   ImageBase             dd ?
  49.   ImageSize             DQ ?
  50.   ImageCodeType         dd ?
  51.   ImageDataType         dd ?
  52.   UnLoad                dd ?
  53. ends
  54.  
  55. section '.text' code executable readable
  56.  
  57. uefifunc:
  58.         ret
  59.