From 6ed8a39c1bd3083297b41e981a2bf4bdbe2abd1f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 21 Nov 2024 08:50:57 +0100 Subject: IMP: Add UserProcessImage structure to hold the code/entrypoint of the process. IMP: Use IDLLObject instead of IPEFDLLObject. IMP: Refactor DeviceInterface to IDeviceObject. ADD: rt_jump_to_address when you want to use a custom stack. Signed-off-by: Amlal El Mahrouss --- dev/ZBAKit/BootKit/Thread.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev/ZBAKit/BootKit') diff --git a/dev/ZBAKit/BootKit/Thread.h b/dev/ZBAKit/BootKit/Thread.h index e7f4d4f1..e7c6763f 100644 --- a/dev/ZBAKit/BootKit/Thread.h +++ b/dev/ZBAKit/BootKit/Thread.h @@ -29,14 +29,16 @@ namespace Boot BThread& operator=(const BThread&) = default; BThread(const BThread&) = default; - void Start(HEL::HANDOVER_INFO_HEADER* handover); - const char* GetName(); + void Start(HEL::HANDOVER_INFO_HEADER* handover, BOOL is_own_stack); void SetName(const char* name); + const char* GetName(); bool IsValid(); private: Char fBlobName[255] = {"BootThread"}; VoidPtr fStartAddress{nullptr}; VoidPtr fBlob{nullptr}; + UInt8* fStack{nullptr}; + HEL::HANDOVER_INFO_HEADER* fHandover{nullptr}; }; } // namespace Boot -- cgit v1.2.3