Move kprintf to its own file. It has nothing to do with VGA anymore.

This commit is contained in:
Andreas Kling 2018-10-22 13:20:35 +02:00
commit bae59609e3
Notes: sideshowbarker 2024-07-19 18:45:21 +09:00
7 changed files with 188 additions and 187 deletions

View file

@ -1,6 +1,6 @@
#pragma once
#include "VGA.h"
#include "kprintf.h"
#define CRASH() do { asm volatile("ud2"); } while(0)
#define ASSERT(x) do { if (!(x)) { kprintf("ASSERTION FAILED: " #x "\n%s:%u in %s\n", __FILE__, __LINE__, __PRETTY_FUNCTION__); CRASH(); } } while(0)