Entering the 64-bit Submode from Long Mode
Posted: Thu Sep 12, 2013 4:30 pm
Hello everyone, I managed to go into Long Mode with Compatibility SubMode, but what I wanted is Long Mode with 64-Bit SubMode. I created a 64 bit GDT an loaded it, but bochs tells me that I am in:
What am I doing wrong?
Code: Select all
00014090084i[BIOS ] Booting from 0000:7c00
00014173256i[CPU0 ] WARNING: HLT instruction with IF=0!
00243956000p[SDL ] >>PANIC<< User requested shutdown.
00243956000i[CPU0 ] CPU is in compatibility mode (halted)
00243956000i[CPU0 ] CS.d_b = 32 bit
00243956000i[CPU0 ] SS.d_b = 32 bit
00243956000i[CPU0 ] EFER = 0x00000500
00243956000i[CPU0 ] | RAX=000000003f224f22 RBX=0000000000200003
00243956000i[CPU0 ] | RCX=00000000c0000080 RDX=0000000000000000
00243956000i[CPU0 ] | RSP=0000000000000200 RBP=0000000000000099
00243956000i[CPU0 ] | RSI=00000000000e00bb RDI=0000000000005000
00243956000i[CPU0 ] | R8=0000000000000000 R9=0000000000000000
00243956000i[CPU0 ] | R10=0000000000000000 R11=0000000000000000
00243956000i[CPU0 ] | R12=0000000000000000 R13=0000000000000000
00243956000i[CPU0 ] | R14=0000000000000000 R15=0000000000000000
00243956000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf zf af PF cf
00243956000i[CPU0 ] | SEG selector base limit G D
00243956000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00243956000i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 ffffffff 1 1
00243956000i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
00243956000i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
00243956000i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 ffffffff 1 1
00243956000i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
00243956000i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
00243956000i[CPU0 ] | MSR_FS_BASE:0000000000000000
00243956000i[CPU0 ] | MSR_GS_BASE:0000000000000000
00243956000i[CPU0 ] | RIP=00000000000060ca (00000000000060ca)
00243956000i[CPU0 ] | CR0=0xe0000011 CR2=0x0000000000000000
00243956000i[CPU0 ] | CR3=0x00001000 CR4=0x000000b0
00243956000i[CPU0 ] 0x00000000000060ca>> jmp .-3 (0x000060c9) : EBFD
00243956000i[CMOS ] Last time is 1379024977 (Fri Sep 13 00:29:37 2013)
00243956000i[ ] restoring default signal behavior
00243956000i[CTRL ] quit_sim called with exit code 1