From 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 12 Jul 2021 18:14:44 +0200 Subject: Renamed files to match presentation --- src/loader/inc/pnc.h | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/loader/inc/pnc.h (limited to 'src/loader/inc/pnc.h') diff --git a/src/loader/inc/pnc.h b/src/loader/inc/pnc.h deleted file mode 100644 index 73819c9..0000000 --- a/src/loader/inc/pnc.h +++ /dev/null @@ -1,24 +0,0 @@ -// MIT License, Copyright (c) 2021 Marvin Borner - -#ifndef PNC_H -#define PNC_H - -#include - -#define panic(reason) \ - { \ - log("%s:%d: %s: Panic: %s", __FILE__, __LINE__, __func__, (reason)); \ - while (1) \ - __asm__ volatile("cli\nhlt"); \ - } - -#define assert(exp) \ - { \ - if (!(exp)) \ - panic("Assertion '" #exp "' failed\n"); \ - } - -// This shouldn't return, therefore this declaration belongs here (kinda) -void jmp_kernel(void *kernel, int args, ...); - -#endif -- cgit v1.2.3