loading executables
Posted: Sun Feb 25, 2007 10:29 pm
hi,
i used load the executables when a page fault occurs, when loading from disk i will set the interrupts and after loading i will clear the interrupts this way it worked well, but now when i want to load it thru the system calls it doesn't load from the disk, it's because i used sti and cli which is not the correct way of doing this. simply put, inside an interrupt/exception routine another interrupt like floppy interrupt is not occuring, what shall i do? previously i used sti and cli whenever an interrupt has to occur, but this method will not work when called thru system calls.
I 've implemented a shell and i want to load executables. shell is just an other program. so it has to make system calls, that's where i'm having the problem.
i used load the executables when a page fault occurs, when loading from disk i will set the interrupts and after loading i will clear the interrupts this way it worked well, but now when i want to load it thru the system calls it doesn't load from the disk, it's because i used sti and cli which is not the correct way of doing this. simply put, inside an interrupt/exception routine another interrupt like floppy interrupt is not occuring, what shall i do? previously i used sti and cli whenever an interrupt has to occur, but this method will not work when called thru system calls.
I 've implemented a shell and i want to load executables. shell is just an other program. so it has to make system calls, that's where i'm having the problem.