[????] 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:
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define OS_BUILD "0.1.1.19"
|
||||
#define OS_BUILD "0.1.1.50"
|
||||
|
Reference in New Issue
Block a user