First of all, my apologize if my english is not perfect.
I started coding a tiny operating system but when loading the GDT, the computer reboots.
Here is the code where the problem is :
http://x86.pastebin.com/abcgtzqi
I can see that the computer reboots when executing the last assembly instructions but I don't understand why.
Here is a piece of what bochs say me. Could someone help me?
Thank you
00086610098i[CPU0 ] CPU is in protected mode (active)
00086610098i[CPU0 ] CS.d_b = 32 bit
00086610098i[CPU0 ] SS.d_b = 32 bit
00086610098i[CPU0 ] EFER = 0x00000000
00086610098i[CPU0 ] | RAX=000000000010041c RBX=000000000002bd20
00086610098i[CPU0 ] | RCX=0000000000101490 RDX=0000000000000000
00086610098i[CPU0 ] | RSP=0000000000067e34 RBP=0000000000067e44
00086610098i[CPU0 ] | RSI=000000000002be92 RDI=000000000002be97
00086610098i[CPU0 ] | R8=0000000000000000 R9=0000000000000000
00086610098i[CPU0 ] | R10=0000000000000000 R11=0000000000000000
00086610098i[CPU0 ] | R12=0000000000000000 R13=0000000000000000
00086610098i[CPU0 ] | R14=0000000000000000 R15=0000000000000000
00086610098i[CPU0 ] | IOPL=0 id vip vif ac vm RF nt of df if tf sf zf af pf cf
00086610098i[CPU0 ] | SEG selector base limit G D
00086610098i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00086610098i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 000fffff 1 1
00086610098i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00086610098i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00086610098i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 000fffff 1 1
00086610098i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00086610098i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00086610098i[CPU0 ] | MSR_FS_BASE:0000000000000000
00086610098i[CPU0 ] | MSR_GS_BASE:0000000000000000
00086610098i[CPU0 ] | RIP=0000000000100260 (0000000000100260)
00086610098i[CPU0 ] | CR0=0x60000011 CR1=0x0 CR2=0x0000000000000000
00086610098i[CPU0 ] | CR3=0x00000000 CR4=0x00000000
00086610098i[CPU0 ] >> movzx eax, byte ptr ds:[eax] : 0FB600
00086610098e[CPU0 ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting