Page 1 of 1
I have problem with my os (pmode)
Posted: Wed Nov 28, 2007 7:02 am
by halawa
I have written o.s in pmode with c++ but the kernel doesn't work
why? i'dont
i'll Attachment thhe o.s src.
Posted: Wed Nov 28, 2007 7:47 am
by Steve the Pirate
Can you please describe the nature of the problem? That would make helping you a lot easier.
Also, there's some useful info over at the
wiki article.
Unfortunatley I can't take a look at your code now, but I can try to help if you're still having problems tomorrow.
Posted: Wed Nov 28, 2007 8:33 am
by JamesM
NOOOOOOO!!! Not another one! Don't do it!
PLEASE don't post "My OS doesn't work. Why? - heres all my code in a massive attachment" questions! Narrow it down! do some work yourself!
Posted: Wed Nov 28, 2007 8:53 am
by AJ
Ouch - I see that you have taken Bran's tutorial and tried to make the start in to a class-based C++ kernel using RTTI, but have implemented no kind of C++ support.
As Steve suggested, read the wiki article and then start off by implementing your kernel 'C-style' (forget classes for the moment until you have a memory manager).
I would also suggest that you start by building a small working unit (perhaps just something that has a short int pointer to 0xB8000 and puts a letter in the top corner of the screen). Once that is working, gradually extend, compling and testing as you go.
Cheers,
Adam
Posted: Thu Nov 29, 2007 12:42 pm
by maverick777
Yeah Im new but honestly Ive found what AJ has said to be true, even doing something as minimal as printing a letter to the screen can bring up problems . Starting that way is the best way as you are starting in infinitisimal steps and the concepts from doing such a small thing can be applied to many other things.
I spent over 2 days just trying to get my keyboard to display 1 typed character to the screen.(quite stressful at times) Many may see that as wasted time, I dont as I know I have gained alot in the process of getting this to work.