Skip to content

Commit

Permalink
Merge pull request #272 from noumidev/CRO
Browse files Browse the repository at this point in the history
Add CRO support
  • Loading branch information
wheremyfoodat authored Sep 13, 2023
2 parents 981ade9 + f2171ff commit 2e7bc7c
Show file tree
Hide file tree
Showing 3 changed files with 1,366 additions and 4 deletions.
10 changes: 9 additions & 1 deletion include/services/ldr_ro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,25 @@
#include "memory.hpp"
#include "result/result.hpp"

class Kernel;

class LDRService {
Handle handle = KernelHandles::LDR_RO;
Memory& mem;
Kernel& kernel;
MAKE_LOG_FUNCTION(log, ldrLogger)

u32 loadedCRS;

// Service commands
void initialize(u32 messagePointer);
void linkCRO(u32 messagePointer);
void loadCRO(u32 messagePointer, bool isNew);
void loadCRR(u32 messagePointer);
void unloadCRO(u32 messagePointer);

public:
LDRService(Memory& mem) : mem(mem) {}
LDRService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};
Loading

0 comments on commit 2e7bc7c

Please sign in to comment.