[ldr:ro] Add service skeleton

This commit is contained in:
wheremyfoodat 2023-03-18 20:08:45 +02:00
parent c77a2551ac
commit c24c4a9d83
7 changed files with 75 additions and 4 deletions
include/services

View file

@ -0,0 +1,20 @@
#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
class LDRService {
Handle handle = KernelHandles::LDR_RO;
Memory& mem;
MAKE_LOG_FUNCTION(log, ldrLogger)
// Service commands
void initialize(u32 messagePointer);
void loadCRR(u32 messagePointer);
public:
LDRService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};