[????] 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

@ -6,9 +6,9 @@
volatile TimeSystem _internal_time;
uint32 _internal_frequency_hz;
extern void TaskSwitch ();
extern void TaskSwitch (_RegsStack32* regs);
void TimeHandler(_RegsStack32* UNUSED(r))
void TimeHandler(_RegsStack32* r)
{
if (_internal_frequency_hz == 0) return;
@ -19,5 +19,5 @@ void TimeHandler(_RegsStack32* UNUSED(r))
_internal_time.Time-=MILISECONDS_IN_DAY;
}
TaskSwitch();
TaskSwitch(r);
}

View File

@ -70,8 +70,8 @@ void CrashMessage(_RegsStack32 *r)
ConsoleCursorGoto(c); ConsoleWrite("eflags=0x%x", r->eflags);
ConsoleCursorGoto(d); ConsoleWrite("useresp=0x%x\n", r->useresp);
ConsoleCursorGoto(a); ConsoleWrite("gs=0x%x", r->ss);
ConsoleCursorGoto(b); ConsoleWrite("fs=0x%x", r->int_no);
ConsoleCursorGoto(a); ConsoleWrite("ss=0x%x", r->ss);
ConsoleCursorGoto(b); ConsoleWrite("int_no=0x%x", r->int_no);
ConsoleCursorGoto(c); ConsoleWrite("err_code=0x%x", r->err_code);
// Useful info about page fault