Page 1 of 1

very little problem on real hardware

Posted: Sun Mar 19, 2006 12:00 am
by shainer
Hi to all.

I've got a little problem with an OS i'm programming with some friends. When I emulate it on Bochs/VmWare, I get no errors. I tried it on real hardware (my CPU is AMD Athlon XP), and when I press the first key, all the previous characters are canceled, but I can continue typing the command and the shell recognizes it. When I press Enter, the prompt is restored normally.

I think it's a problem of video memory management, but I don't know how to find it.

[Sorry for my english, but i'm italian :)]

Thanks for any help
Lisa

Re: very little problem on real hardware

Posted: Sun Mar 19, 2006 12:00 am
by darktemplar
Could you give some code? It's hard to say what is the source of the error, without having any code.

Re: very little problem on real hardware

Posted: Sun Mar 19, 2006 12:00 am
by earlz
probably a problem in your gets command i had that kinda problem,
1. try sending it the pointer to a buffer NOT allocated on the stack(global)
2.make sure your advancing the curor

Re: very little problem on real hardware

Posted: Sun Mar 19, 2006 12:00 am
by shainer
If you want to see some code:

cvs -d:pserver:[email protected]/cvs/dreamos co dreamos

Well, actually it has to be reviewed, we can code it better :) Unfortunately for you, most of comments are in Italian, if you want some explanation, please ask me :)

Lisa

Re: very little problem on real hardware

Posted: Sun Mar 19, 2006 12:00 am
by shainer
Stop :) we have resolved...it's a problem in text scrolling!

Thanks for all and sorry for the disturb :)

Lisa