From 4ede0f9eb0e2f8381a9d3e46bb364d94b32ee663 Mon Sep 17 00:00:00 2001
From: z8 <87996468+0x666690@users.noreply.github.com>
Date: Sun, 29 Oct 2023 16:42:16 +0100
Subject: [PATCH] Initial commit
---
ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj | 401 ++++
.../.vs/msvc/ASPMEnabler.vcxproj.filters | 43 +
ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.user | 4 +
ASPMEnabler/.vs/msvc/gnu-efi.vcxproj | 428 ++++
ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.filters | 123 ++
ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.user | 4 +
ASPMEnabler/ASPMEnabler.sln | 64 +
ASPMEnabler/LICENSE | 9 +
ASPMEnabler/Makefile | 171 ++
ASPMEnabler/README.md | 24 +
ASPMEnabler/acpi_checksum.c | 16 +
ASPMEnabler/acpi_checksum.h | 7 +
ASPMEnabler/fadt.h | 96 +
ASPMEnabler/gnu-efi/ChangeLog | 1324 +++++++++++++
ASPMEnabler/gnu-efi/Make.defaults | 183 ++
ASPMEnabler/gnu-efi/Make.rules | 64 +
ASPMEnabler/gnu-efi/Makefile | 129 ++
ASPMEnabler/gnu-efi/README.efilib | 30 +
ASPMEnabler/gnu-efi/README.elilo | 19 +
ASPMEnabler/gnu-efi/README.git | 21 +
ASPMEnabler/gnu-efi/README.gnuefi | 405 ++++
ASPMEnabler/gnu-efi/apps/AllocPages.c | 184 ++
ASPMEnabler/gnu-efi/apps/FreePages.c | 145 ++
ASPMEnabler/gnu-efi/apps/Makefile | 95 +
ASPMEnabler/gnu-efi/apps/bltgrid.c | 131 ++
ASPMEnabler/gnu-efi/apps/debughook.c | 97 +
ASPMEnabler/gnu-efi/apps/drv0.c | 191 ++
ASPMEnabler/gnu-efi/apps/drv0.h | 35 +
ASPMEnabler/gnu-efi/apps/drv0_use.c | 79 +
ASPMEnabler/gnu-efi/apps/exit.c | 12 +
ASPMEnabler/gnu-efi/apps/lfbgrid.c | 170 ++
ASPMEnabler/gnu-efi/apps/modelist.c | 108 +
ASPMEnabler/gnu-efi/apps/printenv.c | 32 +
ASPMEnabler/gnu-efi/apps/route80h.c | 136 ++
ASPMEnabler/gnu-efi/apps/setdbg.c | 37 +
ASPMEnabler/gnu-efi/apps/setjmp.c | 32 +
ASPMEnabler/gnu-efi/apps/t.c | 27 +
ASPMEnabler/gnu-efi/apps/t2.c | 14 +
ASPMEnabler/gnu-efi/apps/t3.c | 95 +
ASPMEnabler/gnu-efi/apps/t4.c | 14 +
ASPMEnabler/gnu-efi/apps/t5.c | 13 +
ASPMEnabler/gnu-efi/apps/t6.c | 43 +
ASPMEnabler/gnu-efi/apps/t7.c | 25 +
ASPMEnabler/gnu-efi/apps/t8.c | 19 +
ASPMEnabler/gnu-efi/apps/tcc.c | 431 ++++
ASPMEnabler/gnu-efi/apps/tpause.c | 9 +
ASPMEnabler/gnu-efi/apps/trivial.S | 43 +
ASPMEnabler/gnu-efi/apps/unsetdbg.c | 37 +
ASPMEnabler/gnu-efi/gnuefi/Makefile | 77 +
ASPMEnabler/gnu-efi/gnuefi/crt0-efi-aarch64.S | 130 ++
ASPMEnabler/gnu-efi/gnuefi/crt0-efi-arm.S | 145 ++
ASPMEnabler/gnu-efi/gnuefi/crt0-efi-ia32.S | 76 +
ASPMEnabler/gnu-efi/gnuefi/crt0-efi-ia64.S | 87 +
.../gnu-efi/gnuefi/crt0-efi-mips64el.S | 188 ++
ASPMEnabler/gnu-efi/gnuefi/crt0-efi-x86_64.S | 76 +
.../gnu-efi/gnuefi/elf_aarch64_efi.lds | 63 +
ASPMEnabler/gnu-efi/gnuefi/elf_arm_efi.lds | 63 +
ASPMEnabler/gnu-efi/gnuefi/elf_ia32_efi.lds | 86 +
.../gnu-efi/gnuefi/elf_ia32_fbsd_efi.lds | 86 +
ASPMEnabler/gnu-efi/gnuefi/elf_ia64_efi.lds | 81 +
.../gnu-efi/gnuefi/elf_mips64el_efi.lds | 64 +
ASPMEnabler/gnu-efi/gnuefi/elf_x86_64_efi.lds | 76 +
.../gnu-efi/gnuefi/elf_x86_64_fbsd_efi.lds | 70 +
ASPMEnabler/gnu-efi/gnuefi/reloc_aarch64.c | 97 +
ASPMEnabler/gnu-efi/gnuefi/reloc_arm.c | 97 +
ASPMEnabler/gnu-efi/gnuefi/reloc_ia32.c | 99 +
ASPMEnabler/gnu-efi/gnuefi/reloc_ia64.S | 227 +++
ASPMEnabler/gnu-efi/gnuefi/reloc_mips64el.c | 115 ++
ASPMEnabler/gnu-efi/gnuefi/reloc_x86_64.c | 98 +
ASPMEnabler/gnu-efi/inc/Makefile | 27 +
ASPMEnabler/gnu-efi/inc/aarch64/efibind.h | 158 ++
ASPMEnabler/gnu-efi/inc/aarch64/efilibplat.h | 25 +
.../gnu-efi/inc/aarch64/efisetjmp_arch.h | 33 +
ASPMEnabler/gnu-efi/inc/arm/efibind.h | 166 ++
ASPMEnabler/gnu-efi/inc/arm/efilibplat.h | 25 +
ASPMEnabler/gnu-efi/inc/arm/efisetjmp_arch.h | 21 +
ASPMEnabler/gnu-efi/inc/efi.h | 61 +
ASPMEnabler/gnu-efi/inc/efi_nii.h | 78 +
ASPMEnabler/gnu-efi/inc/efi_pxe.h | 1743 +++++++++++++++++
ASPMEnabler/gnu-efi/inc/efiapi.h | 967 +++++++++
ASPMEnabler/gnu-efi/inc/eficompiler.h | 30 +
ASPMEnabler/gnu-efi/inc/eficon.h | 306 +++
ASPMEnabler/gnu-efi/inc/efidebug.h | 620 ++++++
ASPMEnabler/gnu-efi/inc/efidef.h | 220 +++
ASPMEnabler/gnu-efi/inc/efidevp.h | 582 ++++++
ASPMEnabler/gnu-efi/inc/efierr.h | 68 +
ASPMEnabler/gnu-efi/inc/efifs.h | 116 ++
ASPMEnabler/gnu-efi/inc/efigpt.h | 68 +
ASPMEnabler/gnu-efi/inc/efiip.h | 459 +++++
ASPMEnabler/gnu-efi/inc/efilib.h | 1036 ++++++++++
ASPMEnabler/gnu-efi/inc/efilink.h | 177 ++
ASPMEnabler/gnu-efi/inc/efinet.h | 348 ++++
ASPMEnabler/gnu-efi/inc/efipart.h | 61 +
ASPMEnabler/gnu-efi/inc/efipciio.h | 399 ++++
ASPMEnabler/gnu-efi/inc/efipoint.h | 115 ++
ASPMEnabler/gnu-efi/inc/efiprot.h | 1424 ++++++++++++++
ASPMEnabler/gnu-efi/inc/efipxebc.h | 482 +++++
ASPMEnabler/gnu-efi/inc/efirtlib.h | 179 ++
ASPMEnabler/gnu-efi/inc/efiser.h | 136 ++
ASPMEnabler/gnu-efi/inc/efisetjmp.h | 10 +
ASPMEnabler/gnu-efi/inc/efishellintf.h | 94 +
ASPMEnabler/gnu-efi/inc/efishellparm.h | 63 +
ASPMEnabler/gnu-efi/inc/efistdarg.h | 33 +
ASPMEnabler/gnu-efi/inc/efitcp.h | 391 ++++
ASPMEnabler/gnu-efi/inc/efiudp.h | 272 +++
ASPMEnabler/gnu-efi/inc/efiui.h | 58 +
ASPMEnabler/gnu-efi/inc/ia32/efibind.h | 291 +++
ASPMEnabler/gnu-efi/inc/ia32/efilibplat.h | 26 +
ASPMEnabler/gnu-efi/inc/ia32/efisetjmp_arch.h | 15 +
ASPMEnabler/gnu-efi/inc/ia32/pe.h | 595 ++++++
ASPMEnabler/gnu-efi/inc/ia64/efibind.h | 233 +++
ASPMEnabler/gnu-efi/inc/ia64/efilibplat.h | 80 +
ASPMEnabler/gnu-efi/inc/ia64/efisetjmp_arch.h | 47 +
ASPMEnabler/gnu-efi/inc/ia64/pe.h | 601 ++++++
ASPMEnabler/gnu-efi/inc/ia64/salproc.h | 264 +++
ASPMEnabler/gnu-efi/inc/inc.mak | 23 +
ASPMEnabler/gnu-efi/inc/libsmbios.h | 132 ++
ASPMEnabler/gnu-efi/inc/make.inf | 33 +
ASPMEnabler/gnu-efi/inc/makefile.hdr | 48 +
ASPMEnabler/gnu-efi/inc/mips64el/efibind.h | 166 ++
ASPMEnabler/gnu-efi/inc/mips64el/efilibplat.h | 25 +
.../gnu-efi/inc/mips64el/efisetjmp_arch.h | 34 +
ASPMEnabler/gnu-efi/inc/pci22.h | 193 ++
.../gnu-efi/inc/protocol/adapterdebug.h | 32 +
.../gnu-efi/inc/protocol/eficonsplit.h | 32 +
ASPMEnabler/gnu-efi/inc/protocol/efidbg.h | 210 ++
ASPMEnabler/gnu-efi/inc/protocol/efivar.h | 133 ++
.../gnu-efi/inc/protocol/ia64/eficontext.h | 208 ++
ASPMEnabler/gnu-efi/inc/protocol/intload.h | 27 +
ASPMEnabler/gnu-efi/inc/protocol/legacyboot.h | 119 ++
ASPMEnabler/gnu-efi/inc/protocol/make.inf | 13 +
ASPMEnabler/gnu-efi/inc/protocol/makefile.hdr | 29 +
ASPMEnabler/gnu-efi/inc/protocol/piflash64.h | 121 ++
ASPMEnabler/gnu-efi/inc/protocol/readme.txt | 3 +
ASPMEnabler/gnu-efi/inc/protocol/vgaclass.h | 95 +
ASPMEnabler/gnu-efi/inc/romload.h | 41 +
ASPMEnabler/gnu-efi/inc/x86_64/efibind.h | 392 ++++
ASPMEnabler/gnu-efi/inc/x86_64/efilibplat.h | 26 +
.../gnu-efi/inc/x86_64/efisetjmp_arch.h | 22 +
ASPMEnabler/gnu-efi/inc/x86_64/pe.h | 595 ++++++
ASPMEnabler/gnu-efi/lib/Makefile | 93 +
ASPMEnabler/gnu-efi/lib/Makefile.orig | 91 +
ASPMEnabler/gnu-efi/lib/aarch64/efi_stub.S | 1 +
ASPMEnabler/gnu-efi/lib/aarch64/initplat.c | 26 +
ASPMEnabler/gnu-efi/lib/aarch64/math.c | 63 +
ASPMEnabler/gnu-efi/lib/aarch64/setjmp.S | 60 +
ASPMEnabler/gnu-efi/lib/arm/div.S | 155 ++
ASPMEnabler/gnu-efi/lib/arm/edk2asm.h | 6 +
ASPMEnabler/gnu-efi/lib/arm/efi_stub.S | 1 +
ASPMEnabler/gnu-efi/lib/arm/initplat.c | 34 +
ASPMEnabler/gnu-efi/lib/arm/ldivmod.S | 61 +
ASPMEnabler/gnu-efi/lib/arm/llsl.S | 41 +
ASPMEnabler/gnu-efi/lib/arm/llsr.S | 41 +
ASPMEnabler/gnu-efi/lib/arm/math.c | 67 +
ASPMEnabler/gnu-efi/lib/arm/mullu.S | 33 +
ASPMEnabler/gnu-efi/lib/arm/setjmp.S | 25 +
ASPMEnabler/gnu-efi/lib/arm/uldiv.S | 267 +++
ASPMEnabler/gnu-efi/lib/boxdraw.c | 173 ++
ASPMEnabler/gnu-efi/lib/cmdline.c | 121 ++
ASPMEnabler/gnu-efi/lib/console.c | 104 +
ASPMEnabler/gnu-efi/lib/crc.c | 218 +++
ASPMEnabler/gnu-efi/lib/data.c | 203 ++
ASPMEnabler/gnu-efi/lib/debug.c | 43 +
ASPMEnabler/gnu-efi/lib/dpath.c | 1262 ++++++++++++
ASPMEnabler/gnu-efi/lib/error.c | 83 +
ASPMEnabler/gnu-efi/lib/event.c | 154 ++
ASPMEnabler/gnu-efi/lib/exit.c | 19 +
ASPMEnabler/gnu-efi/lib/guid.c | 179 ++
ASPMEnabler/gnu-efi/lib/hand.c | 636 ++++++
ASPMEnabler/gnu-efi/lib/hw.c | 132 ++
ASPMEnabler/gnu-efi/lib/ia32/efi_stub.S | 1 +
ASPMEnabler/gnu-efi/lib/ia32/initplat.c | 27 +
ASPMEnabler/gnu-efi/lib/ia32/math.c | 199 ++
ASPMEnabler/gnu-efi/lib/ia32/setjmp.S | 45 +
ASPMEnabler/gnu-efi/lib/ia64/initplat.c | 30 +
ASPMEnabler/gnu-efi/lib/ia64/math.c | 88 +
ASPMEnabler/gnu-efi/lib/ia64/palproc.S | 161 ++
ASPMEnabler/gnu-efi/lib/ia64/palproc.h | 51 +
ASPMEnabler/gnu-efi/lib/ia64/salpal.c | 335 ++++
ASPMEnabler/gnu-efi/lib/ia64/setjmp.S | 199 ++
ASPMEnabler/gnu-efi/lib/init.c | 214 ++
ASPMEnabler/gnu-efi/lib/lib.h | 92 +
ASPMEnabler/gnu-efi/lib/lock.c | 107 +
ASPMEnabler/gnu-efi/lib/mips64el/efi_stub.S | 1 +
ASPMEnabler/gnu-efi/lib/mips64el/initplat.c | 26 +
ASPMEnabler/gnu-efi/lib/mips64el/math.c | 63 +
ASPMEnabler/gnu-efi/lib/mips64el/setjmp.S | 92 +
ASPMEnabler/gnu-efi/lib/misc.c | 563 ++++++
ASPMEnabler/gnu-efi/lib/print.c | 1482 ++++++++++++++
ASPMEnabler/gnu-efi/lib/runtime/efirtlib.c | 145 ++
ASPMEnabler/gnu-efi/lib/runtime/rtdata.c | 65 +
ASPMEnabler/gnu-efi/lib/runtime/rtlock.c | 102 +
ASPMEnabler/gnu-efi/lib/runtime/rtstr.c | 231 +++
ASPMEnabler/gnu-efi/lib/runtime/vm.c | 105 +
ASPMEnabler/gnu-efi/lib/smbios.c | 135 ++
ASPMEnabler/gnu-efi/lib/sread.c | 358 ++++
ASPMEnabler/gnu-efi/lib/str.c | 432 ++++
ASPMEnabler/gnu-efi/lib/x86_64/callwrap.c | 40 +
ASPMEnabler/gnu-efi/lib/x86_64/efi_stub.S | 189 ++
ASPMEnabler/gnu-efi/lib/x86_64/initplat.c | 27 +
ASPMEnabler/gnu-efi/lib/x86_64/math.c | 181 ++
ASPMEnabler/gnu-efi/lib/x86_64/setjmp.S | 41 +
ASPMEnabler/listacpi.c | 96 +
ASPMEnabler/listacpi.h | 53 +
ASPMEnabler/main.c | 206 ++
README.md | 7 +
aspm.py | 89 +
207 files changed, 34545 insertions(+)
create mode 100644 ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj
create mode 100644 ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.filters
create mode 100644 ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.user
create mode 100644 ASPMEnabler/.vs/msvc/gnu-efi.vcxproj
create mode 100644 ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.filters
create mode 100644 ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.user
create mode 100644 ASPMEnabler/ASPMEnabler.sln
create mode 100644 ASPMEnabler/LICENSE
create mode 100644 ASPMEnabler/Makefile
create mode 100644 ASPMEnabler/README.md
create mode 100644 ASPMEnabler/acpi_checksum.c
create mode 100644 ASPMEnabler/acpi_checksum.h
create mode 100644 ASPMEnabler/fadt.h
create mode 100644 ASPMEnabler/gnu-efi/ChangeLog
create mode 100644 ASPMEnabler/gnu-efi/Make.defaults
create mode 100644 ASPMEnabler/gnu-efi/Make.rules
create mode 100644 ASPMEnabler/gnu-efi/Makefile
create mode 100644 ASPMEnabler/gnu-efi/README.efilib
create mode 100644 ASPMEnabler/gnu-efi/README.elilo
create mode 100644 ASPMEnabler/gnu-efi/README.git
create mode 100644 ASPMEnabler/gnu-efi/README.gnuefi
create mode 100644 ASPMEnabler/gnu-efi/apps/AllocPages.c
create mode 100644 ASPMEnabler/gnu-efi/apps/FreePages.c
create mode 100644 ASPMEnabler/gnu-efi/apps/Makefile
create mode 100644 ASPMEnabler/gnu-efi/apps/bltgrid.c
create mode 100644 ASPMEnabler/gnu-efi/apps/debughook.c
create mode 100644 ASPMEnabler/gnu-efi/apps/drv0.c
create mode 100644 ASPMEnabler/gnu-efi/apps/drv0.h
create mode 100644 ASPMEnabler/gnu-efi/apps/drv0_use.c
create mode 100644 ASPMEnabler/gnu-efi/apps/exit.c
create mode 100644 ASPMEnabler/gnu-efi/apps/lfbgrid.c
create mode 100644 ASPMEnabler/gnu-efi/apps/modelist.c
create mode 100644 ASPMEnabler/gnu-efi/apps/printenv.c
create mode 100644 ASPMEnabler/gnu-efi/apps/route80h.c
create mode 100644 ASPMEnabler/gnu-efi/apps/setdbg.c
create mode 100644 ASPMEnabler/gnu-efi/apps/setjmp.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t2.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t3.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t4.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t5.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t6.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t7.c
create mode 100644 ASPMEnabler/gnu-efi/apps/t8.c
create mode 100644 ASPMEnabler/gnu-efi/apps/tcc.c
create mode 100644 ASPMEnabler/gnu-efi/apps/tpause.c
create mode 100644 ASPMEnabler/gnu-efi/apps/trivial.S
create mode 100644 ASPMEnabler/gnu-efi/apps/unsetdbg.c
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/Makefile
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/crt0-efi-aarch64.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/crt0-efi-arm.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/crt0-efi-ia32.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/crt0-efi-ia64.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/crt0-efi-mips64el.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/crt0-efi-x86_64.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_aarch64_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_arm_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_ia32_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_ia32_fbsd_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_ia64_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_mips64el_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_x86_64_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/elf_x86_64_fbsd_efi.lds
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/reloc_aarch64.c
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/reloc_arm.c
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/reloc_ia32.c
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/reloc_ia64.S
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/reloc_mips64el.c
create mode 100644 ASPMEnabler/gnu-efi/gnuefi/reloc_x86_64.c
create mode 100644 ASPMEnabler/gnu-efi/inc/Makefile
create mode 100644 ASPMEnabler/gnu-efi/inc/aarch64/efibind.h
create mode 100644 ASPMEnabler/gnu-efi/inc/aarch64/efilibplat.h
create mode 100644 ASPMEnabler/gnu-efi/inc/aarch64/efisetjmp_arch.h
create mode 100644 ASPMEnabler/gnu-efi/inc/arm/efibind.h
create mode 100644 ASPMEnabler/gnu-efi/inc/arm/efilibplat.h
create mode 100644 ASPMEnabler/gnu-efi/inc/arm/efisetjmp_arch.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efi.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efi_nii.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efi_pxe.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efiapi.h
create mode 100644 ASPMEnabler/gnu-efi/inc/eficompiler.h
create mode 100644 ASPMEnabler/gnu-efi/inc/eficon.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efidebug.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efidef.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efidevp.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efierr.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efifs.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efigpt.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efiip.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efilib.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efilink.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efinet.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efipart.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efipciio.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efipoint.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efiprot.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efipxebc.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efirtlib.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efiser.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efisetjmp.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efishellintf.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efishellparm.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efistdarg.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efitcp.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efiudp.h
create mode 100644 ASPMEnabler/gnu-efi/inc/efiui.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia32/efibind.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia32/efilibplat.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia32/efisetjmp_arch.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia32/pe.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia64/efibind.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia64/efilibplat.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia64/efisetjmp_arch.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia64/pe.h
create mode 100644 ASPMEnabler/gnu-efi/inc/ia64/salproc.h
create mode 100644 ASPMEnabler/gnu-efi/inc/inc.mak
create mode 100644 ASPMEnabler/gnu-efi/inc/libsmbios.h
create mode 100644 ASPMEnabler/gnu-efi/inc/make.inf
create mode 100644 ASPMEnabler/gnu-efi/inc/makefile.hdr
create mode 100644 ASPMEnabler/gnu-efi/inc/mips64el/efibind.h
create mode 100644 ASPMEnabler/gnu-efi/inc/mips64el/efilibplat.h
create mode 100644 ASPMEnabler/gnu-efi/inc/mips64el/efisetjmp_arch.h
create mode 100644 ASPMEnabler/gnu-efi/inc/pci22.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/adapterdebug.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/eficonsplit.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/efidbg.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/efivar.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/ia64/eficontext.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/intload.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/legacyboot.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/make.inf
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/makefile.hdr
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/piflash64.h
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/readme.txt
create mode 100644 ASPMEnabler/gnu-efi/inc/protocol/vgaclass.h
create mode 100644 ASPMEnabler/gnu-efi/inc/romload.h
create mode 100644 ASPMEnabler/gnu-efi/inc/x86_64/efibind.h
create mode 100644 ASPMEnabler/gnu-efi/inc/x86_64/efilibplat.h
create mode 100644 ASPMEnabler/gnu-efi/inc/x86_64/efisetjmp_arch.h
create mode 100644 ASPMEnabler/gnu-efi/inc/x86_64/pe.h
create mode 100644 ASPMEnabler/gnu-efi/lib/Makefile
create mode 100644 ASPMEnabler/gnu-efi/lib/Makefile.orig
create mode 100644 ASPMEnabler/gnu-efi/lib/aarch64/efi_stub.S
create mode 100644 ASPMEnabler/gnu-efi/lib/aarch64/initplat.c
create mode 100644 ASPMEnabler/gnu-efi/lib/aarch64/math.c
create mode 100644 ASPMEnabler/gnu-efi/lib/aarch64/setjmp.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/div.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/edk2asm.h
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/efi_stub.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/initplat.c
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/ldivmod.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/llsl.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/llsr.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/math.c
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/mullu.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/setjmp.S
create mode 100644 ASPMEnabler/gnu-efi/lib/arm/uldiv.S
create mode 100644 ASPMEnabler/gnu-efi/lib/boxdraw.c
create mode 100644 ASPMEnabler/gnu-efi/lib/cmdline.c
create mode 100644 ASPMEnabler/gnu-efi/lib/console.c
create mode 100644 ASPMEnabler/gnu-efi/lib/crc.c
create mode 100644 ASPMEnabler/gnu-efi/lib/data.c
create mode 100644 ASPMEnabler/gnu-efi/lib/debug.c
create mode 100644 ASPMEnabler/gnu-efi/lib/dpath.c
create mode 100644 ASPMEnabler/gnu-efi/lib/error.c
create mode 100644 ASPMEnabler/gnu-efi/lib/event.c
create mode 100644 ASPMEnabler/gnu-efi/lib/exit.c
create mode 100644 ASPMEnabler/gnu-efi/lib/guid.c
create mode 100644 ASPMEnabler/gnu-efi/lib/hand.c
create mode 100644 ASPMEnabler/gnu-efi/lib/hw.c
create mode 100644 ASPMEnabler/gnu-efi/lib/ia32/efi_stub.S
create mode 100644 ASPMEnabler/gnu-efi/lib/ia32/initplat.c
create mode 100644 ASPMEnabler/gnu-efi/lib/ia32/math.c
create mode 100644 ASPMEnabler/gnu-efi/lib/ia32/setjmp.S
create mode 100644 ASPMEnabler/gnu-efi/lib/ia64/initplat.c
create mode 100644 ASPMEnabler/gnu-efi/lib/ia64/math.c
create mode 100644 ASPMEnabler/gnu-efi/lib/ia64/palproc.S
create mode 100644 ASPMEnabler/gnu-efi/lib/ia64/palproc.h
create mode 100644 ASPMEnabler/gnu-efi/lib/ia64/salpal.c
create mode 100644 ASPMEnabler/gnu-efi/lib/ia64/setjmp.S
create mode 100644 ASPMEnabler/gnu-efi/lib/init.c
create mode 100644 ASPMEnabler/gnu-efi/lib/lib.h
create mode 100644 ASPMEnabler/gnu-efi/lib/lock.c
create mode 100644 ASPMEnabler/gnu-efi/lib/mips64el/efi_stub.S
create mode 100644 ASPMEnabler/gnu-efi/lib/mips64el/initplat.c
create mode 100644 ASPMEnabler/gnu-efi/lib/mips64el/math.c
create mode 100644 ASPMEnabler/gnu-efi/lib/mips64el/setjmp.S
create mode 100644 ASPMEnabler/gnu-efi/lib/misc.c
create mode 100644 ASPMEnabler/gnu-efi/lib/print.c
create mode 100644 ASPMEnabler/gnu-efi/lib/runtime/efirtlib.c
create mode 100644 ASPMEnabler/gnu-efi/lib/runtime/rtdata.c
create mode 100644 ASPMEnabler/gnu-efi/lib/runtime/rtlock.c
create mode 100644 ASPMEnabler/gnu-efi/lib/runtime/rtstr.c
create mode 100644 ASPMEnabler/gnu-efi/lib/runtime/vm.c
create mode 100644 ASPMEnabler/gnu-efi/lib/smbios.c
create mode 100644 ASPMEnabler/gnu-efi/lib/sread.c
create mode 100644 ASPMEnabler/gnu-efi/lib/str.c
create mode 100644 ASPMEnabler/gnu-efi/lib/x86_64/callwrap.c
create mode 100644 ASPMEnabler/gnu-efi/lib/x86_64/efi_stub.S
create mode 100644 ASPMEnabler/gnu-efi/lib/x86_64/initplat.c
create mode 100644 ASPMEnabler/gnu-efi/lib/x86_64/math.c
create mode 100644 ASPMEnabler/gnu-efi/lib/x86_64/setjmp.S
create mode 100644 ASPMEnabler/listacpi.c
create mode 100644 ASPMEnabler/listacpi.h
create mode 100644 ASPMEnabler/main.c
create mode 100644 README.md
create mode 100644 aspm.py
diff --git a/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj b/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj
new file mode 100644
index 0000000..16328a5
--- /dev/null
+++ b/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj
@@ -0,0 +1,401 @@
+
+
+
+
+ Debug
+ ARM
+
+
+ Debug
+ ARM64
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ ARM
+
+
+ Release
+ ARM64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}
+ ASPMEnabler
+ 10.0
+
+
+
+ x64
+
+
+ Application
+ true
+ Unicode
+ v143
+
+
+ Application
+ true
+ Unicode
+ v143
+
+
+ Application
+ true
+ Unicode
+ true
+
+
+ Application
+ true
+ Unicode
+ true
+
+
+ Application
+ false
+ Unicode
+ v143
+
+
+ Application
+ false
+ Unicode
+ v143
+
+
+ Application
+ false
+ Unicode
+ true
+
+
+ Application
+ false
+ Unicode
+ true
+
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\x64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+ edk2/MdePkg/Include;$(IncludePath)
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\ia32\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\arm\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\aa64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\x64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\ia32\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\arm\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ .efi
+ false
+ false
+ $(SolutionDir)build\aa64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\x86_64
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ 4091
+ ProgramDatabase
+ Default
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ gnu-efi.lib;libcmtd.lib;%(AdditionalDependencies)
+ false
+ true
+ efi_main
+ EFI Application
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\ia32
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ ProgramDatabase
+ 4091
+ Default
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ gnu-efi.lib;libcmtd.lib;%(AdditionalDependencies)
+ false
+ true
+ efi_main
+ EFI Application
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+ MachineX86
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\arm
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ ProgramDatabase
+ 4091
+ Default
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ gnu-efi.lib;libcmtd.lib;%(AdditionalDependencies)
+ false
+ true
+ efi_main
+ EFI Application
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\aarch64
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ ProgramDatabase
+ 4091
+ Default
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ gnu-efi.lib;libcmtd.lib;%(AdditionalDependencies)
+ false
+ true
+ efi_main
+ EFI Application
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\x86_64
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ 4091
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ false
+ true
+ efi_main
+ EFI Application
+ gnu-efi.lib;libcmt.lib;%(AdditionalDependencies)
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\ia32
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ 4091
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ false
+ true
+ efi_main
+ EFI Application
+ gnu-efi.lib;libcmt.lib;%(AdditionalDependencies)
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\arm
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ 4091
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ false
+ true
+ efi_main
+ EFI Application
+ gnu-efi.lib;libcmt.lib;%(AdditionalDependencies)
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\aarch64
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ Level3
+ 4091
+ false
+ /Oi- %(AdditionalOptions)
+
+
+ EFI Application
+
+
+ true
+
+
+ false
+ true
+ efi_main
+ EFI Application
+ gnu-efi.lib;libcmt.lib;%(AdditionalDependencies)
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.filters b/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.filters
new file mode 100644
index 0000000..b748b35
--- /dev/null
+++ b/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.filters
@@ -0,0 +1,43 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;xsd
+
+
+ {b1c3b304-e868-4b07-988c-36ad7bc57300}
+
+
+
+
+ Resource Files
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
\ No newline at end of file
diff --git a/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.user b/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/ASPMEnabler/.vs/msvc/ASPMEnabler.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj b/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj
new file mode 100644
index 0000000..7da8c56
--- /dev/null
+++ b/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj
@@ -0,0 +1,428 @@
+
+
+
+
+ Debug
+ ARM
+
+
+ Debug
+ ARM64
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ ARM
+
+
+ Release
+ ARM64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+ {3135D563-9596-4584-9ED6-616ADEC52974}
+ gnuefi
+ 10.0
+
+
+
+ x64
+
+
+ StaticLibrary
+ true
+ v143
+ Unicode
+
+
+ StaticLibrary
+ true
+ v143
+ Unicode
+
+
+ StaticLibrary
+ true
+ v143
+ Unicode
+ true
+
+
+ StaticLibrary
+ true
+ v143
+ Unicode
+ true
+
+
+ StaticLibrary
+ false
+ v143
+ true
+ Unicode
+
+
+ StaticLibrary
+ false
+ v143
+ true
+ Unicode
+
+
+ StaticLibrary
+ false
+ v143
+ true
+ Unicode
+ true
+
+
+ StaticLibrary
+ false
+ v143
+ true
+ Unicode
+ true
+
+
+
+ $(SolutionDir)build\x64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\ia32\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\arm\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\aa64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\x64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\ia32\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\arm\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+ $(SolutionDir)build\aa64\$(Configuration)\
+ $(OutDir)$(ProjectName)\
+
+
+
+ Level3
+ Disabled
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\x86_64;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreadedDebug
+ 4312
+ ProgramDatabase
+ Default
+ false
+ /Oi-
+
+
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ Disabled
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\ia32;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreadedDebug
+ ProgramDatabase
+ 4312
+ Default
+ false
+ /Oi-
+
+
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ Disabled
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\arm;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreadedDebug
+ ProgramDatabase
+ 4312
+ Default
+ false
+ /Oi-
+
+
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ Disabled
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\aarch64;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;__SIZE_TYPE__=uint64_t;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreadedDebug
+ ProgramDatabase
+ 4312
+ Default
+ false
+ /Oi-
+
+
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\x86_64;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreaded
+ 4312
+ false
+ false
+ /Oi-
+
+
+ true
+ true
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\ia32;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreaded
+ 4312
+ false
+ false
+ /Oi-
+
+
+ true
+ true
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\arm;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreaded
+ 4312
+ false
+ false
+ /Oi-
+
+
+ true
+ true
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ Level3
+ $(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\aarch64;$(SolutionDir)\gnu-efi\inc\protocol;$(SolutionDir)\gnu-efi\lib
+ _UNICODE;UNICODE;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;__SIZE_TYPE__=uint64_t;%(PreprocessorDefinitions)
+ false
+ CompileAsC
+ MultiThreaded
+ 4312
+ false
+ false
+ /Oi-
+
+
+ true
+ true
+ true
+
+
+ EFI Application
+ true
+
+
+
+
+ true
+ true
+ false
+ false
+ true
+ true
+ true
+ true
+
+
+ true
+ true
+ false
+ false
+ true
+ true
+ true
+ true
+
+
+ false
+ false
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+ false
+ false
+ true
+ true
+ true
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ false
+ false
+ true
+ true
+
+
+ true
+ true
+ true
+ true
+ false
+ false
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+ false
+ false
+
+
+ true
+ true
+ true
+ true
+ true
+ true
+ false
+ false
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.filters b/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.filters
new file mode 100644
index 0000000..865e8e2
--- /dev/null
+++ b/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.filters
@@ -0,0 +1,123 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;xsd
+
+
+ {20c8e9bd-0fa8-46d3-b825-e3eebd64ab3d}
+
+
+ {87122940-e80f-416d-a840-5e32f703f3ff}
+
+
+ {e6e3d25a-4fce-4036-bef9-3cfbafc4baaf}
+
+
+ {cf7e7031-77e5-4827-9aa6-f996fc4b3d06}
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files\arm
+
+
+ Source Files\x86_64
+
+
+ Source Files\ia32
+
+
+ Source Files\x86_64
+
+
+ Source Files\ia32
+
+
+ Source Files\arm
+
+
+ Source Files\aarch64
+
+
+ Source Files\aarch64
+
+
+
\ No newline at end of file
diff --git a/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.user b/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/ASPMEnabler/.vs/msvc/gnu-efi.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/ASPMEnabler/ASPMEnabler.sln b/ASPMEnabler/ASPMEnabler.sln
new file mode 100644
index 0000000..ca8e025
--- /dev/null
+++ b/ASPMEnabler/ASPMEnabler.sln
@@ -0,0 +1,64 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.27004.2006
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASPMEnabler", ".vs\msvc\ASPMEnabler.vcxproj", "{DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}"
+ ProjectSection(ProjectDependencies) = postProject
+ {3135D563-9596-4584-9ED6-616ADEC52974} = {3135D563-9596-4584-9ED6-616ADEC52974}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gnu-efi", ".vs\msvc\gnu-efi.vcxproj", "{3135D563-9596-4584-9ED6-616ADEC52974}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|arm = Debug|arm
+ Debug|aa64 = Debug|aa64
+ Debug|ia32 = Debug|ia32
+ Debug|x64 = Debug|x64
+ Release|arm = Release|arm
+ Release|aa64 = Release|aa64
+ Release|ia32 = Release|ia32
+ Release|x64 = Release|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|arm.ActiveCfg = Debug|ARM
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|arm.Build.0 = Debug|ARM
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|aa64.ActiveCfg = Debug|ARM64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|aa64.Build.0 = Debug|ARM64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|ia32.ActiveCfg = Debug|Win32
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|ia32.Build.0 = Debug|Win32
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|x64.ActiveCfg = Debug|x64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Debug|x64.Build.0 = Debug|x64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|arm.ActiveCfg = Release|ARM
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|arm.Build.0 = Release|ARM
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|aa64.ActiveCfg = Release|ARM64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|aa64.Build.0 = Release|ARM64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|ia32.ActiveCfg = Release|Win32
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|ia32.Build.0 = Release|Win32
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|x64.ActiveCfg = Release|x64
+ {DFA0BA98-D0BA-4176-9A34-B5BA6355B1DE}.Release|x64.Build.0 = Release|x64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|arm.ActiveCfg = Debug|ARM
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|arm.Build.0 = Debug|ARM
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|aa64.ActiveCfg = Debug|ARM64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|aa64.Build.0 = Debug|ARM64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|ia32.ActiveCfg = Debug|Win32
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|ia32.Build.0 = Debug|Win32
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|x64.ActiveCfg = Debug|x64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Debug|x64.Build.0 = Debug|x64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|arm.ActiveCfg = Release|ARM
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|arm.Build.0 = Release|ARM
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|aa64.ActiveCfg = Release|ARM64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|aa64.Build.0 = Release|ARM64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|ia32.ActiveCfg = Release|Win32
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|ia32.Build.0 = Release|Win32
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|x64.ActiveCfg = Release|x64
+ {3135D563-9596-4584-9ED6-616ADEC52974}.Release|x64.Build.0 = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {376E6530-5878-4CF4-AFB7-123F799056A2}
+ EndGlobalSection
+EndGlobal
diff --git a/ASPMEnabler/LICENSE b/ASPMEnabler/LICENSE
new file mode 100644
index 0000000..552f855
--- /dev/null
+++ b/ASPMEnabler/LICENSE
@@ -0,0 +1,9 @@
+Copyright 2020 James Swineson
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/ASPMEnabler/Makefile b/ASPMEnabler/Makefile
new file mode 100644
index 0000000..9e8239c
--- /dev/null
+++ b/ASPMEnabler/Makefile
@@ -0,0 +1,171 @@
+ARCH = x64
+# You can alter the subsystem according to your EFI binary target:
+# 10 = EFI application
+# 11 = EFI boot service driver
+# 12 = EFI runtime driver
+SUBSYSTEM = 10
+
+# Try to auto-detect the target ARCH
+ifeq ($(shell uname -o),Msys)
+ IS_MINGW32 = $(findstring MINGW32,$(shell uname -s))
+ IS_MINGW64 = $(findstring MINGW64,$(shell uname -s))
+ ifeq ($(IS_MINGW32),MINGW32)
+ ARCH = ia32
+ endif
+ ifeq ($(IS_MINGW64),MINGW64)
+ ARCH = x64
+ endif
+else
+ ifeq ($(shell uname -m),x86_64)
+ ARCH = x64
+ else ifeq ($(shell uname -m),arm)
+ ARCH = arm
+ CROSS_COMPILE =
+ else ifeq ($(shell uname -m),aarch64)
+ ARCH = aa64
+ CROSS_COMPILE =
+ else
+ ARCH = ia32
+ endif
+endif
+
+# Auto-detect the host arch for MinGW
+ifeq ($(shell uname -m),x86_64)
+ MINGW_HOST = w64
+else
+ MINGW_HOST = w32
+endif
+
+ifeq ($(ARCH),x64)
+ GNUEFI_ARCH = x86_64
+ GCC_ARCH = x86_64
+ QEMU_ARCH = x86_64
+ FW_BASE = OVMF
+ CROSS_COMPILE = $(GCC_ARCH)-$(MINGW_HOST)-mingw32-
+ EP_PREFIX =
+ CFLAGS = -m64 -mno-red-zone
+ LDFLAGS = -Wl,-dll -Wl,--subsystem,$(SUBSYSTEM)
+else ifeq ($(ARCH),ia32)
+ GNUEFI_ARCH = ia32
+ GCC_ARCH = i686
+ QEMU_ARCH = i386
+ FW_BASE = OVMF
+ CROSS_COMPILE = $(GCC_ARCH)-$(MINGW_HOST)-mingw32-
+ EP_PREFIX = _
+ CFLAGS = -m32 -mno-red-zone
+ LDFLAGS = -Wl,-dll -Wl,--subsystem,$(SUBSYSTEM)
+else ifeq ($(ARCH),arm)
+ GNUEFI_ARCH = arm
+ GCC_ARCH = arm
+ QEMU_ARCH = arm
+ FW_BASE = QEMU_EFI
+ CROSS_COMPILE = $(GCC_ARCH)-linux-gnueabihf-
+ EP_PREFIX =
+ CFLAGS = -marm -fpic -fshort-wchar
+ LDFLAGS = -Wl,--no-wchar-size-warning -Wl,--defsym=EFI_SUBSYSTEM=$(SUBSYSTEM)
+ CRT0_LIBS = -lgnuefi
+ QEMU_OPTS = -M virt -cpu cortex-a15
+else ifeq ($(ARCH),aa64)
+ GNUEFI_ARCH = aarch64
+ GCC_ARCH = aarch64
+ QEMU_ARCH = aarch64
+ FW_BASE = QEMU_EFI
+ CROSS_COMPILE = $(GCC_ARCH)-linux-gnu-
+ EP_PREFIX =
+ CFLAGS = -fpic -fshort-wchar
+ LDFLAGS = -Wl,--no-wchar-size-warning -Wl,--defsym=EFI_SUBSYSTEM=$(SUBSYSTEM)
+ CRT0_LIBS = -lgnuefi
+ QEMU_OPTS = -M virt -cpu cortex-a57
+endif
+FW_ARCH = $(shell echo $(ARCH) | tr a-z A-Z)
+FW_ZIP = $(FW_BASE)-$(FW_ARCH).zip
+GNUEFI_DIR = $(CURDIR)/gnu-efi
+GNUEFI_LIBS = lib
+
+# If the compiler produces an elf binary, we need to fiddle with a PE crt0
+ifneq ($(CRT0_LIBS),)
+ CRT0_DIR = $(GNUEFI_DIR)/$(GNUEFI_ARCH)/gnuefi
+ LDFLAGS += -L$(CRT0_DIR) -T $(GNUEFI_DIR)/gnuefi/elf_$(GNUEFI_ARCH)_efi.lds $(CRT0_DIR)/crt0-efi-$(GNUEFI_ARCH).o
+ GNUEFI_LIBS += gnuefi
+endif
+
+# SYSTEMROOT is only defined on Windows systems
+ifneq ($(SYSTEMROOT),)
+ QEMU = "/c/Program Files/qemu/qemu-system-$(QEMU_ARCH)w.exe"
+ # MinGW on Windows doesn't use (tuple)-ar but (tuple)-gcc-ar
+ # so we remove the cross compiler tuple altogether
+ CROSS_COMPILE =
+else
+ QEMU = qemu-system-$(QEMU_ARCH) -nographic
+endif
+
+CC := $(CROSS_COMPILE)gcc
+OBJCOPY := $(CROSS_COMPILE)objcopy
+CFLAGS += -fno-stack-protector -Wshadow -Wall -Wunused -Werror-implicit-function-declaration
+CFLAGS += -I$(GNUEFI_DIR)/inc -I$(GNUEFI_DIR)/inc/$(GNUEFI_ARCH) -I$(GNUEFI_DIR)/inc/protocol
+CFLAGS += -DCONFIG_$(GNUEFI_ARCH) -D__MAKEWITH_GNUEFI -DGNU_EFI_USE_MS_ABI
+LDFLAGS += -L$(GNUEFI_DIR)/$(GNUEFI_ARCH)/lib -e $(EP_PREFIX)efi_main
+LDFLAGS += -s -Wl,-Bsymbolic -nostdlib -shared
+LIBS = -lefi $(CRT0_LIBS)
+
+ifeq (, $(shell which $(CC)))
+ $(error The selected compiler ($(CC)) was not found)
+endif
+
+GCCVERSION := $(shell $(CC) -dumpversion | cut -f1 -d.)
+GCCMINOR := $(shell $(CC) -dumpversion | cut -f2 -d.)
+GCCMACHINE := $(shell $(CC) -dumpmachine)
+GCCNEWENOUGH := $(shell ( [ $(GCCVERSION) -gt "4" ] \
+ || ( [ $(GCCVERSION) -eq "4" ] \
+ && [ $(GCCMINOR) -ge "7" ] ) ) \
+ && echo 1)
+ifneq ($(GCCNEWENOUGH),1)
+ $(error You need GCC 4.7 or later)
+endif
+
+ifneq ($(GCC_ARCH),$(findstring $(GCC_ARCH), $(GCCMACHINE)))
+ $(error The selected compiler ($(CC)) is not set for $(ARCH))
+endif
+
+.PHONY: all clean superclean
+all: $(GNUEFI_DIR)/$(GNUEFI_ARCH)/lib/libefi.a main.efi
+
+$(GNUEFI_DIR)/$(GNUEFI_ARCH)/lib/libefi.a:
+ $(MAKE) -C$(GNUEFI_DIR) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(GNUEFI_ARCH) $(GNUEFI_LIBS)
+
+%.efi: %.o
+ @echo [LD] $(notdir $@)
+ifeq ($(CRT0_LIBS),)
+ @$(CC) $(LDFLAGS) $< -o $@ $(LIBS)
+else
+ @$(CC) $(LDFLAGS) $< -o $*.elf $(LIBS)
+ @$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel* \
+ -j .rela* -j .reloc -j .eh_frame -O binary $*.elf $@
+ @rm -f $*.elf
+endif
+
+%.o: %.c
+ @echo [CC] $(notdir $@)
+ @$(CC) $(CFLAGS) -ffreestanding -c $<
+
+qemu: CFLAGS += -D_DEBUG
+qemu: all $(FW_BASE)_$(FW_ARCH).fd image/efi/boot/boot$(ARCH).efi
+ $(QEMU) $(QEMU_OPTS) -bios ./$(FW_BASE)_$(FW_ARCH).fd -net none -hda fat:rw:image
+
+image/efi/boot/boot$(ARCH).efi: main.efi
+ mkdir -p image/efi/boot
+ cp -f $< $@
+
+$(FW_BASE)_$(FW_ARCH).fd:
+ wget https://efi.akeo.ie/$(FW_BASE)/$(FW_ZIP)
+ unzip $(FW_ZIP) $(FW_BASE).fd
+ mv $(FW_BASE).fd $(FW_BASE)_$(FW_ARCH).fd
+ rm $(FW_ZIP)
+
+clean:
+ rm -f main.efi *.o
+ rm -rf image
+
+superclean: clean
+ $(MAKE) -C$(GNUEFI_DIR) ARCH=$(GNUEFI_ARCH) clean
+ rm -f *.fd
diff --git a/ASPMEnabler/README.md b/ASPMEnabler/README.md
new file mode 100644
index 0000000..a0c6d8d
--- /dev/null
+++ b/ASPMEnabler/README.md
@@ -0,0 +1,24 @@
+# ASPMEnabler
+
+Patches the FADT ACPI table and overrides the bit which signals that the mainboard does not correctly support ASPM.
+
+This tool is based on [S0ixEnabler](https://github.com/Jamesits/S0ixEnabler) by James Swineson.
+
+## Requirements
+
+* UEFI firmware (some old EFI firmwares might be supported as well)
+
+## Usage
+
+Run `ASPMEnabler.efi` either manually or automatically before your OS loads.
+
+## Building
+
+Requirements:
+
+* Windows and Visual Studio 2017 or higher
+* C++ desktop development tools
+* MSVC C++ build tools (for the architecture you need)
+* MSVC C++ Spectre-mitigated libs (for the architecture you need)
+
+Open `ASPMEnabler.sln` in Visual Studio, make sure that your build is set to "Release" and click "Build Solution".
\ No newline at end of file
diff --git a/ASPMEnabler/acpi_checksum.c b/ASPMEnabler/acpi_checksum.c
new file mode 100644
index 0000000..f32ffe5
--- /dev/null
+++ b/ASPMEnabler/acpi_checksum.c
@@ -0,0 +1,16 @@
+#include
+#include
+#include "acpi_checksum.h"
+
+// return 0 if checksum passes
+UINT8 AcpiChecksum(UINT8 *TablePtr, UINT32 size)
+{
+ UINT8 ChkSum = 0;
+
+ for (; size > 0; --size, ++TablePtr)
+ {
+ ChkSum += (*TablePtr);
+ }
+
+ return ChkSum;
+}
\ No newline at end of file
diff --git a/ASPMEnabler/acpi_checksum.h b/ASPMEnabler/acpi_checksum.h
new file mode 100644
index 0000000..be1024a
--- /dev/null
+++ b/ASPMEnabler/acpi_checksum.h
@@ -0,0 +1,7 @@
+#pragma once
+#ifndef __ACPI_CHECKSUM_H__
+#define __ACPI_CHECKSUM_H__
+
+UINT8 AcpiChecksum(UINT8* TablePtr, UINT32 size);
+
+#endif
diff --git a/ASPMEnabler/fadt.h b/ASPMEnabler/fadt.h
new file mode 100644
index 0000000..5fcc25e
--- /dev/null
+++ b/ASPMEnabler/fadt.h
@@ -0,0 +1,96 @@
+// ACPI table definition from https://github.com/tianocore/edk2
+#pragma once
+#ifndef __FADT_H__
+#define __FADT_H__
+
+#include
+#include
+
+// edk2/MdePkg/Include/IndustryStandard/Acpi10.h
+// The common ACPI description table header. This structure prefaces most ACPI tables.
+#pragma pack(1)
+typedef struct {
+ UINT32 Signature;
+ UINT32 Length;
+ UINT8 Revision;
+ UINT8 Checksum;
+ UINT8 OemId[6];
+ UINT64 OemTableId;
+ UINT32 OemRevision;
+ UINT32 CreatorId;
+ UINT32 CreatorRevision;
+} EFI_ACPI_DESCRIPTION_HEADER;
+
+// edk2/MdePkg/Include/IndustryStandard/Acpi50.h
+// ACPI 5.0 Generic Address Space definition
+#pragma pack(1)
+typedef struct {
+ UINT8 AddressSpaceId;
+ UINT8 RegisterBitWidth;
+ UINT8 RegisterBitOffset;
+ UINT8 AccessSize;
+ UINT64 Address;
+} EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE;
+
+// edk2/MdePkg/Include/IndustryStandard/Acpi50.h
+// Fixed ACPI Description Table Structure (FADT)
+#pragma pack(1)
+typedef struct {
+ EFI_ACPI_DESCRIPTION_HEADER Header;
+ UINT32 FirmwareCtrl;
+ UINT32 Dsdt;
+ UINT8 Reserved0;
+ UINT8 PreferredPmProfile;
+ UINT16 SciInt;
+ UINT32 SmiCmd;
+ UINT8 AcpiEnable;
+ UINT8 AcpiDisable;
+ UINT8 S4BiosReq;
+ UINT8 PstateCnt;
+ UINT32 Pm1aEvtBlk;
+ UINT32 Pm1bEvtBlk;
+ UINT32 Pm1aCntBlk;
+ UINT32 Pm1bCntBlk;
+ UINT32 Pm2CntBlk;
+ UINT32 PmTmrBlk;
+ UINT32 Gpe0Blk;
+ UINT32 Gpe1Blk;
+ UINT8 Pm1EvtLen;
+ UINT8 Pm1CntLen;
+ UINT8 Pm2CntLen;
+ UINT8 PmTmrLen;
+ UINT8 Gpe0BlkLen;
+ UINT8 Gpe1BlkLen;
+ UINT8 Gpe1Base;
+ UINT8 CstCnt;
+ UINT16 PLvl2Lat;
+ UINT16 PLvl3Lat;
+ UINT16 FlushSize;
+ UINT16 FlushStride;
+ UINT8 DutyOffset;
+ UINT8 DutyWidth;
+ UINT8 DayAlrm;
+ UINT8 MonAlrm;
+ UINT8 Century;
+ UINT16 IaPcBootArch;
+ UINT8 Reserved1;
+ UINT32 Flags;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE ResetReg;
+ UINT8 ResetValue;
+ UINT8 Reserved2[3];
+ UINT64 XFirmwareCtrl;
+ UINT64 XDsdt;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE SleepControlReg;
+ EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE SleepStatusReg;
+} EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE;
+
+#pragma pack()
+#endif
\ No newline at end of file
diff --git a/ASPMEnabler/gnu-efi/ChangeLog b/ASPMEnabler/gnu-efi/ChangeLog
new file mode 100644
index 0000000..b30ba25
--- /dev/null
+++ b/ASPMEnabler/gnu-efi/ChangeLog
@@ -0,0 +1,1324 @@
+ Updated Changelog
+
+ Signed-off-by: Nigel Croxon
+
+commit 37d7bee82a627999563069b090866076e055a871
+Author: Nigel Croxon
+Date: Thu May 14 12:38:39 2015 -0400
+
+ Added some missing error code descriptions
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit dae0b4b0b0d522caecf09123db2cf0250c37a169
+Author: Nigel Croxon
+Date: Thu May 14 12:20:51 2015 -0400
+
+ Turns out we actually need setjmp in one of gnu-efi's prominent
+ users, and it seems to make more sense to put it here than in
+ the application.
+
+ All of these are derived from the Tiano code, but I re-wrote the
+ x86_64 one because we use the ELF psABI calling conventions instead
+ of the MS ABI calling conventions. Which is to say you probably
+ shouldn't setjmp()/longjmp() between functions with EFIAPI (aka
+ __attribute__((ms_abi))) and those without.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit b5a8e93cec396381a6d2beee022abbf50100f2fd
+Author: Nigel Croxon
+Date: Fri Apr 10 08:49:50 2015 -0400
+
+ Bump version to 3.0.2
+
+ Signed-off-by: Nigel Croxon
+
+commit 01c9f11ed5ad55661e8fc8a3eee35c578564754b
+Author: Nigel Croxon
+Date: Fri Apr 10 08:46:40 2015 -0400
+
+ Fix ARM32 and AARCH64 builds
+ Without these added into SUBDIRS the initplat.c compilation will fail.
+
+ Signed-off-by: Koen Kooi
+ Acked-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit dada63fd3de148c6f8551d253355c113547cd5a0
+Author: Nigel Croxon
+Date: Mon Mar 23 10:41:43 2015 -0400
+
+ [PATCH] _SPrint: fix NULL termination
+
+ maxlen is the maximum string length not the buffer size.
+
+ Signed-off-by: Jeremy Compostella
+ Signed-off-by: Nigel Croxon
+
+commit ce7098fb52e5fd4d16038964d029eb759f28eaaf
+Author: Nigel Croxon
+Date: Thu Feb 19 11:22:45 2015 -0500
+
+ Enable out-of-tree building
+
+ This patch enables building gnu-efi outside of the source tree.
+ That in turn enables building for multiple architectures in parallel.
+
+ The build directory is controlled by the OBJDIR make variable. It
+ defaults to the value of ARCH, and can be overridden from the command
+ line.
+
+ This patch also cleans up some doubled slashes between INSTALLROOT
+ and PREFIX.
+
+ Signed-off-by: Jonathan Boeing
+ Signed-off-by: Nigel Croxon
+
+commit f64cef26270bfbe04f038da33f95ae3f14c071bc
+Author: Nigel Croxon
+Date: Tue Jan 6 15:49:50 2015 -0500
+
+ Since we're keeping this in git, it'd be nice not to see a bunch
+ of make targets in 'status'
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit 322efb6b21ed0a5e42e8f124fd22bf0f8dbf01ae
+Author: Nigel Croxon
+Date: Mon Jan 5 13:20:43 2015 -0500
+
+ version number changed from VERSION = 3.0u to VERSION = 3.0.1
+
+ Signed-off-by: Nigel Croxon
+
+commit 09027207f7c18af6caa45a744fc15c90b2a829db
+Author: Nigel Croxon
+Date: Mon Jan 5 13:13:22 2015 -0500
+
+ From: Pete Batard
+ Date: Wed, 10 Dec 2014 21:08:34 +0000
+ Subject: [PATCH] fixes for MSVC compilation
+
+ These fixes are needed to address the following error and warnings when compiling the library part
+ using Visual Studio 2013 Community Edition (as in https://github.com/pbatard/uefi-simple):
+ * "lib\x86_64\math.c(49): error C4235: nonstandard extension used : '_asm' keyword not supported
+ on this architecture"
+ * "lib\print.c(98): error C2059: syntax error : '('" due to placement of EFIAPI macro
+ * "lib\cmdline.c(94): warning C4090: 'function' : different 'const' qualifiers"
+ * "lib\smbios.c(25): warning C4068: unknown pragma"
+ * Also update macro definitions in "inc\\efibind.h" for MSVC
+
+ Signed-off-by: Pete Batard
+ Signed-off-by: Nigel Croxon
+
+commit 15805ff38b83a72c2c7c96a24bd642ee1176d819
+Author: Nigel Croxon
+Date: Tue Nov 25 14:23:21 2014 -0500
+
+ Add README.git file. Instructions on how to archive.
+
+ Signed-off-by: Nigel Croxon
+
+commit b868aa75669723b7e32f46524822e17e388fe2ba
+Author: Nigel Croxon
+Date: Tue Nov 25 13:26:45 2014 -0500
+
+ This patch makes generating releases from git a very simple process; you
+ simply edit the makefile's "VERSION" line to the new version, commit
+ that as its own commit, and do: "make test-archive". That'll make a
+ file in the current directory gnu-efi-$VERSION.tar.bz2 , with its top
+ level directory gnu-efi-$VERSION/ and the source tree under that.
+
+ Once you've tested that and you're sure it's what you want to release,
+ you do "make archive", which will tag a release in git and generate a
+ final tarball from it. You then push to the archive, being sure to
+ include the tag:
+
+ git push origin master:master --tags
+
+ And upload the archive wherever it's supposed to go.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit 530d68ba191850edafc6da22cb2df55bec0c5fa5
+Author: Nigel Croxon
+Date: Tue Nov 25 10:09:50 2014 -0500
+
+ The gnu-efi-3.0 toplevel subdirectory is really annoying. Kill it.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit 00bd66ef46b59a1623a293491a8b2c65a6d61975
+Author: Nigel Croxon
+Date: Mon Nov 24 14:33:09 2014 -0500
+
+ FreeBSD's binutils doesn't have "-j " support, so we need to
+ include non-globbed versions of .rel/.rela individually.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Bill Paul
+ Signed-off-by: Nigel Croxon
+
+commit 56eb64d3c06854b9b68d61e3c2d3bdf6ff2a9853
+Author: Nigel Croxon
+Date: Mon Nov 24 14:27:14 2014 -0500
+
+ Right now we wind up trying to build gnuefi/.o from a source file that's
+ an empty string. This is caused by the macros trying to generate
+ install rules, but there's no real reason to have all that anyway. So
+ just have some static install rules that are simpler and don't generate
+ stuff on the fly.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit 65e28a90a7be9e990b360286cea31e63319217fb
+Author: Nigel Croxon
+Date: Mon Nov 24 12:17:45 2014 -0500
+
+ Add current OsIndications values.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+Date: Mon Nov 24 12:15:34 2014 -0500
+
+ Add the QueryVariableInfo() API.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit 60efb7a2939b65a01e95aa8b535f1b756d984fba
+Author: Nigel Croxon
+Date: Mon Nov 24 12:13:23 2014 -0500
+
+ Add the capsule API.
+
+ Signed-off-by: Peter Jones
+ Signed-off-by: Nigel Croxon
+
+commit ef08b655d1f8dfbd9a0f3a86d5685b24695ef12f
+Author: Nigel Croxon
+Date: Mon Nov 17 16:05:42 2014 -0500
+
+ Fix Table Header misspelling. Change from EFI_TABLE_HEARDER to
+ EFI_TABLE_HEADER.
+
+ Signed-Off-By: Nigel Croxon
+
+commit 370cce41da3fff41ba38feb1262002aff2d85ffd
+Author: Nigel Croxon
+Date: Thu Nov 6 14:41:40 2014 -0500
+
+ If CROSS_COMPILE is set, ignore the ARCH value supplied on the
+ command line and use the target machine of the cross compiler.
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit d32fb845433ff6fb38e81ae0d9273454e7d18197
+Author: Nigel Croxon
+Date: Thu Nov 6 14:30:03 2014 -0500
+
+ Allow reuse of this file beyond GPL compatible software,
+ update the license of crt0-efi-aarch64.S to dual 2-clause BSD/GPLv2+.
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit aa1df67f48f3c035fa8891e1bb311ec21500d6d9
+Author: Nigel Croxon
+Date: Tue Oct 21 11:08:47 2014 -0400
+
+ Add the missing Variable attributes
+
+ From: Jeremy Compostella
+ Date: Mon, 13 Oct 2014 17:50:50 +0200
+ Subject: [PATCH] Add the missing Variable attributes
+
+ Signed-off-by: Jeremy Compostella
+ Signed-off-by: Nigel Croxon
+
+commit 5706dff09364cbbec37f47e2fe1350747f631d74
+Author: Nigel Croxon
+Date: Tue Aug 26 10:54:22 2014 -0400
+
+ From: David Decotigny
+ Date: Mon, 25 Aug 2014 13:28:49 -0700
+ Subject: [PATCH] document that binutils >= 2.24 needed.
+
+ commit ac983081 "Add support for non-PE/COFF capable objcopy" depends
+ on objcopy accepting wildcards for the section names. This feature is
+ available only with binutils >= 2.24 (binutils 2e62b7218 "PR
+ binutils/15033").
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 6c10e225bc759d69af520a551b9d7b37f3ae0a82
+Author: Nigel Croxon
+Date: Mon Aug 25 08:51:23 2014 -0400
+
+ From: David Decotigny
+ Date: Thu, 31 Jul 2014 18:19:16 -0700
+ Subject: [PATCH 5/5] allow to use external stdarg.h
+
+ in cases we use gnu-efi together with other libs that define stdarg.h,
+ break the tie by telling gnu-efi to use that stdarg.h .
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 16d65c0669258c8044e3549b2d9eb0cf0eb08f5a
+Author: Nigel Croxon
+Date: Tue Aug 19 12:07:00 2014 -0400
+
+ From: Ard Biesheuvel
+ Date: Mon, 11 Aug 2014 15:39:16 +0200
+ Subject: [PATCH] Add support for 32-bit ARM
+
+ This adds support for 32-bit ARM using an approach similar to the one used for
+ 64-bit ARM (AArch64), i.e., it does not rely on an objcopy that is aware of EFI
+ or PE/COFF, but lays out the entire PE/COFF header using the assembler.
+
+ In the 32-bit ARM case (which does not have a division instruction), some code
+ has been imported from the Linux kernel to perform the division operations in
+ software.
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit b28143d4fb4f6969dc0c87c853d3527d889951d7
+Author: Nigel Croxon
+Date: Fri Aug 8 15:54:19 2014 -0400
+
+ Updated Changelog
+
+ Signed-off-by: Nigel Croxon
+
+commit 1525190354f5faac33015e17c9ba7ea2bb2be35b
+Author: Nigel Croxon
+Date: Fri Aug 8 15:35:09 2014 -0400
+
+ From: Ard Biesheuvel
+ Date: Fri, 8 Aug 2014 18:16:59 +0200
+ Subject: [PATCH 4/4] Add support for 64-bit ARM (AArch64)
+
+ This adds support for 64-bit ARM (AArch64) environments. Since there is no
+ EFI-capable objcopy for this platform, this contains a manually laid out
+ PE/COFF header using the assembler.
+
+ In addition, it includes the relocation bits, some string functions that GCC
+ assumes are available and other glue to hold it all together.
+
+ This can be cross built using
+
+ make CROSS_COMPILE=aarch64-linux-gnu-
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit ac983081525f9483941517dfb53cf8d0163d49c0
+Author: Nigel Croxon
+Date: Fri Aug 8 15:32:26 2014 -0400
+
+ From: Ard Biesheuvel
+ Date: Fri, 8 Aug 2014 17:53:42 +0200
+ Subject: [PATCH 3/4] Add support for non-PE/COFF capable objcopy
+
+ Introduce HAVE_EFI_OBJCOPY and set it if objcopy for $ARCH support PE/COOF and
+ EFI, i.e., it supports --target efi-[app|bsdrv|rtdrv] options. Use it to decide
+ whether to invoke objcopy with those options or use the linker to populate the
+ PE/COFF header.
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit fb063f0f65543b3e2bf55a39d5aa70b17a98c65e
+Author: Nigel Croxon
+Date: Fri Aug 8 15:26:38 2014 -0400
+
+ From: Ard Biesheuvel
+ Date: Fri, 8 Aug 2014 17:37:36 +0200
+ Subject: [PATCH 2/4] Add support for cross compilation
+
+ This changes the logic that defines ARCH (and HOSTARCH) to take CROSS_COMPILE
+ into account. Also, $prefix is not assigned, so that the default will be what
+ is on the path rather than hardcoded in /usr/bin.
+
+ This results in the build doing the right thing if CROSS_COMPILE is set in the
+ environment and no ARCH or prefix options are passed to make, aligning it with
+ most other CROSS_COMPILE compatible projects.
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit 7a98d83fc32de6cf0b1ce5e12dfe80690f29fb3f
+Author: Nigel Croxon
+Date: Fri Aug 8 15:25:03 2014 -0400
+
+ From: Ard Biesheuvel
+ Date: Fri, 8 Aug 2014 16:50:45 +0200
+ Subject: [PATCH 1/4] Restrict GNU_EFI_USE_MS_ABI GCC version test to x86_64
+
+ The version test only applies to x86_64 builds, so no need to do it
+ for other archs.
+
+ Signed-off-by: Ard Biesheuvel
+ Signed-off-by: Nigel Croxon
+
+commit f42974dd9a7d0ea690d293f88396abd289f0014c
+Author: Nigel Croxon
+Date: Fri Aug 8 15:21:16 2014 -0400
+
+ From: David Decotigny
+ Date: Thu, 31 Jul 2014 13:42:23 -0700
+ Subject: [PATCH 4/4] Use Shell protocols to retrieve argc/argv, when
+ available.
+
+ New header files efishellintf.h efishellparm.h are coming from EDK
+ II, initial location and license at top of files. Only modifications:
+ - efishellintf.h: s/EFI_FILE_PROTOCOL/EFI_FILE/ + expand BITx macros (1<
+ Signed-off-by: Nigel Croxon
+
+commit a61fa058e9a87f966de3342b8c95fdbdcb007827
+Author: Nigel Croxon
+Date: Fri Aug 8 15:17:32 2014 -0400
+
+ From: David Decotigny
+ Date: Thu, 31 Jul 2014 13:41:52 -0700
+ Subject: [PATCH 3/4] document format of LoadedImage::LoadOptions data
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 2f440200c855154f929d28971b2fd702ea7a207a
+Author: Nigel Croxon
+Date: Fri Aug 8 15:15:59 2014 -0400
+
+ From: David Decotigny
+ Date: Thu, 31 Jul 2014 13:39:37 -0700
+ Subject: [PATCH 2/4] Use OpenProtocol instead of HandleProtocol
+
+ UEFI 2.x recommends OpenProtocol instead of HandleProtocol.
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 7f173da1e54f8cfe4c7c7c091ab6585af07b25ce
+Author: Nigel Croxon
+Date: Fri Aug 8 15:14:26 2014 -0400
+
+ From: David Decotigny
+ Date: Thu, 31 Jul 2014 13:30:07 -0700
+ Subject: [PATCH 1/4] move cmdline parser to its own file
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 0ad8fb87cbc59f58675b18253ad802ba51f1d132
+Author: Nigel Croxon
+Date: Wed Jul 30 15:06:36 2014 -0400
+
+ From: David Decotigny
+ Date: Mon, 28 Jul 2014 21:28:50 -0700
+ Subject: [PATCH 3/3] make cmdline parsing a 1st class citizen
+
+ Refactor ParseCmdline and apps/Alloc+FreePages to factorize
+ boilerplate and move the new parser to the main API.
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit ff7ec964f2c0de0cfc4b52cfdd356003450f28bf
+Author: Nigel Croxon
+Date: Wed Jul 30 15:05:28 2014 -0400
+
+ From: David Decotigny
+ Date: Mon, 28 Jul 2014 21:00:52 -0700
+ Subject: [PATCH 2/3] Avoid buffer overflow while parsing the cmdline args
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 8d86ee202a9bb553375f56ae1d2944818112b68b
+Author: Nigel Croxon
+Date: Wed Jul 30 15:04:44 2014 -0400
+
+ From: David Decotigny
+ Date: Mon, 28 Jul 2014 21:01:35 -0700
+ Subject: [PATCH 1/3] Fix cmdline parser
+
+ The cmdline parser would not return the correct number of args, would
+ allocate one too many. Also make it clear from the declaration that we
+ expect a suitably lare argv.
+
+ Signed-off-by: David Decotigny
+ Signed-off-by: Nigel Croxon
+
+commit 1ec094bfaf46a610a740dadc0150bf457dd72345
+Author: Nigel Croxon
+Date: Wed Jul 23 09:54:25 2014 -0400
+
+ From: Julian Klode
+ Date: Mon, 21 Jul 2014 14:26:23 -0400
+ Subject: [PATCH] inc/efistdarg.h: Use gcc builtins instead of stdarg.h or broken stubs
+
+ We cannot use stdarg.h, as this breaks applications compiling
+ with -nostdinc because those will not find the header.
+ We also cannot use the stubs, as they just produce broken code,
+ as seen in the gummiboot 45-1 Debian release.
+
+ Signed-off-by: Julian Klode
+ Signed-off-by: Nigel Croxon
+
+commit 6caab22f23434f41f42cfe7591d9a7ae66de9f0a
+Author: Nigel Croxon
+Date: Thu Jun 19 10:39:23 2014 -0400
+
+ From: Laszlo Ersek
+ Date: Mon, 2 Jun 2014 23:26:48 +0200
+ Subject: [PATCH] always observe EFIAPI calling convention when calling
+ STO.SetAttribute
+
+ We have to consider the following cases wrt. the PRINT_STATE.Output and
+ PRINT_STATE.SetAttr EFIAPI function pointers, especially when building for
+ x86_64 with gcc:
+
+ (1) The compiler is new enough, and EFIAPI actually ensures the Microsoft
+ calling convention. In this case everything happens to work fine even
+ if we forget uefi_call_wrapper(), because the wrapper would expand to
+ a normal C function call anyway.
+
+ (2) Otherwise (ie. gcc is old), EFIAPI expands to nothing, and we must
+ take into account the called function's origin:
+
+ (2a) If the callee that is declared EFIAPI is *defined* inside gnu-efi,
+ then EFIAPI means nothing for the callee too, so caller and callee
+ only understand each other if the caller intentionally omits
+ uefi_call_wrapper().
+
+ (2b) If the callee that is declared EFIAPI is defined by the platform
+ UEFI implementation, then the caller *must* use
+ uefi_call_wrapper().
+
+ The PRINT_STATE.Output EFIAPI function pointer is dereferenced correctly:
+ the PFLUSH() distinguishes cases (2a) from (2b) by using IsLocalPrint().
+
+ However use of the PRINT_STATE.SetAttr EFIAPI function pointer is not
+ always correct:
+
+ - The PSETATTR() helper function always relies on the wrapper (case (2b)).
+ This is correct, because PRINT_STATE.SetAttr always points to a
+ platform-provided function.
+
+ - The DbgPrint() function contains two incorrect calls: they mistakenly
+ assume case (2a) (or case (1)), even though the pointer always points to
+ a platform function, implying (2b). (The error is masked in case (1).)
+ Fix them.
+
+ Signed-off-by: Laszlo Ersek
+ Signed-off-by: Nigel Croxon
+
+commit ecfd1ded9a799c3a572d4eb7fbb52582fe4d3390
+Author: Nigel Croxon
+Date: Tue Jun 10 12:59:09 2014 -0400
+
+ Add VPoolPrint Function
+
+ Equivalent to PoolPrint but using a va_list parameter
+
+ Signed-off-by: Sylvain Chouleur
+ Signed-off-by: Nigel Croxon
+
+commit f16d93f3b9e314336a387a3885c7fd2f176c41d3
+Author: Nigel Croxon
+Date: Fri May 16 11:33:51 2014 -0400
+
+ Revert "The prototype of DbgPrint() is incorrect, at the end of "inc/efidebug.h"."
+ A problem was found compiling on GCC 4.8.
+
+ This reverts commit 644898eabc06c8efaa3aa54f84cdd468960a2f6c.
+
+commit 644898eabc06c8efaa3aa54f84cdd468960a2f6c
+Author: Nigel Croxon
+Date: Wed May 14 09:09:47 2014 -0400
+
+ The prototype of DbgPrint() is incorrect, at the end of "inc/efidebug.h".
+ Consequently, when your program calls DbgPrint() via the DEBUG() macro,
+ it fails to set up the stack correctly (it does not pass the arguments
+ through the ellipsis (...) according to the EFIAPI calling convention).
+ However, va_start() inside DbgPrint() *assumes* that stack.
+
+ Signed-off-by: Laszlo Ersek
+ Signed-off-by: Nigel Croxon
+
+commit 8921ba2fc5f6163bdad3b5902c5d9d638415dde0
+Author: Nigel Croxon
+Date: Mon Apr 14 18:49:23 2014 -0400
+
+ Cleaned up compile warnings.
+
+ Signed-off-by: Nigel Croxon
+
+commit 42cca551dbf1c0be9e02e8d3d3c417ce35749638
+Author: Nigel Croxon
+Date: Mon Apr 14 14:04:11 2014 -0400
+
+ Module lib/ParseCmdLine.c has errors, it incorrectly mixes "char" and "CHAR16"
+ and uses a pointer to argv[] like it's argv[]. The compiler only issues
+ warnings though. Here is a patch to remove compiler warnings and make the
+ code behave.
+
+ Signed-off-by: Bernard Burette
+ Signed-off-by: Nigel Croxon
+
+commit 4e8460f1aedd2724de876be5b154eb5752bfada5
+Author: Nigel Croxon
+Date: Mon Apr 14 13:53:03 2014 -0400
+
+ Here is a very small patch to remove a compiler warning when processing lib/smbios.c.
+
+ Signed-off-by: Bernard Burette
+ Signed-off-by: Nigel Croxon
+
+commit 6a0875ca2fcb67e7d1a1e2d15f3bcc645329dc75
+Author: Nigel Croxon
+Date: Mon Apr 14 13:45:16 2014 -0400
+
+ Here is a very small patch to remove compiler warning in function
+ "LibLocateHandleByDiskSignature()" because the "Start" variable is
+ give a value which is not used.
+
+ Signed-off-by: Bernard Burette
+ Signed-off-by: Nigel Croxon
+
+commit d5f35dfb8008ba65bcc641559accd9bc13386ef9
+Author: Nigel Croxon
+Date: Mon Apr 14 13:40:29 2014 -0400
+
+ Here is a very small patch to remove *~ files in include diretory.
+
+ Signed-off-by: Bernard Burette
+ Signed-off-by: Nigel Croxon
+
+commit 1a04669a7bb022984c9b54a0f73d7d67a2540fb7
+Author: Nigel Croxon
+Date: Mon Apr 14 12:45:57 2014 -0400
+
+ Here is a patch for "DevicePathToStr()" to display device path according to UEFI 2 specification.
+ The path is in the two files inc/efidevp.h and lib/dpath.c.
+
+ It also add the Sata device path and removes the "/?" path for unknown device paths.
+
+ Signed-off-by: Bernard Burette
+ Signed-off-by: Nigel Croxon
+
+commit 3c62e78556aea01e9798380cd46794c6ca09d4bd
+Author: Nigel Croxon
+Date: Tue Apr 1 10:26:44 2014 -0400
+
+ Removed GPL code setjmp_ia32.S, setjmp_ia64.S, setjmp_x86_64.S
+ Not used anymore.
+
+ Signed-off-by: Nigel Croxon
+
+commit f9baa4f622cf34576d73e00d4a774a31f0f81fd7
+Author: Nigel Croxon
+Date: Mon Mar 31 08:37:56 2014 -0400
+
+ Remove incumbent GPL 'debian' subdiretory.
+ Update ChangeLog
+
+ Signed-off-by: Nigel Croxon
+
+
+Changelog format change from here and above to 'git log' style.
+
+2014-04-01 Nigel Croxon
+
+ Removed GPL code setjmp_ia32.S, setjmp_ia64.S, setjmp_x86_64.S
+ Not used anymore.
+
+ Signed-off-by: Nigel Croxon
+
+2014-03-17 Nigel Croxon
+
+ Add support for the simple pointer and absolute pointer protocols
+
+ Signed-off-by: John Cronin
+ Signed-off-by: Nigel Croxon
+
+2014-03-14 Nigel Croxon
+
+ Trying to recurse into subdirectories of object files may lead
+ to an error if the directory doesn't exist. Even when cleaning.
+
+ Signed-off-by: Sylvain Gault
+ Signed-off-by: Nigel Croxon
+
+2014-03-14 Nigel Croxon
+
+ Make install used to copy files unconditionnally to their
+ destination. However, if the destination is used by another
+ Makefile, it will always see modified files. "install" target
+ now only updates the files when they need to.
+
+ Signed-off-by: Sylvain Gault
+ Signed-off-by: Nigel Croxon
+
+2014-02-13 Nigel Croxon
+
+ Patch GNU-EFI to remove the ELILO code
+
+ Signed-off-by: Jerry Hoemann
+ Signed-off-by: Nigel Croxon
+
+2014-02-13 Nigel Croxon
+
+ Initialize Status before calling GrowBuffer()
+ Status must be initialized before calling GrowBuffer() as it may
+ otherwise be uninitialized or set to EFI_BUFFER_TOO_SMALL by
+ other functions.
+
+ Signed-off-by: Gene Cumm
+ Signed-off-by: Nigel Croxon
+
+2014-01-23 Nigel Croxon
+
+ These changes allow manually overridden SRCDIR (current source
+ directory) and TOPDIR (top of source tree) to separate the
+ build directory from the source tree.
+
+ Signed-off-by: Gene Cumm
+ Signed-off-by: Nigel Croxon
+
+2014-01-16 Nigel Croxon
+ compilation: fix uninitialized variables warning
+
+ Signed-off-by: Jeremy Compostella
+ Signed-off-by: Nigel Croxon
+
+2014-01-13 Nigel Croxon
+ Implement VSPrint function, prints a formatted unicode string to a buffer.
+
+ Signed-off-by: Jeremy Compostella
+ Signed-off-by: Nigel Croxon
+
+2014-01-10 Nigel Croxon
+ Created lib/argify.c and inc/argify.h containing the function argify.
+ It contains verbatim copy of the comment at beginning of file from
+ elilo.
+ There was no COPYING file in the elilo source that the comment refers to.
+
+ Signed-off-by: Jerry Hoemann
+ Signed-off-by: Nigel Croxon
+
+2014-01-08 Nigel Croxon
+ The information needed is not really the host architecture as given by
+ the kernel arch. The information actually needed is the default target
+ of gcc.
+
+ Signed-off-by: Sylvain Gault
+ Signed-off-by: Nigel Croxon
+
+2013-10-11 Nigel Croxon
+ Added support for SetVariable to store volatile variable,
+ and SetNVVariable to store non volatile variable.
+
+ Signed-off-by: Sylvain Chouleur
+ Signed-off-by: Nigel Croxon
+
+2013-10-07 Nigel Croxon
+
+ Atoi needs to have consistent declaration/definition.
+
+ Signed-off-by: Nigel Croxon
+
+2013-10-07 Nigel Croxon
+ if you have a function that takes const arguments and then
+ e.g. tries to copy StrCmp, gcc will give you warnings about those
+ calls, and the warnings are right. These clutter up other things
+ you might miss that you should be more concered about.
+
+ You could work around it through vigorous typecasting
+ to non-const types, but why should you have to? All of these
+ functions are regorously defined as not changing their input
+ - it is const, and should be marked as such.
+
+ Signed-off-by: Peter Jones
+
+2013-10-02 Nigel Croxon
+
+ Added two simple applications to allocate/free memory at EFI.
+ Used to test/find memory fragmentation issues linux.
+
+ Signed-off-by: Jerry Hoemann
+ Signed-off-by: Nigel Croxon
+
+2013-06-25 Nigel Croxon
+ Sample boot service driver.
+
+ Signed-off-by: David Decotigny
+
+2013-06-25 Nigel Croxon
+Date: Tue Jun 25 08:47:03 2013 -0400
+
+ Be more pedantic when linking, don't allow duplicate symbols,
+ abort upon first error. Also make sure linker script comes
+ last for apps.
+
+ Signed-off-by: David Decotigny
+
+2013-06-25 Nigel Croxon
+ Fix compilation on x86_64 without HAVE_USE_MS_ABI
+ make -C apps would fail on tcc.c because uefi_call_wrapper()
+ doesn't deal correctly with efi_callO-type invocation.
+
+ Signed-off-by: David Decotigny
+
+2013-06-12 Nigel Croxon
+ Fix typo when disabling mno-mmx
+
+ Signed-Off-By: Nigel Croxon
+
+2013-06-12 Nigel Croxon
+ Disable MMX and SSE
+
+ GCC 4.8.0 adds some optimizations that will use movups/movaps (and use
+ %xmm* registers) when they're faster, and of course that won't work at
+ all since UEFI firmwares aren't guaranteed to initialize the mmx/sse
+ instructions.
+
+ This will be even more annoying, since most UEFI firmwares don't
+ initialize the #DE or #UD trap handlers, and your backtrace will be a
+ random path through uninitialized memory, occasionally including
+ whatever address the IDT has for #UD, but also addresses like "0x4" and
+ "0x507" that you don't normally expect to see in your call path.
+
+ Signed-off-by: Peter Jones
+
+ Author: Nigel Croxon
+ Date: Wed Jun 12 10:29:40 2013 -0400
+
+ bug in make 3.82 expand to odd values
+
+ Some Makefiles tickle a bug in make 3.82 that cause libefi.a
+ and libgnuefi.a dependencies to expand to the odd values:
+
+ libefi.a: boxdraw.o) smbios.o) ...
+ libgnuefi.a(reloc_x86_64.o:
+
+ The patch replaces libgnuefi.a($(OBJS)) & libefi.a($(OBJS))
+ with an equivalent expansion that should work with any make
+ that supports $(patsubst).
+
+ Author: Nigel Croxon
+ Date: Wed Jun 12 09:53:01 2013 -0400
+
+ support .text.* sections on x86_64
+
+ Group them in .text. Also add vague linkage sections in .text.
+
+ Signed-off-by: David Decotigny
+
+ Author: Nigel Croxon
+ Date: Wed Jun 12 09:51:36 2013 -0400
+
+ cleanup and fix Make.defaults
+
+ Reorder variables in Make.defaults so that they are grouped by
+ functions. Also fixed ifeq (x,y) to have required syntax and make it
+ work for ARCH amd64->x86_64 renaming on BSD. Also provides top-level
+ Makefile with a "mkvars" target that displays effective variables.
+
+ Signed-off-by: David Decotigny
+
+ Author: Nigel Croxon
+ Date: Wed Jun 12 09:47:16 2013 -0400
+
+ automatically determine number of uefi_call_wrapper() args on x86_64
+
+ Instead of asking developers to explicitly pass the number of
+ parameters to the functions that get called, we determine them
+ automatically at preprocessing time. This should result in more
+ robust code.
+
+ Argument va_num is now ignored in x86_64 code, both with and
+ without HAVE_USE_MS_ABI.
+
+ Credits to the macro magic given in the comments.
+
+ Signed-off-by: David Decotigny
+
+ Author: Nigel Croxon
+ Date: Wed Jun 12 09:38:10 2013 -0400
+
+ fix parameter-passing corruption on x86_64 for >= 5 args
+
+ On x86_64 without HAVE_USE_MS_ABI support, uefi_call_wrapper() is a
+ variadic function. Parameters >=5 are copied to the stack and, when
+ passed small immediate values (and possibly other parameters), gcc
+ would emit a movl instruction before calling uefi_call_wrapper(). As a
+ result, only the lower 32b of these stack values are significant, the
+ upper 32b potentially contain garbage. Considering that
+ uefi_call_wrapper() assumes these arguments are clean 64b values
+ before calling the efi_callX() trampolines, the latter may be passed
+ garbage. This makes calling functions like
+ EFI_PCI_IO_PROTOCOL.Mem.Read()/Write() or BS->OpenProtocol() quite
+ unreliable.
+
+ This patch fixes this by turning uefi_call_wrapper() into a macro that
+ allows to expose the efi_callX() trampoline signatures to the callers,
+ so that gcc can know upfront that it has to pass all arguments to
+ efi_callX() as clean 64b values (eg. movq for immediates). The
+ _cast64_efi_callX macros are just here to avoid a gcc warning, they do
+ nothing otherwise.
+
+ Signed-off-by: David Decotigny
+
+ Author: noxorc
+ Date: Wed May 15 15:26:16 2013 -0400
+
+ - Removes the ElfW() macro usage from reloc_ia32.c and reloc_x86_64.c. These
+ macros only exist in link.h on Linux. On FreeBSD, the equivalent macro is
+ __ElfN(). But the macro usage is redundant. You're only going to compile the
+ ia32 file for IA32 binaries and the x86_64 file for X64 binaries. If you had
+ just one file built for both cases, then using the macro might make more
+ sense.
+
+ - Removes the "#define foo_t efi_foo_t" macros from reloc_ia32.c and
+ reloc_x86_64.c.
+
+ - Modifies inc/x86_64/efibind.h and inc/ia32/efibind.h to use the new
+ definitions for uint64_t, int64_t and int8_t. The 64-bit types are now defined
+ as:
+
+ typedef int __attribute__((__mode__(__DI__))) int64_t;
+ typedef unsigned int __attribute__((__mode__(__DI__))) uint64_t;
+
+ This removes the conflict between the host types dragged in by elf.h and the
+ type definitions in efibind.h that made the #define foo_t efi_foo_t" hack
+ necessary. Also, int8_t is now defined as signed char instead of just char
+ (assuming char == signed char is apparently not good enough).
+
+ - Also modifies these files to use stdint.h instead of stdint-gcc.h. It's
+ unclear if this is completely correct, but stdint-gcc.h is not present with
+ all GCC installs, and if you use -std=c99 or later you will force this case to
+ be hit. This also can break clang, which doesn't have a stdint-gcc.h at all.
+
+ - Removes the #include of from reloc_ia32.c and reloc_x86_64.c (since
+ with the previous changes it's not needed anymore).
+
+ - Places the #include of after #include /#include so
+ that we know the types will always be defined properly, in case you build on a
+ system where doesn't automatically pull in the right header files to
+ define all the needed types. (This actually happens on VxWorks. It's harmless
+ elsewhere. If you don't care about VxWorks, you can leave this out.)
+
+ - Modifies setjmp_ia32.S and setjmp_x86_64.S so to change "function" to
+ @function. The clang compiler doesn't like the former. Clang and GCC both like
+ the latter.
+
+ - Modifles Make.defaults so that if ARCH is detected as "amd64," it's changed
+ to "x86_64." It happens that uname -m on 64-bit FreeBSD reports the former
+ rather than the latter, which breaks the build. This may also be the case on
+ some other OSes. There's a way to force uname(1) to return x86_64 as the
+ machine type, but this way is a little friendlier.
+
+ - Creates gnuefi/elf_ia32_fbsd_efi.lds which specifies the object file type as
+ elf-ia32-freebsd. This is required for building on FreeBSD/i386, not just
+ FreeBSD/amd64.
+
+ - Modifies apps/Makefile to always use
+ $(TOPDIR)/gnuefi/elf_$(ARCH)_fbsd_efi.lds when building on either 32-bit or
+ 64-bit FreeBSD instead of just for the x86_64 case.
+
+ - Changed LDFLAGS in Make.defaults to include --no-undefined. This will cause
+ linking to fail if there are any unsatisfied symbols when creating foo.so
+ during any of the app builds, as opposed to just silently succeeding and
+ producing an unusable binary.
+
+ - Changed CFLAGS to include -ffreestanding -fno-stack-protector -fno-stack-
+ check. This prevents clang from inserting a call to memset() when compiling
+ the RtZeroMem() and RtSetMem() routines in lib/runtime/efirtlib.c and guards
+ against the native compiler in some Linux distros from adding in stack
+ checking code which relies on libc help that isn't present in the EFI runtime
+ environment.
+
+ This does the following:
+
+ - Cleans up the ia32 and x86-64 relocation code a bit (tries to break the
+ dependency between the host ELF headers and the EFI runtime environment)
+ - Avoids the dependency on stdint-gcc.h which may not always be available
+ - Allows GNU EFI to build out of the box on both FreeBSD/i386 and
+ FreeBSD/amd64
+ - Allows GNU EFI to build out of the box with either GCC or clang on
+ FreeBSD/i386 and FreeBSD/amd64 9.0 and later.
+ - Makes things a little easier to port to VxWorks
+ - Avoids creating un-runable binaries with unresolved symbol definitions
+ (which can be very confusing to debug)
+
+ Author: noxorc
+ Date: Wed May 8 16:29:45 2013 -0400
+
+ Add the definitions for TCP, UDP and IP, for both IPv4 and IPv6.
+
+
+2013-05-02 Nigel Croxon
+ * Chnage from Matt Fleming
+ - Preparation for adding the networking protocol definitions.
+ Add the service binding protocol.
+
+2013-02-21 Nigel Croxon
+ * Change from Peter Jones
+ - Previously we were incorrectly passing 3 functions with
+ the System V ABI to UEFI functions as EFI ABI functions.
+ Mark them as EFIAPI so the compiler will (in our new
+ GNU_EFI_USE_MS_ABI world) use the correct ABI.
+ - These need to be EFIAPI functions because in some cases
+ they call ST->ConOut->OutputString(), which is an EFIAPI
+ function. (Which means that previously in cases that
+ needed "cdecl", these didn't work right.)
+ - If the compiler version is new enough, and GNU_EFI_USE_MS_ABI
+ is defined, use the function attribute ms_abi on everything
+ defined with "EFIAPI". Such calls will no longer go through
+ efi_call*, and as such will be properly type-checked.
+ - Honor PREFIX and LIBDIR correctly when passed in during the build.
+ - Add machine type defines for i386, arm/thumb, ia64, ebc, x86_64.
+ - __STDC_VERSION__ never actually gets defined unless there's a
+ --std=... line. So we were accidentally defining lots of c99
+ types ourself. Since it's 2012, use --std=c11 where appropriate,
+ and if it's defined and we're using gcc, actually include gcc's
+ stdint definitions.
+ - New test application added: route80h. This is a test program
+ for PciIo. It routes ioport 80h on ICH10 to PCI. This is also
+ useful on a very limited set of hardware to enable use of
+ a port 80h debug card.
+ - New test applcation added: modelist. This lists video modes
+ the GOP driver is showing us.
+ * Change from Finnbarr Murphy
+ - https://sourceforge.net/p/gnu-efi/feature-requests/2/
+ Please add the following status codes to
+ EFI_INCOMPATIBLE_VERSION 25
+ EFI_SECURITY_VIOLATION 26
+ EFI_CRC_ERROR 27
+ EFI_END_OF_MEDIA 28
+ EFI_END_OF_FILE 31
+ EFI_INVALID_LANGUAGE 32
+ EFI_COMPROMISED_DATA 33
+ * Change from SourceForge.net Bug report
+ - https://sourceforge.net/p/gnu-efi/bugs/5/
+ BufferSize is a UINT64 *. The file shipped with GNU EFI is from
+ 1998 whereas the latest one is from 2004. I suspect Intel changed
+ the API in order handle 64-bit systems.
+ * Change from Felipe Contreras
+ - The current code seems to screw the stack at certain points.
+ Multiple people have complained that gummiboot hangs right away,
+ which is in part the fault of gummiboot, but happens only
+ because the stack gets screwed. x86_64 EFI already aligns the
+ stack, so there's no need for so much code to find a proper
+ alignment, we always need to shift by 8 anyway.
+ * Change from A. Steinmetz
+ - https://sourceforge.net/p/gnu-efi/patches/1/
+ The patch prepares for elilo to support uefi pxe over ipv6
+ See uefi spec 2.3.1 errata c page 963 as reference.
+ Verfied on an ASUS Sabertooth X79 BIOS Rev. 2104 system which
+ is able to do an IPv6 UEFI PXE boot.
+ * Release 3.0t
+
+2012-09-21 Nigel Croxon
+ * Change from Peter Jones
+ - EFI Block I/O protocol versions 2 and 3 provide more information
+ regarding physical disk layout, including alingment offset at the
+ beginning of the disk ("LowestAlignedLba"), logical block size
+ ("LogicalBlocksPerPhysicalBlock"), and optimal block transfer size
+ ("OptimalTransferLengthGranularity").
+ * Release 3.0r
+
+2012-04-30 Nigel Croxon
+ * Change from Matt Fleming
+ - The .reloc section is now 4096-byte boundary for x86_64.
+ Without this patch the .reloc section will not adhere to
+ the alignment value in the FileAlignment field (512 bytes by
+ default) of the PE/COFF header. This results in a signed
+ executable failing to boot in a secure boot environment.
+ * Release 3.0q
+
+2011-12-12 Nigel Croxon
+ * Changes from Fenghua Yu
+ - This fixes redefined types compilation failure for tcc.c on x86_64 machines.
+ * Release 3.0p
+
+2011-11-15 Nigel Croxon
+ * Changes from Darren Hart
+ - Conditionally assign toolchain binaries to allow overriding them.
+ - Force a dependency on lib for gnuefi.
+ * Release 3.0n
+
+2011-08-23 Nigel Croxon
+ * Changes from Peter Jones
+ - Add guarantee 16-byte stack alignment on x86_64.
+ - Add routine to make callbacks work.
+ - Add apps/tcc.efi to test calling convention.
+ * Release 3.0m
+
+2011-07-22 Nigel Croxon
+ * Changed Makefiles from GPL to BSD.
+ * Changes from Peter Jones
+ - Add ifdefs for ia64 to mirror ia32 and x86-64 so that
+ one can build with GCC.
+ - Add headers for PciIo.
+ - Add the UEFI 2.x bits for EFI_BOOT_SERVICES
+ - Add an ignore for .note.GNU-stack section in X86-64 linker maps.
+ * Release 3.0l
+
+2011-04-07 Nigel Croxon
+ * Change license from GPL to BSD.
+ * Release 3.0j
+
+2009-09-12 Julien BLACHE
+ * Add support for FreeBSD.
+ * Release 3.0i
+
+2009-09-11 Julien BLACHE
+ * Fix elf_ia32_efi.lds linker script to be compatible with the new
+ linker behaviour. Patch from the RedHat bugzilla 492183.
+
+2009-06-18 Nigel Croxon
+ * Release 3.0h
+
+2008-11-06 Nigel Croxon
+ * Fix to not having any relocations at all.
+
+2008-09-18 Nigel Croxon