Page 2 of 2

Re: Timer won't work ?!?

Posted: Thu Jan 01, 2009 6:06 pm
by quanganht
Here u go. It restart over and over again
Log:
http://www.mediafire.com/?zdmqc44nkhm

The source code I tested:
http://unnamed-0s.googlecode.com/files/ ... .0_abc.rar

Re: Timer won't work ?!?

Posted: Thu Jan 01, 2009 6:18 pm
by neonek
Maybe PIC remapping :?:

Re: Timer won't work ?!?

Posted: Thu Jan 01, 2009 8:03 pm
by quanganht
neonek wrote:Maybe PIC remapping :?:
Proof ?

Re: Timer won't work ?!?

Posted: Thu Jan 01, 2009 10:45 pm
by Firestryke31
Try remapping the PIC and if, after doing so, the interrupt changes, then that's the proof.

Another possible culprit is stack corruption, but let's rule out the easy to find bugs first...

Re: Timer won't work ?!?

Posted: Thu Jan 01, 2009 10:50 pm
by Brendan
Hi,
quanganht wrote:The source code I tested:
http://unnamed-0s.googlecode.com/files/ ... .0_abc.rar
I took a look, and noticed that there's a lot of code taken from other projects, often without respecting the original author's copyright. For example, you can't take a file (e.g. "idt.c" from Mattise), and remove the GPL copyright notice from the top and replace it with "Developed by TQA, a.k.a _code_masta_".

My suggestion is to delete all your code and start again, writing everything yourself. That way you wouldn't end up with a heap of code you don't understand, and you might learn enough while doing this to find and fix bugs without spending 2 weeks getting nowhere...


Cheers,

Brendan

Re: Timer won't work ?!?

Posted: Fri Jan 02, 2009 5:24 am
by quanganht
Brendan wrote:Hi,
quanganht wrote:The source code I tested:
http://unnamed-0s.googlecode.com/files/ ... .0_abc.rar
I took a look, and noticed that there's a lot of code taken from other projects, often without respecting the original author's copyright. For example, you can't take a file (e.g. "idt.c" from Mattise), and remove the GPL copyright notice from the top and replace it with "Developed by TQA, a.k.a _code_masta_".

My suggestion is to delete all your code and start again, writing everything yourself. That way you wouldn't end up with a heap of code you don't understand, and you might learn enough while doing this to find and fix bugs without spending 2 weeks getting nowhere...


Cheers,

Brendan
You know why? I learned from him, but I coded myself for a while. And when my code don't run, I copy all (not really) from Mattise and see if there is any different. But no ... :( :( :(

And, you know, I thinking if I want to step to C++, but it seems like... well, everything is ugly out here :( :x

EDIT: Oh, I forgot to say that I'm interested in Exo-kernel, and researching it. Just want to know if anyone want to join ? :?