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!!!!
gpf with error code 0x0000babc
Re: gpf with error code 0x0000babc
Because the selector that you are trying to use points to a (non-existent) LDT?ITchimp wrote:Wait a minute here? I have no LDT why is gpf having anything to do with LDT!!!!