diff --git a/src/bin/init/main.c b/src/bin/init/main.c index 968bad0..c855966 100644 --- a/src/bin/init/main.c +++ b/src/bin/init/main.c @@ -37,6 +37,9 @@ int main(int argc,char **argv) { int i=0x0; mpi_message_t myMsg; + + printf("A\n"); + while (1); /* Create a mailbox for this task */ if (mpi_createMbox("init") != 0x0) { @@ -106,6 +109,9 @@ /*** $Log$ + Revision 1.19 2004/08/14 11:29:42 reddawg + ok + Revision 1.17 2004/08/14 11:23:02 reddawg Changes diff --git a/src/sys/kernel/exec.c b/src/sys/kernel/exec.c index d7ec4de..b30f544 100644 --- a/src/sys/kernel/exec.c +++ b/src/sys/kernel/exec.c @@ -286,13 +286,13 @@ _current->iframe->eip = (uInt32)binaryHeader->eEntry; _current->iframe->flags = 0x206; - _current->iframe->esp = 0x5DD000 - 12; + _current->iframe->esp = _current->kernelStack + 0x2000; _current->iframe->ebp = 0x5DD000; _current->iframe->user_esp = 0x5DD000 - 12; _current->iframe->user_ss = 0x30 + 3; _current->iframe->cs = 0x28 + 3; _current->iframe->es = 0x30 + 3; - _current->iframe->ss = 0x30 + 3; + _current->iframe->ss = 0x10 + 0; _current->iframe->ds = 0x30 + 3; _current->iframe->fs = 0x30 + 3; _current->iframe->gs = 0x30 + 3; @@ -461,6 +461,9 @@ /*** $Log$ + Revision 1.64 2004/08/21 20:06:28 reddawg + ok check out exec.c + Revision 1.63 2004/08/21 17:36:57 reddawg updates: converted to software task switching however it is not working yet diff --git a/src/sys/kernel/fork.c b/src/sys/kernel/fork.c index 51c4041..528c96c 100644 --- a/src/sys/kernel/fork.c +++ b/src/sys/kernel/fork.c @@ -108,7 +108,7 @@ newProcess->iframe->fs = _current->iframe->fs; newProcess->iframe->es = _current->iframe->es; newProcess->iframe->ds = _current->iframe->ds; - newProcess->iframe->ss = ss; + newProcess->iframe->ss = 0x10; newProcess->iframe->edi = edi; newProcess->iframe->esi = esi; newProcess->iframe->ebp = ebp; @@ -135,6 +135,9 @@ /*** $Log$ + Revision 1.23 2004/08/21 17:36:57 reddawg + updates: converted to software task switching however it is not working yet + Revision 1.22 2004/08/09 12:58:05 reddawg let me know when you got the surce diff --git a/src/sys/kernel/sched.c b/src/sys/kernel/sched.c index f5beeee..0737fca 100644 --- a/src/sys/kernel/sched.c +++ b/src/sys/kernel/sched.c @@ -211,7 +211,6 @@ "pop %%ds \n" "pop %%ss \n" "popa \n" - "sti \n" "iret \n" : : "a" (_current->cr3), "p" ((uInt32)(_current->iframe)) @@ -357,6 +356,9 @@ /*** $Log$ + Revision 1.37 2004/08/21 20:06:28 reddawg + ok check out exec.c + Revision 1.36 2004/08/21 17:36:57 reddawg updates: converted to software task switching however it is not working yet