summaryrefslogtreecommitdiff
path: root/asm/asm_gdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'asm/asm_gdt.h')
-rw-r--r--asm/asm_gdt.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/asm/asm_gdt.h b/asm/asm_gdt.h
index 128dbf3..c2c35a0 100644
--- a/asm/asm_gdt.h
+++ b/asm/asm_gdt.h
@@ -3,5 +3,12 @@
* http://wiki.osdev.org/GDT_Tutorial
*/
-/** call as asm_setup_gdt(GDT,sizeof(GDT)) */
+/**
+ * Set the Global Descritpor Table from data at _addr_.
+ *
+ * call as asm_setup_gdt(GDT,sizeof(GDT))
+ *
+ * This will jump to 0x8 segment and set 0x10 data selector
+ * also refereshing the tss entry.
+ * */
void asm_setup_gdt(uint32_t addr, uint32_t size);