From b6e0952aa3d447418cc57d7d2855dc01ca74ca1d Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 25 Jun 2022 14:01:04 +0300 Subject: [PATCH] Remove "src/tasks/" --- src/Makefile | 2 -- src/main.c | 2 -- src/tasks.asm | 20 -------------------- src/tasks.h | 6 ------ 4 files changed, 30 deletions(-) delete mode 100644 src/tasks.asm delete mode 100644 src/tasks.h diff --git a/src/Makefile b/src/Makefile index 0e76200..0fcf769 100644 --- a/src/Makefile +++ b/src/Makefile @@ -36,8 +36,6 @@ OBJS += timer.c.o OBJS += protected.c.o -OBJS += tasks.asm.cpp.o - OBJS += interrupts/main.asm.cpp.o OBJS += interrupts/exception.c.o OBJS += interrupts/hwint.c.o diff --git a/src/main.c b/src/main.c index 66623f1..f7c7198 100644 --- a/src/main.c +++ b/src/main.c @@ -5,8 +5,6 @@ #include "panic.h" #include "protected.h" -#include "tasks.h" - #include #include #include diff --git a/src/tasks.asm b/src/tasks.asm deleted file mode 100644 index a6aa4f1..0000000 --- a/src/tasks.asm +++ /dev/null @@ -1,20 +0,0 @@ -#include "config.h" - -[GLOBAL tasks_switch_to_user] - -tasks_switch_to_user: - mov ebx, [esp+4] - - mov ax, GDT_USER_DS_SELECTOR - mov ds, ax - mov es, ax - mov fs, ax - mov gs, ax - - mov eax, esp - push GDT_USER_DS_SELECTOR - push eax - pushf - push GDT_USER_CS_SELECTOR - push ebx - iret diff --git a/src/tasks.h b/src/tasks.h deleted file mode 100644 index 24f4ca1..0000000 --- a/src/tasks.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef KERNEL_INCLUDED_TASKS -#define KERNEL_INCLUDED_TASKS 1 - -void tasks_switch_to_user(unsigned long base); - -#endif