Page 1 of 1

OS development Confusion

Posted: Thu Apr 13, 2017 4:36 am
by ankitbehera2670
Please help me somebody. I have completed the meatyOS tutorial but I am stuck with GDT tutorial. I am confused about where I should put the codes that are described in the GDT tutorial.As I am new to this please help and guide me.

Re: OS development Confusion

Posted: Thu Apr 13, 2017 4:58 am
by dozniak
ankitbehera2670 wrote:Please help me somebody. I have completed the meatyOS tutorial but I am stuck with GDT tutorial. I am confused about where I should put the codes that are described in the GDT tutorial.As I am new to this please help and guide me.
You chose the wrong forum. Start with Programming Beginners, learn programming, write some apps first; when you learn "where to put codes" you could start thinking about potentially maybe starting OS development.

Copypasting code from tutorial does not mean "completed".

Re: OS development Confusion

Posted: Thu Apr 13, 2017 5:03 am
by ankitbehera2670
Dear sir I have completed my c course and I have written many user apps for my institute in c language. I am just here confused about where to put the GDT code. Please help me Sir.

Re: OS development Confusion

Posted: Thu Apr 13, 2017 5:16 am
by iansjack
Do you understand what the GDT is, and why you need it? If you do then it should be obvious that the code goes somewhere before you use the selectors defined in the table.

If you don't understand why you are setting up a GDT then you need to do more reading before you start coding.

Re: OS development Confusion

Posted: Thu Apr 13, 2017 5:17 am
by dozniak
ankitbehera2670 wrote:Dear sir I have completed my c course and I have written many user apps for my institute in c language.
"Many user apps" without a single link to such apps means you've written none and are still a newbie.
ankitbehera2670 wrote:I am just here confused about where to put the GDT code. Please help me Sir.
Put it in a file.

Where do you put all the "other codes"? (Note: there is no word "codes")

Re: OS development Confusion

Posted: Thu Apr 13, 2017 5:21 am
by ankitbehera2670
Sorry Sir. I have setup the GDT after reading the tutorial properly. Please forgive as your little brother :D

Re: OS development Confusion

Posted: Thu Apr 13, 2017 8:25 am
by AMenard
ankitbehera2670 wrote:Sorry Sir. I have setup the GDT after reading the tutorial properly. Please forgive as your little brother :D
Eh, Nuna is back...

Re: OS development Confusion

Posted: Thu Apr 13, 2017 10:49 am
by MichaelFarthing
As also those who fall for it :-(

Re: OS development Confusion

Posted: Thu Apr 13, 2017 9:35 pm
by hgoel
Can you elaborate on what you mean by where to put the code?
Control flow wise the GDT setup should be one of the first steps in the os boot.

Re: OS development Confusion

Posted: Sat Apr 15, 2017 3:23 am
by onlyonemac
dozniak wrote:
ankitbehera2670 wrote:Dear sir I have completed my c course and I have written many user apps for my institute in c language.
"Many user apps" without a single link to such apps means you've written none and are still a newbie.
It's completely possible that the apps aren't publicly available and can't be made available for whatever reason.

Re: OS development Confusion

Posted: Sat Apr 15, 2017 4:56 pm
by dozniak
onlyonemac wrote:
dozniak wrote:
ankitbehera2670 wrote:Dear sir I have completed my c course and I have written many user apps for my institute in c language.
"Many user apps" without a single link to such apps means you've written none and are still a newbie.
It's completely possible that the apps aren't publicly available and can't be made available for whatever reason.
Without any specifics on what they do it's just a brag. I don't believe it.