License; WIP: PIC

This commit is contained in:
Karina
2025-12-27 17:54:34 +04:00
parent 18b3e9cbe7
commit 664bf2e869
40 changed files with 810 additions and 28 deletions
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef CONSOLE_H
#define CONSOLE_H
-1
View File
@@ -3,7 +3,6 @@
#include "types.h"
extern u8 font8x8_basic[128][8];
extern u8 font8x16[128][16];
#endif
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#pragma once
#ifndef GDT_H
#define GDT_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef IDT_H
#define IDT_H
#pragma once
+13 -1
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef IO_H
#define IO_H
@@ -20,6 +23,15 @@ static inline unsigned char inb(unsigned short port) {
return ret;
}
void io_wait();
// sending junk to 0x80 (unused) to skip few tacts
// not ideal i know
static inline void io_wait() {
outb(0x80, 0x0);
}
static inline void outb_wait(unsigned short port, unsigned char val) {
outb(port, val);
io_wait();
}
#endif
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef KFETCH_H
#define KFETCH_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#include "types.h"
#define MAX(a, b) ({ \
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef MEMORY_H
#define MEMORY_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#pragma once
#ifndef PANIC_H
#define PANIC_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef PIC_H
#define PIC_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef PMM_H
#define PMM_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef RAND_H
#define RAND_H
#include "types.h"
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef SERIAL_H
#define SERIAL_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef SHITGUI_H
#define SHITGUI_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef TYPES_H
#define TYPES_H
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef VMM_H
#define VMM_H