cleanup: rename Graphics:Cursor => Graphics::Framebuffer

This commit is contained in:
2026-06-21 10:42:27 +02:00
parent 772eaee9f4
commit c92993a16a
12 changed files with 70 additions and 72 deletions
+10 -10
View File
@@ -9,7 +9,7 @@
#include <Sched/Scheduler.hpp>
#include <Memory/Paging.hpp>
#include <Memory/HHDM.hpp>
#include <Graphics/Cursor.hpp>
#include <Graphics/Framebuffer.hpp>
#include <Terminal/Terminal.hpp>
#include "Syscall.hpp"
@@ -20,9 +20,9 @@ namespace montauk::abi {
static void Sys_FbInfo(FbInfo* out) {
if (out == nullptr) return;
out->width = Graphics::Cursor::GetFramebufferWidth();
out->height = Graphics::Cursor::GetFramebufferHeight();
out->pitch = Graphics::Cursor::GetFramebufferPitch();
out->width = Graphics::Framebuffer::GetWidth();
out->height = Graphics::Framebuffer::GetHeight();
out->pitch = Graphics::Framebuffer::GetPitch();
out->bpp = 32;
out->userAddr = 0;
}
@@ -31,20 +31,20 @@ namespace montauk::abi {
auto* proc = Sched::GetCurrentProcessPtr();
if (proc == nullptr) return 0;
uint32_t* fbBase = Graphics::Cursor::GetFramebufferBase();
uint32_t* fbBase = Graphics::Framebuffer::GetBase();
if (fbBase == nullptr) return 0;
uint64_t fbPhys = Memory::SubHHDM((uint64_t)fbBase);
uint64_t fbSize = Graphics::Cursor::GetFramebufferHeight()
* Graphics::Cursor::GetFramebufferPitch();
uint64_t fbSize = Graphics::Framebuffer::GetHeight()
* Graphics::Framebuffer::GetPitch();
uint64_t numPages = (fbSize + 0xFFF) / 0x1000;
Kt::KernelLogStream(Kt::INFO, "FbMap") << "fbPhys=" << kcp::hex << fbPhys
<< " size=" << kcp::dec << fbSize
<< " pages=" << numPages
<< " (" << Graphics::Cursor::GetFramebufferWidth()
<< "x" << Graphics::Cursor::GetFramebufferHeight()
<< " pitch=" << Graphics::Cursor::GetFramebufferPitch() << ")";
<< " (" << Graphics::Framebuffer::GetWidth()
<< "x" << Graphics::Framebuffer::GetHeight()
<< " pitch=" << Graphics::Framebuffer::GetPitch() << ")";
// Map at a fixed user VA
constexpr uint64_t userVa = 0x50000000ULL;