use boot_ctx
This commit is contained in:
@@ -10,7 +10,7 @@ because this shitty implementation will be replaced one day by Flanterm
|
||||
#include <kernel.h>
|
||||
#include "term.h"
|
||||
|
||||
extern struct limine_framebuffer* framebuffer;
|
||||
extern struct boot_context boot_ctx;
|
||||
|
||||
// Importing the PSF object file
|
||||
extern unsigned char _binary_zap_light16_psf_start[];
|
||||
@@ -33,13 +33,16 @@ Cursor cursor = {0};
|
||||
|
||||
unsigned char* fb;
|
||||
|
||||
struct limine_framebuffer* framebuffer;
|
||||
|
||||
int term_init()
|
||||
{
|
||||
// Get framebuffer address from Limine struct
|
||||
|
||||
if (framebuffer)
|
||||
if (boot_ctx.fb)
|
||||
{
|
||||
fb = framebuffer->address;
|
||||
fb = boot_ctx.fb->address;
|
||||
framebuffer = boot_ctx.fb;
|
||||
DEBUG("terminal initialized");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user