summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/ZBA/Sources/Thread.cxx17
1 files changed, 17 insertions, 0 deletions
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)
{