From d855c0a219a180497c2e50f9bc19bfce69b937a6 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Thu, 23 Jan 2025 00:24:57 +0000 Subject: it printfs with the efi interface --- boot/efi/system_table.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 boot/efi/system_table.h (limited to 'boot/efi/system_table.h') diff --git a/boot/efi/system_table.h b/boot/efi/system_table.h new file mode 100644 index 0000000..93e839d --- /dev/null +++ b/boot/efi/system_table.h @@ -0,0 +1,31 @@ +#pragma once + +#include "table.h" + +extern "C" +{ + struct efi_system_table + { + void *m_Value; + }; +} + +namespace Efi +{ + class SystemTable : private Table + { + char16_t *m_FirmwareVendor; + uint32_t m_FirmwareRevision; + Handle m_ConsoleInHandle; + void *m_ConIn; + Handle m_ConsoleOutHandle; + void *m_ConOut; + Handle m_StandardErrorHandle; + void *m_StdErr; + void *m_RuntimeServices; + void *m_BootServices; + size_t m_NumberOfTableEntries; + void *m_ConfigurationTable; + }; +} + -- cgit v1.3.1-1-g115d