Page 1 of 1

gpf with error code 0x0000babc

Posted: Sat Sep 05, 2020 2:14 am
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!!!!

Re: gpf with error code 0x0000babc

Posted: Sat Sep 05, 2020 2:32 am
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?