[Teton] Get framebuffer info from yellowstone.

This commit is contained in:
Drew Galbraith 2023-11-15 16:41:51 -08:00
parent 0ced0032ff
commit 84d3caaba5
1 changed files with 8 additions and 0 deletions

View File

@ -1,11 +1,19 @@
#include <mammoth/debug.h> #include <mammoth/debug.h>
#include <mammoth/init.h> #include <mammoth/init.h>
#include <yellowstone/yellowstone.yunq.client.h>
uint64_t main(uint64_t init_port) { uint64_t main(uint64_t init_port) {
ParseInitPort(init_port); ParseInitPort(init_port);
dbgln("Teton Starting"); dbgln("Teton Starting");
// 1. Set up framebuffer. // 1. Set up framebuffer.
YellowstoneClient client(gInitEndpointCap);
FramebufferInfo framebuffer;
RET_ERR(client.GetFramebufferInfo({}, framebuffer));
dbgln("FB addr {x}, width {} , height {}", framebuffer.address_phys(),
framebuffer.width(), framebuffer.height());
// 2. Parse a font file. // 2. Parse a font file.