summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 21:56:18 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 21:56:18 +0200
commitb31d81cd939ed3e8bb5fade029b32876e71ed54c (patch)
tree42f9d6d974969a7a16ab4a188f3a515f7ec7df22 /dev
parent10dab767dba0ff4d0641222d771f990b09cd5a14 (diff)
[IMP] Add SIGG record, still working on AHCI support.
+ But adding this header so that I don't forget. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
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)
{