gpf with error code 0x0000babc

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
ITchimp
Member
Member
Posts: 134
Joined: Sat Aug 18, 2018 8:44 pm

gpf with error code 0x0000babc

Post by ITchimp »

I am trying to add syscall_fork to jame molloy's tutorial so I can fork while in user space...
but when I return, I got mysterious gpf fault (0xd), the error code being pushed is 0xbabc
I followed osdev wiki page and I got this

31 16 15 3 2 1 0
+---+-- --+---+---+-- --+---+---+---+---+
| Reserved | Index | Tbl| E |
+---+-- --+---+---+-- --+---+---+---+---+

for 0xbabc

E is appearly 0

tbl is 0b10 indicating it is LDT related

index is 0x1757

Wait a minute here? I have no LDT why is gpf having anything to do with LDT!!!!
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: gpf with error code 0x0000babc

Post by iansjack »

ITchimp wrote:Wait a minute here? I have no LDT why is gpf having anything to do with LDT!!!!
Because the selector that you are trying to use points to a (non-existent) LDT?
Post Reply