summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--dev/ZBA/Sources/Thread.cxx17
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index c0f62932..670fc10b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,6 +14,8 @@ qtcsettings.cmake
*.exec
*.rom
+*.sigg
+
NvVars
x86_64/
diff --git a/dev/ZBA/Sources/Thread.cxx b/dev/ZBA/Sources/Thread.cxx
index 7362e484..58937213 100644
--- a/dev/ZBA/Sources/Thread.cxx
+++ b/dev/ZBA/Sources/Thread.cxx
@@ -19,10 +19,27 @@ EXTERN_C{
#include <string.h>
}
+// External boot services record.
EXTERN EfiBootServices* BS;
namespace Boot
{
+ namespace Detail
+ {
+ /// @brief Instablle Secure Driver record.
+ struct SIGNED_DRIVER_HEADER final
+ {
+ // doesn't change.
+ char d_binary_magic[5];
+ int d_binary_version;
+ // can change.
+ char d_binary_name[4096];
+ UInt64 d_binary_checksum;
+ UInt64 d_binary_size;
+ char d_binary_padding[512];
+ };
+ } // namespace Detail
+
BThread::BThread(VoidPtr blob)
: fBlob(blob), fStartAddress(nullptr)
{