1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

Add a simple IDEDiskDevice class that implements DiskDevice from VFS.

This commit is contained in:
Andreas Kling 2018-10-16 14:17:43 +02:00
parent 8293a0ff36
commit 12e515735b
6 changed files with 88 additions and 11 deletions

8
Kernel/kassert.h Normal file
View file

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