What does this mean

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
beyondsociety

What does this mean

Post by beyondsociety »

Code: Select all

00000556579i[CPU  ] write_virtual_checks(): write beyond limit, r/w
00000556579i[CPU  ] -----------------------------------
00000556579i[CPU  ] selector->index*8 + 7 = 61447
00000556579i[CPU  ] gdtr.limit = 23
00000556579i[CPU  ] fetch_raw_descriptor: GDT: index > limit
00000556579i[CPU  ] | EAX=00000010  EBX=00009000  ECX=f00bff55  EDX=00000000
00000556579i[CPU  ] | ESP=0000ffff  EBP=00000000  ESI=00000000  EDI=000b8000
00000556579i[CPU  ] | IOPL=0 NV UP DI NG NZ NA PE NC
00000556579i[CPU  ] | SEG selector     base    limit G D
00000556579i[CPU  ] | SEG sltr(index|ti|rpl)     base    limit G D
00000556579i[CPU  ] |  DS:0010( 0002| 0|  0) 00000000 000fffff 1 1
00000556579i[CPU  ] |  ES:0010( 0002| 0|  0) 00000000 000fffff 1 1
00000556579i[CPU  ] |  FS:0010( 0002| 0|  0) 00000000 000fffff 1 1
00000556579i[CPU  ] |  GS:0010( 0002| 0|  0) 00000000 000fffff 1 1
00000556579i[CPU  ] |  SS:9000( 0000| 0|  0) 00090000 0000ffff 0 0
00000556579i[CPU  ] |  CS:0008( 0001| 0|  0) 00000000 000fffff 1 1
00000556579i[CPU  ] | EIP=0000fda3 (0000fda3)
00000556579i[CPU  ] | CR0=0x60000011 CR1=0x00000000 CR2=0x00000000
00000556579i[CPU  ] | CR3=0x00000000 CR4=0x00000000
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:What does this mean

Post by Pype.Clicker »

obviously, you're loading a segment register with trash (pop ds without the appropriate push ?)
This makes the GDT try to look for it but its index goes beyond the GDT limit ... and bang, you got a GPF
beyondsociety

Re:What does this mean

Post by beyondsociety »

How would I fix this problem?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:What does this mean

Post by Pype.Clicker »

Check every pop xs or mov xs,[...] you have in the ASM part, as well as your ISR assembly stubs. Make sure you pop everything you pushed: no more, no less.
Post Reply