scheduling questions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Poseidon

scheduling questions

Post by Poseidon »

I'm working now on a basic scheduler. I've a few questions:
1. The TSS struct.. can I just load the values of it by using something like
__asm__ volatile ("movl %0, %%eax" : : "r" (tss.eax));
or are there maybe other (better) ways.
2. Is the stack of a process just loaded by moving the address of it to esp?
3. When a timer interrupts, do I have to load the kernel stack first, to prevent values being pushed on a process, and popped from another process?
4. For continuing with another process (after a timer isr has occured), the cpu has to continue somewhere else in the memory. Can I do that just by putting an address in a register? If so, what register?
5. What are trace and bitmap needed for? (saw it in a tutorial on osdever.net)

Thanx in advance
Post Reply