i use the follow code:
Code: Select all
asm volatile("movl %0, %%cr3\n\t"
"movl %%cr0, %%eax\n\t"
"or $0x80000000, %%eax\n\t"
"movl %%eax, %%cr0\n\t"
::"r"(pageDirectory));
00066367781i[CPU0 ] | RAX=00000000 80000011 RBX=0000000000100000
00066367781i[CPU0 ] | RCX=00000000000b8000 RDX=00000000746f6fd6
00066367781i[CPU0 ] | RSP=0000000000067e38 RBP=0000000000067e38
00066367781i[CPU0 ] | RSI=0000000000000000 RDI=0000000000000001
00066367781i[CPU0 ] | R8=0000000000000000 R9=0000000000000000
00066367781i[CPU0 ] | R10=0000000000000000 R11=0000000000000000
00066367781i[CPU0 ] | R12=0000000000000000 R13=0000000000000000
00066367781i[CPU0 ] | R14=0000000000000000 R15=0000000000000000
00066367781i[CPU0 ] | IOPL=0 id vip vif ac vm RF nt of df if tf SF zf af PF cf
00066367781i[CPU0 ] | SEG selector base limit G D
00066367781i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00066367781i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 000fffff 1 1
00066367781i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00066367781i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00066367781i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 000fffff 1 1
00066367781i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00066367781i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00066367781i[CPU0 ] | MSR_FS_BASE:0000000000000000
00066367781i[CPU0 ] | MSR_GS_BASE:0000000000000000
00066367781i[CPU0 ] | RIP=00000000001042c0 (00000000001042c0)
00066367781i[CPU0 ] | CR0=0x80000011 CR1=0x0 CR2=0x0000000080000011
00066367781i[CPU0 ] | CR3=0x00200000 CR4=0x00000000
00066367781i[CPU0 ] >> add byte ptr ds:[eax], al : 0000
00066367781e[CPU0 ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting
I do not know how to solve this problem.Please give me little help.


