Re:I need more about creating a task/process
Posted: Mon Aug 22, 2005 1:10 am
Slow now. Breathe. Seek your center and stay there for a while. Empty your brain from all thoughts. Enjoy the silence.
There now?
Look, there are several debugging techniques. I'll show you one or two ere you start chasing your own tail eh?
First: Put the scheduling stuff in the keyboard isr (irq 1). Shut off the timer irq. We don't need it at this stage. You issue an interrupt willingly by pressing a key. More control.
Second: put prints around the crucial and non crucial parts of the scheduler and task switching code - it's always good to know where the code is. It often reveals the hidden pitfalls in the path of execution to have visual tracing at hands. In asm stubs, simply move chars to given positions in vram.
Third: Have you by any chance enabled paging? If so, zero out all your page dirs and page tables. This is very important for any crap in the page tables gets translated into addresses - and this brings biiig trouble.
Fourth: Welcome to debug sessions darker than night! mwaaahahahahaaa
There now?
Look, there are several debugging techniques. I'll show you one or two ere you start chasing your own tail eh?
First: Put the scheduling stuff in the keyboard isr (irq 1). Shut off the timer irq. We don't need it at this stage. You issue an interrupt willingly by pressing a key. More control.
Second: put prints around the crucial and non crucial parts of the scheduler and task switching code - it's always good to know where the code is. It often reveals the hidden pitfalls in the path of execution to have visual tracing at hands. In asm stubs, simply move chars to given positions in vram.
Third: Have you by any chance enabled paging? If so, zero out all your page dirs and page tables. This is very important for any crap in the page tables gets translated into addresses - and this brings biiig trouble.
Fourth: Welcome to debug sessions darker than night! mwaaahahahahaaa