Code: Select all
gdt.o: file format elf32-i386
Disassembly of section .text:
00000000 <init_gdt>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp
6: c7 05 00 00 00 00 3b movl $0x3b,0x0
d: 00 00 00
8: R_386_32 gdt
10: b8 00 00 00 00 mov $0x0,%eax
11: R_386_32 gdt_entries
15: a3 04 00 00 00 mov %eax,0x4
16: R_386_32 gdt
1a: c7 44 24 10 00 00 00 movl $0x0,0x10(%esp)
21: 00
22: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
29: 00
2a: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
31: 00
32: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
39: 00
3a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
41: e8 bf 00 00 00 call 105 <gdt_set_gate>
46: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
4d: 00
4e: c7 44 24 0c 9a 00 00 movl $0x9a,0xc(%esp)
55: 00
56: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
5d: ff
5e: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
65: 40
66: c7 04 24 01 00 00 00 movl $0x1,(%esp)
6d: e8 93 00 00 00 call 105 <gdt_set_gate>
72: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
79: 00
7a: c7 44 24 0c 92 00 00 movl $0x92,0xc(%esp)
81: 00
82: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
89: ff
8a: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
91: 40
92: c7 04 24 02 00 00 00 movl $0x2,(%esp)
99: e8 67 00 00 00 call 105 <gdt_set_gate>
9e: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
a5: 00
a6: c7 44 24 0c fa 00 00 movl $0xfa,0xc(%esp)
ad: 00
ae: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
b5: ff
b6: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
bd: 40
be: c7 04 24 03 00 00 00 movl $0x3,(%esp)
c5: e8 3b 00 00 00 call 105 <gdt_set_gate>
ca: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
d1: 00
d2: c7 44 24 0c f2 00 00 movl $0xf2,0xc(%esp)
d9: 00
da: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
e1: ff
e2: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
e9: 40
ea: c7 04 24 04 00 00 00 movl $0x4,(%esp)
f1: e8 0f 00 00 00 call 105 <gdt_set_gate>
f6: b8 00 00 00 00 mov $0x0,%eax
f7: R_386_32 gdt
fb: 89 04 24 mov %eax,(%esp)
fe: e8 fc ff ff ff call ff <init_gdt+0xff>
ff: R_386_PC32 gdt_flush
103: c9 leave
104: c3 ret
Thanks for the help so far!