2020-11-06 18:52:10 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
2021-11-01 03:04:30 +01:00
|
|
|
;; Copyright (C) KolibriOS team 2020-2021. All rights reserved. ;;
|
2020-11-06 18:52:10 +01:00
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; Version 2, or (at your option) any later version. ;;
|
|
|
|
;; ;;
|
2021-11-01 03:04:30 +01:00
|
|
|
;; Written by Ivan Baravy ;;
|
|
|
|
;; ;;
|
2020-11-06 18:52:10 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Based on UEFI library for fasm by bzt, Public Domain. ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
DN fix dq ; native
|
|
|
|
|
|
|
|
include "uefi.inc"
|
|
|
|
|
|
|
|
EFIERR = 0x8000000000000000
|
|
|
|
|
|
|
|
struct EFI_SYSTEM_TABLE
|
|
|
|
Hdr EFI_TABLE_HEADER
|
2021-11-05 03:17:31 +01:00
|
|
|
FirmwareVendor DN ?
|
2020-11-06 18:52:10 +01:00
|
|
|
FirmwareRevision dd ?
|
|
|
|
dd ?
|
2021-11-05 03:17:31 +01:00
|
|
|
ConsoleInHandle DN ?
|
|
|
|
ConIn DN ?
|
|
|
|
ConsoleOutHandle DN ?
|
|
|
|
ConOut DN ?
|
|
|
|
StandardErrorHandle DN ?
|
|
|
|
StdErr DN ?
|
|
|
|
RuntimeServices DN ?
|
|
|
|
BootServices DN ?
|
|
|
|
NumberOfTableEntries DN ?
|
|
|
|
ConfigurationTable DN ?
|
|
|
|
ends
|
|
|
|
|
|
|
|
struct EFI_CONFIGURATION_TABLE
|
|
|
|
VendorGUID rd 4
|
|
|
|
VendorTable DN ?
|
2020-11-06 18:52:10 +01:00
|
|
|
ends
|
|
|
|
|
|
|
|
struct EFI_LOADED_IMAGE_PROTOCOL
|
|
|
|
Revision dd ?
|
|
|
|
dd ?
|
2021-11-05 03:17:31 +01:00
|
|
|
ParentHandle DN ?
|
|
|
|
SystemTable DN ?
|
|
|
|
DeviceHandle DN ?
|
|
|
|
FilePath DN ?
|
|
|
|
Reserved DN ?
|
2020-11-06 18:52:10 +01:00
|
|
|
LoadOptionsSize dd ?
|
|
|
|
dd ?
|
2021-11-05 03:17:31 +01:00
|
|
|
ImageBase DN ?
|
2020-11-06 18:52:10 +01:00
|
|
|
ImageSize dq ?
|
|
|
|
ImageCodeType dd ?
|
|
|
|
ImageDataType dd ?
|
2021-11-05 03:17:31 +01:00
|
|
|
UnLoad DN ?
|
2020-11-06 18:52:10 +01:00
|
|
|
ends
|