Skip to contentSkip to conversation

GDT initialization and location question.

DISCUSSION Pritesh Shah 3 participants 3 messages Aug 30, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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.

#2 lore raw
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 is per_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