[Yellowstone] Move yellowstone yunq to namespace "yellowstone"

This commit is contained in:
Drew Galbraith 2023-11-30 08:50:43 -08:00
parent f1e09b2ae6
commit 6212aef336
40 changed files with 141 additions and 16 deletions

View file

@ -1,6 +1,6 @@
#include "framebuffer/framebuffer.h"
Framebuffer::Framebuffer(const FramebufferInfo& info)
Framebuffer::Framebuffer(const yellowstone::FramebufferInfo& info)
: fb_info_(info), cursor_pos_(0) {
uint64_t buff_size_bytes = fb_info_.height() * fb_info_.pitch();
fb_memory_ = mmth::OwnedMemoryRegion::DirectPhysical(fb_info_.address_phys(),

View file

@ -5,7 +5,7 @@
class Framebuffer {
public:
Framebuffer(const FramebufferInfo& info);
Framebuffer(const yellowstone::FramebufferInfo& info);
void DrawPixel(uint32_t row, uint32_t col, uint32_t pixel);
@ -17,7 +17,7 @@ class Framebuffer {
private:
// FIXME: Implement Yunq copy or move so we
// don't have to store a reference here.
const FramebufferInfo& fb_info_;
const yellowstone::FramebufferInfo& fb_info_;
mmth::OwnedMemoryRegion fb_memory_;
uint32_t* fb_;

View file

@ -9,6 +9,9 @@
#include "framebuffer/psf.h"
#include "terminal.h"
using yellowstone::FramebufferInfo;
using yellowstone::YellowstoneClient;
uint64_t main(uint64_t init_port) {
ParseInitPort(init_port);