Major libk restructuring, also rewrote drivers/serial.h

This commit is contained in:
2024-10-27 10:23:56 +01:00
parent 4079049242
commit e8a55d72a5
62 changed files with 334 additions and 380 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <cpu/isr.h>
#include <stdio.h>
int sys_close(intFrame_t* iframe) {
+2 -2
View File
@@ -1,6 +1,6 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <error/debug.h>
#include <drivers/serial.h>
#include <cpu/isr.h>
int sys_exit(intFrame_t* iframe) {
debugf("Tried to exit with %d", iframe->eax);
+1 -1
View File
@@ -1,6 +1,6 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <memory/malloc.h>
#include <cpu/isr.h>
int sys_free(intFrame_t* iframe) {
void* ptr = (void*)iframe->ebx;
+1 -1
View File
@@ -1,6 +1,6 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <memory/malloc.h>
#include <cpu/isr.h>
#include <stddef.h>
int sys_malloc(intFrame_t* iframe) {
+1 -1
View File
@@ -1,5 +1,5 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <cpu/isr.h>
#include <stdio.h>
int sys_open(intFrame_t* iframe) {
+1 -1
View File
@@ -1,5 +1,5 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <cpu/isr.h>
#include <stdio.h>
int sys_read(intFrame_t* iframe) {
+1 -1
View File
@@ -1,5 +1,5 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <cpu/isr.h>
int sys_seek(intFrame_t* iframe) {
// TODO
+1 -1
View File
@@ -1,6 +1,6 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <memory/addresses.h>
#include <cpu/isr.h>
#include <stdint.h>
int sys_sleep(intFrame_t* iframe) {
+2 -2
View File
@@ -1,6 +1,6 @@
#include <syscalls/syscalls.h>
#include <tty/tty.h>
#include <interrupt/isr.h>
#include <screen/tty.h>
#include <cpu/isr.h>
#include <stddef.h>
int sys_write(intFrame_t* iframe) {
+2 -2
View File
@@ -1,6 +1,6 @@
#include <syscalls/syscalls.h>
#include <interrupt/isr.h>
#include <error/debug.h>
#include <drivers/serial.h>
#include <cpu/isr.h>
#include <syscall.h>
// System call table