[????] BUILD 0.1.1.50 DATE 9/20/2011 AT 12:43 PM

====================================================
Mainly changed: Tasking
+ Implemented multitasking
+ Switching works
? TODO: Fix other not working tasking routines
This commit is contained in:
2021-09-14 18:58:06 +03:00
parent 581c6b92fe
commit 17342b6665
22 changed files with 10331 additions and 10385 deletions

View File

@ -65,10 +65,12 @@ extern void ConsoleMain();
// External test routines
extern void SystemPanic();
extern int32 LogWrite (uint8 error, string device, string format, ...);
extern void LogAssert (int32 condition, string file, int32 line);
// Debug print
#define Log(dev, ...) { LogWrite(0, dev, __VA_ARGS__); }
#define Error(dev, ...) { LogWrite(1, dev, __VA_ARGS__); }
#define Panic(dev, ...) { LogWrite(1, dev, __VA_ARGS__); SystemPanic(); }
#define Assert(c) { LogAssert(c, __FILE__, __LINE__); }
#endif

View File

@ -13,10 +13,11 @@
typedef struct _Task {
uint32 Pid;
uint32 Esp, Ebp; // Stack
uint32 Eip, Esp, Ebp;
PageDirectory* Pd;
uint32 StackLowerBase;
uint32 StackUpperBase;
uint8 Initialized;
struct _Task* Next;
} Task;

View File

@ -1 +1 @@
#define OS_BUILD "0.1.1.19"
#define OS_BUILD "0.1.1.50"