Skip to content

Commit

Permalink
servers: provide frame buffer physical address
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 30, 2024
1 parent 5bc0538 commit f36c1ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/include/kernel/servers.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ typedef struct {
typedef struct {
MessageHeader header;
uint64_t buffer; // pointer
uint64_t bufferPhysical;
uint16_t w, h, pitch, bpp;
} FramebufferResponse;

Expand Down
1 change: 1 addition & 0 deletions src/servers/general.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ void getFramebuffer(Thread *t, int sd, const MessageHeader *req, void *res) {
schedRelease();

response->buffer = base;
response->bufferPhysical = phys;
response->w = ttyStatus.w;
response->h = ttyStatus.h;
response->bpp = ttyStatus.bpp;
Expand Down

0 comments on commit f36c1ee

Please sign in to comment.