help please...i am in a very bad situation
Posted: Sat May 08, 2004 11:00 pm
hi
i am developing an os as a college project..i have 25 days 2 submission....
this is what i have done.....
switched to pmode
set up gdt,idt,etc...
init apic
completed mem mngmt
i have also setup a basic task using ltr..
file system is in progress...my teammate is doing it...
now i am trouble with multitasking....
i am using the TSS based MT...now the problem is i do not know how to switch from ring0 to ring 3...i have tried the IRET method as well as the call gate return method...in both cases i think there is a problem regarding SS....i am using VMWARE which generates an error(Stack Error or something) when i try switching as above...also i tried switching from ring 0 to ring 2...this works somewhat in the sense that the transition is made but it also gives the same error after sometime....i have checked out the example in myexecpc...without much success....please help...if anyone could plz gimme a code written in nasm for which can boot(basic os)....which also jumps from ring0 to ring3 would be very helpful......
i have another problem...
i have init the apic...now the clock interrupt no 32 is being generated but the interrupt no. 33 is not being generate when i press a key on the keyboard...plz help...
thnx
aks
i am developing an os as a college project..i have 25 days 2 submission....
this is what i have done.....
switched to pmode
set up gdt,idt,etc...
init apic
completed mem mngmt
i have also setup a basic task using ltr..
file system is in progress...my teammate is doing it...
now i am trouble with multitasking....
i am using the TSS based MT...now the problem is i do not know how to switch from ring0 to ring 3...i have tried the IRET method as well as the call gate return method...in both cases i think there is a problem regarding SS....i am using VMWARE which generates an error(Stack Error or something) when i try switching as above...also i tried switching from ring 0 to ring 2...this works somewhat in the sense that the transition is made but it also gives the same error after sometime....i have checked out the example in myexecpc...without much success....please help...if anyone could plz gimme a code written in nasm for which can boot(basic os)....which also jumps from ring0 to ring3 would be very helpful......
i have another problem...
i have init the apic...now the clock interrupt no 32 is being generated but the interrupt no. 33 is not being generate when i press a key on the keyboard...plz help...
thnx
aks