GDT initialization and location question.
Hi,
I was wondering as to where is the GDT initialized during the boot sequence? I will need the filename and the name of the routine that does this. Any help would be greatly appreciated.
Thanks in advance,
Pritesh
Quoted 3 lines · * Pritesh Shah ([email protected]) wrote:
I was wondering as to where is the GDT initialized during the boot sequence? I will need the filename and the name of the routine that does this. Any help would be greatly appreciated.
Search for cpu_gdt_table (one is literal, the other is per_cpu). You should be able to work it out from there.
Quoted 8 lines · Chris Wright
Quoted 3 lines · * Pritesh Shah ([email protected]) wrote:
I was wondering as to where is the GDT initialized during the boot sequence? I will need the filename and the name of the routine that does this. Any help would be greatly appreciated.
Search for
cpu_gdt_table(one is literal, the other isper_cpu). You should be able to work it out from there.
-
I would have said search for /gdt/ in arch/i386/boot/setup.S . Maybe both are helpful.
Signature · 1 line
~Randy