Merge pull request #272 from noumidev/CRO

Add CRO support
This commit is contained in:
wheremyfoodat 2023-09-13 19:35:46 +03:00 committed by GitHub
commit 2e7bc7c1f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1366 additions and 4 deletions

View file

@ -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);
};