Relative Content

Tag Archive for rustx86-64mouseosdev

General protection fault when initializing mouse driver

I’m writing an x86_64 os and testing it on qemu pc. I’m trying to implement a mouse driver, but when I reach the end of the initialization function, I get a general protection fault. Another wierd thing that happens which I’m not sure is normal is that all call to wait_mouse end up timeouting (for testing purpouses I ignore the timeout, also because that is what the code I took did). Here is my code (which seems to be what every single hobby kernel online uses):

General protection fault when initializing mouse driver

I’m writing an x86_64 os and testing it on qemu pc. I’m trying to implement a mouse driver, but when I reach the end of the initialization function, I get a general protection fault. Another wierd thing that happens which I’m not sure is normal is that all call to wait_mouse end up timeouting (for testing purpouses I ignore the timeout, also because that is what the code I took did). Here is my code (which seems to be what every single hobby kernel online uses):

General protection fault when initializing mouse driver

I’m writing an x86_64 os and testing it on qemu pc. I’m trying to implement a mouse driver, but when I reach the end of the initialization function, I get a general protection fault. Another wierd thing that happens which I’m not sure is normal is that all call to wait_mouse end up timeouting (for testing purpouses I ignore the timeout, also because that is what the code I took did). Here is my code (which seems to be what every single hobby kernel online uses):