[APT] Add shared font

This commit is contained in:
wheremyfoodat 2023-01-23 19:32:13 +02:00
parent c8a4c7d7fa
commit cad046d9a8
7 changed files with 262187 additions and 14 deletions

View file

@ -43,11 +43,11 @@ void Memory::reset() {
for (auto& e : sharedMemBlocks) {
e.mapped = false;
std::optional<u32> possiblePaddr = findPaddr(e.size);
std::optional<u32> possiblePaddr = findPaddr(e.size); // Find a physical FCRAM index to allocate for the shared memory block
if (!possiblePaddr.has_value()) Helpers::panic("Failed to find paddr for shared memory block");
e.paddr = possiblePaddr.value();
if (!reserveMemory(e.paddr, e.size)) {
if (!reserveMemory(e.paddr, e.size)) { // Actually reserve the memory
Helpers::panic("Failed to reserve memory for shared memory block");
}
}