Protected Mode Problems
Posted: Sat Aug 21, 2004 2:58 pm
I have written a MBR + Kernel that runs in a Virtual VM Ware. The Master Boot Record loads the Kernel, sets Protected Mode and then jumps into the kernel. The kernel consists of an Assembler part and an C part. The Assembler-code just starts the main()-function in C. This works great, but I have a problem in the C-file:
All references to constant data are not working. When I call the printf-function of my kernel:
e.g: printf("bla");
The "bla" is not displayed on the screen, but the function is 100% working. The function sets the local video memory. Putting a simple char in the video memory works great, but strings and constants are messed up.
I think it has to do with my GDT.
I am happy about every suggestion or solution.
I've attached the whole project as an .zip file.
Thank you,
Thomas Krause
All references to constant data are not working. When I call the printf-function of my kernel:
e.g: printf("bla");
The "bla" is not displayed on the screen, but the function is 100% working. The function sets the local video memory. Putting a simple char in the video memory works great, but strings and constants are messed up.
I think it has to do with my GDT.
I am happy about every suggestion or solution.
I've attached the whole project as an .zip file.
Thank you,
Thomas Krause