OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 2:22 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: OS development Confusion
PostPosted: Thu Apr 13, 2017 4:36 am 
Offline

Joined: Wed Mar 08, 2017 1:58 am
Posts: 8
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.


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 4:58 am 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 5:03 am 
Offline

Joined: Wed Mar 08, 2017 1:58 am
Posts: 8
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.


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 5:16 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 5:17 am 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 5:21 am 
Offline

Joined: Wed Mar 08, 2017 1:58 am
Posts: 8
Sorry Sir. I have setup the GDT after reading the tutorial properly. Please forgive as your little brother :D


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 8:25 am 
Offline
Member
Member

Joined: Mon Aug 25, 2014 1:27 pm
Posts: 67
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...


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 10:49 am 
Offline
Member
Member
User avatar

Joined: Thu Mar 10, 2016 7:35 am
Posts: 167
Location: Lancaster, England, Disunited Kingdom
As also those who fall for it :-(


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Thu Apr 13, 2017 9:35 pm 
Offline
Member
Member
User avatar

Joined: Sun Feb 09, 2014 7:11 pm
Posts: 89
Location: Within a meter of a computer
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 #Cardinal-OS on freenode!


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Sat Apr 15, 2017 3:23 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
 Post subject: Re: OS development Confusion
PostPosted: Sat Apr 15, 2017 4:56 pm 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 554 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group