Debug, add memory print driver

This commit is contained in:
Loic Guegan 2021-04-29 08:49:41 +02:00
parent 067d6e340b
commit fde8a1ab65
17 changed files with 108 additions and 36 deletions

View file

@ -1,11 +1,11 @@
#include "stdio.hpp"
#include "drivers/vga_t.hpp"
#include "drivers/memtext.hpp"
#include "math.hpp"
#include "string.hpp"
void (*__putchar)(char)=vga_t_putchar;
void (*__putchar)(char)=memtext_putchar;
void printk(char *str,...) {
void printf(char *str,...) {
u64 rsi,rdx,rcx,r8,r9;
u64* rbp;
asm( "mov %%rsi, %0": "=a"(rsi));

View file

@ -1,6 +1,6 @@
#pragma once
#include "drivers/vga_t.hpp"
#include "core/types.hpp"
/// @brief Current active framebuffer driver
extern void (*__putchar)(char);
@ -8,7 +8,7 @@ extern void (*__putchar)(char);
/**
* Print a char* in the framebuffer
*/
extern "C" void printk(char *,...);
extern "C" void printf(char *,...);
/**
* Print a char*