Restructuration part 2: libc, programs

This commit is contained in:
xamidev
2024-07-19 17:40:53 +02:00
parent 014b0d2b50
commit b8faf9dd8e
24 changed files with 17 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#ifndef INCLUDE_IO_H
#define INCLUDE_IO_H
#include "stdint.h"
#include "../libc/stdint.h"
void outb(unsigned short port, unsigned char data);
unsigned char inb(unsigned short port);

View File

@@ -1,5 +1,5 @@
#include "system.h"
#include "stdio.h"
#include "../libc/stdio.h"
#include "idt.h"
extern void isr0();

View File

@@ -1,5 +1,5 @@
#include "io.h"
#include "stdio.h"
#include "../libc/stdio.h"
#include "system.h"
unsigned char kbdus[128] =

View File

@@ -1,4 +1,4 @@
#include "stdio.h"
#include "../libc/stdio.h"
#include "serial.h"
#include "gdt.h"
#include "idt.h"
@@ -29,7 +29,6 @@ int kmain(int retvalue)
// TODO: Fix scrolling bug (framebuffer driver)
// TODO: Fix keyboard driver bug (some keys mapped weirdly) + add suport for SHIFT and backspace (deleting character)
// TODO: Grub modules to load programs
// TODO: Folder and build process restructuration
//timer_install();
keyboard_install();

View File

@@ -1,5 +1,5 @@
#include "system.h"
#include "stdio.h"
#include "../libc/stdio.h"
int timer_ticks = 0;

View File

@@ -1,4 +1,4 @@
#include "io.h"
#include "../kernel/io.h"
#include "stdio.h"
#include "string.h"
#include "stdint.h"