PatchworkOS
Loading...
Searching...
No Matches
log_screen.c File Reference
#include <kernel/log/log_screen.h>
#include <kernel/drivers/com.h>
#include <kernel/log/glyphs.h>
#include <kernel/sync/lock.h>
#include <string.h>
#include <sys/math.h>

Go to the source code of this file.

Functions

static log_screen_line_tlog_screen_get_line (uint64_t y)
 
static void log_screen_invalidate (const log_screen_pos_t *pos)
 
static void log_screen_put (char chr)
 
static void log_screen_flush (void)
 
void log_screen_init (const boot_gop_t *bootGop)
 Initialize the screen logging.
 
static void log_screen_scroll (void)
 
static void log_screen_advance_cursor (char chr)
 
void log_screen_clear (void)
 Clear the screen.
 
uint64_t log_screen_get_width (void)
 Get screen width in characters.
 
uint64_t log_screen_get_height (void)
 Get screen height in characters.
 
void log_screen_write (const char *string, uint64_t length)
 Write a string to the screen.
 

Variables

static boot_gop_t gop = {0}
 
static log_screen_pos_t cursor = {0, 0}
 
static log_screen_t screen = {0}
 
static lock_t lock = LOCK_CREATE
 

Function Documentation

◆ log_screen_advance_cursor()

static void log_screen_advance_cursor ( char  chr)
static

◆ log_screen_flush()

◆ log_screen_get_line()

static log_screen_line_t * log_screen_get_line ( uint64_t  y)
static

◆ log_screen_invalidate()

static void log_screen_invalidate ( const log_screen_pos_t pos)
static

◆ log_screen_put()

◆ log_screen_scroll()

Variable Documentation

◆ cursor

◆ gop

boot_gop_t gop = {0}
static

◆ lock

lock_t lock = LOCK_CREATE
static

Definition at line 14 of file log_screen.c.

Referenced by log_screen_clear(), and log_screen_write().

◆ screen