OS development Confusion

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ankitbehera2670
Posts: 8
Joined: Wed Mar 08, 2017 1:58 am

OS development Confusion

Post 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.
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: OS development Confusion

Post 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".
Learn to read.
ankitbehera2670
Posts: 8
Joined: Wed Mar 08, 2017 1:58 am

Re: OS development Confusion

Post 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.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: OS development Confusion

Post 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.
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: OS development Confusion

Post 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")
Learn to read.
ankitbehera2670
Posts: 8
Joined: Wed Mar 08, 2017 1:58 am

Re: OS development Confusion

Post by ankitbehera2670 »

Sorry Sir. I have setup the GDT after reading the tutorial properly. Please forgive as your little brother :D
AMenard
Member
Member
Posts: 67
Joined: Mon Aug 25, 2014 1:27 pm

Re: OS development Confusion

Post 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...
User avatar
MichaelFarthing
Member
Member
Posts: 167
Joined: Thu Mar 10, 2016 7:35 am
Location: Lancaster, England, Disunited Kingdom

Re: OS development Confusion

Post by MichaelFarthing »

As also those who fall for it :-(
User avatar
hgoel
Member
Member
Posts: 89
Joined: Sun Feb 09, 2014 7:11 pm
Libera.chat IRC: hgoel
Location: Within a meter of a computer

Re: OS development Confusion

Post 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.
"If the truth is a cruel mistress, than a lie must be a nice girl"
Working on Cardinal
Find me at [url=irc://chat.freenode.net:6697/Cardinal-OS]#Cardinal-OS[/url] on freenode!
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: OS development Confusion

Post 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.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: OS development Confusion

Post 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.
Learn to read.
Post Reply