Writing to a Text Mode Terminal and Global Descriptor Tables:
Objective:
_To learn about and implement the Global Descriptor Table (GDT) in an operating system
kernel.
_To gain experience writing to a text mode terminal.
Requirements:
1_Extend your OS by implementing the Global Descriptor Table (GDT) mechanism. You should
at minimum implement the NULL, Data, and Text descriptor.
2_In the kernel_main function, print "Hello World". Optimally, you implement "printf" function,
but you can also have a function like "terminal_write"
3_Your code should be well-documented and easy to understand. You will most likely need to
write some assembly for the "lgdt" instruction (load global descriptor table) and for reloading the
GDT. You will find more about this in the OSDev GDT page under "Reload Segment Registers".
Submission:
_Push your submission to your GIT repository and provide a easily visible link in your report.
_Extend your report with a section explaining your approach and any challenges you faced.

Writing to a Text Mode Terminal and Global Descriptor TablesObjec.pdf

  • 1.
    Writing to aText Mode Terminal and Global Descriptor Tables: Objective: _To learn about and implement the Global Descriptor Table (GDT) in an operating system kernel. _To gain experience writing to a text mode terminal. Requirements: 1_Extend your OS by implementing the Global Descriptor Table (GDT) mechanism. You should at minimum implement the NULL, Data, and Text descriptor. 2_In the kernel_main function, print "Hello World". Optimally, you implement "printf" function, but you can also have a function like "terminal_write" 3_Your code should be well-documented and easy to understand. You will most likely need to write some assembly for the "lgdt" instruction (load global descriptor table) and for reloading the GDT. You will find more about this in the OSDev GDT page under "Reload Segment Registers". Submission: _Push your submission to your GIT repository and provide a easily visible link in your report. _Extend your report with a section explaining your approach and any challenges you faced.