BitOfAZeldaFan / ck

C/K, the Coffee Kernel written in C.
0 stars 0 forks source link

GDT implementation #5

Open BitOfAZeldaFan opened 5 years ago

BitOfAZeldaFan commented 5 years ago

Need to implement the global descriptor table.

  1. setters and getters
  2. populate the table at kernel initialization

Question: Should I use the gdt to keep track of the usable memory map?

Question: Where should the gdt go? How big can the gdt get?

BitOfAZeldaFan commented 5 years ago

GRUB sets up a gdt automatically. We don't know where or whats in it.

BitOfAZeldaFan commented 5 years ago

No, I shouldn't use the gdt for a memory map in the global sense. GDT is for memory segmentation, not willie-nillie use.

I should keep it at only a handful of entries until I start implementing multi- processes. Then each process gets a memory segment.