Semaphores v0.1

This commit is contained in:
wheremyfoodat 2022-11-17 22:14:56 +02:00
parent 3c55d88fab
commit 7b8cac8d43
6 changed files with 44 additions and 11 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <array>
#include "helpers.hpp"
#include <optional>
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
#include "services/apt.hpp"
@ -15,11 +16,16 @@
#include "services/ndm.hpp"
#include "services/ptm.hpp"
// More circular dependencies!!
class Kernel;
class ServiceManager {
std::array<u32, 16>& regs;
Memory& mem;
Kernel& kernel;
std::optional<Handle> notificationSemaphore;
MAKE_LOG_FUNCTION(log, srvLogger)
APTService apt;