Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- 00000105 <gdt_set_gate>:
- 105: 55 push %ebp
- 106: 89 e5 mov %esp,%ebp
- 108: 83 ec 08 sub $0x8,%esp
- 10b: 8b 55 14 mov 0x14(%ebp),%edx
- 10e: 8b 45 18 mov 0x18(%ebp),%eax
- 111: 88 55 fc mov %dl,-0x4(%ebp)
- 114: 88 45 f8 mov %al,-0x8(%ebp)
- 117: 8b 45 0c mov 0xc(%ebp),%eax
- 11a: 31 d2 xor %edx,%edx
- 11c: 66 89 c2 mov %ax,%dx
- 11f: 8b 4d 08 mov 0x8(%ebp),%ecx
- 122: 89 c8 mov %ecx,%eax
- 124: 01 c0 add %eax,%eax
- 126: 01 c8 add %ecx,%eax
- 128: c1 e0 02 shl $0x2,%eax
- 12b: 05 00 00 00 00 add $0x0,%eax
- 12c: R_386_32 gdt_entries
- 130: 89 50 04 mov %edx,0x4(%eax)
- 133: 8b 45 0c mov 0xc(%ebp),%eax
- 136: c1 e8 10 shr $0x10,%eax
- 139: 88 c2 mov %al,%dl
- 13b: 8b 4d 08 mov 0x8(%ebp),%ecx
- 13e: 89 c8 mov %ecx,%eax
- 140: 01 c0 add %eax,%eax
- 142: 01 c8 add %ecx,%eax
- 144: c1 e0 02 shl $0x2,%eax
- 147: 05 00 00 00 00 add $0x0,%eax
- 148: R_386_32 gdt_entries
- 14c: 88 50 08 mov %dl,0x8(%eax)
- 14f: 8b 45 0c mov 0xc(%ebp),%eax
- 152: c1 e8 18 shr $0x18,%eax
- 155: 88 c2 mov %al,%dl
- 157: 8b 4d 08 mov 0x8(%ebp),%ecx
- 15a: 89 c8 mov %ecx,%eax
- 15c: 01 c0 add %eax,%eax
- 15e: 01 c8 add %ecx,%eax
- 160: c1 e0 02 shl $0x2,%eax
- 163: 05 00 00 00 00 add $0x0,%eax
- 164: R_386_32 gdt_entries
- 168: 88 50 0b mov %dl,0xb(%eax)
- 16b: 8b 45 10 mov 0x10(%ebp),%eax
- 16e: 31 d2 xor %edx,%edx
- 170: 66 89 c2 mov %ax,%dx
- 173: 8b 4d 08 mov 0x8(%ebp),%ecx
- 176: 89 c8 mov %ecx,%eax
- 178: 01 c0 add %eax,%eax
- 17a: 01 c8 add %ecx,%eax
- 17c: c1 e0 02 shl $0x2,%eax
- 17f: 05 00 00 00 00 add $0x0,%eax
- 180: R_386_32 gdt_entries
- 184: 89 10 mov %edx,(%eax)
- 186: 8b 45 10 mov 0x10(%ebp),%eax
- 189: c1 e8 10 shr $0x10,%eax
- 18c: 83 e0 0f and $0xf,%eax
- 18f: 88 c1 mov %al,%cl
- 191: 8b 55 08 mov 0x8(%ebp),%edx
- 194: 89 d0 mov %edx,%eax
- 196: 01 c0 add %eax,%eax
- 198: 01 d0 add %edx,%eax
- 19a: c1 e0 02 shl $0x2,%eax
- 19d: 05 00 00 00 00 add $0x0,%eax
- 19e: R_386_32 gdt_entries
- 1a2: 88 48 0a mov %cl,0xa(%eax)
- 1a5: 8b 55 08 mov 0x8(%ebp),%edx
- 1a8: 89 d0 mov %edx,%eax
- 1aa: 01 c0 add %eax,%eax
- 1ac: 01 d0 add %edx,%eax
- 1ae: c1 e0 02 shl $0x2,%eax
- 1b1: 05 00 00 00 00 add $0x0,%eax
- 1b2: R_386_32 gdt_entries
- 1b6: 8a 40 0a mov 0xa(%eax),%al
- 1b9: 8a 55 f8 mov -0x8(%ebp),%dl
- 1bc: 83 e2 f0 and $0xfffffff0,%edx
- 1bf: 09 d0 or %edx,%eax
- 1c1: 88 c2 mov %al,%dl
- 1c3: 8b 4d 08 mov 0x8(%ebp),%ecx
- 1c6: 89 c8 mov %ecx,%eax
- 1c8: 01 c0 add %eax,%eax
- 1ca: 01 c8 add %ecx,%eax
- 1cc: c1 e0 02 shl $0x2,%eax
- 1cf: 05 00 00 00 00 add $0x0,%eax
- 1d0: R_386_32 gdt_entries
- 1d4: 88 50 0a mov %dl,0xa(%eax)
- 1d7: 8b 55 08 mov 0x8(%ebp),%edx
- 1da: 89 d0 mov %edx,%eax
- 1dc: 01 c0 add %eax,%eax
- 1de: 01 d0 add %edx,%eax
- 1e0: c1 e0 02 shl $0x2,%eax
- 1e3: 8d 90 00 00 00 00 lea 0x0(%eax),%edx
- 1e5: R_386_32 gdt_entries
- 1e9: 8a 45 fc mov -0x4(%ebp),%al
- 1ec: 88 42 09 mov %al,0x9(%edx)
- 1ef: c9 leave
- 1f0: c3 ret
Add Comment
Please, Sign In to add comment