Switch to real mode int 0x13 problem
Posted: Sat Mar 23, 2013 3:11 am
Hello everyone!
I write very simple OS in protected mode, loaded by grub.
I wanted to boot from pendrive so i started switching to real mode (for int 0x13).
I used Napalm's code which is very good, but I had some problems so I made it more simple
I don't change gdt (my GDT is the same like in asm), don't use stack (only 2 calls).
It works on all emulators and real single core machine.
On Athlon X2 switch to real mode makes a reset , if I try read HD it's OK, problem is on pendrive.
When I comment int 0x13 call it's OK, so switching protected/real works fine.
Maybe it's a problem with second core?
Thanks for help in advance
Tomek
I write very simple OS in protected mode, loaded by grub.
I wanted to boot from pendrive so i started switching to real mode (for int 0x13).
I used Napalm's code which is very good, but I had some problems so I made it more simple
I don't change gdt (my GDT is the same like in asm), don't use stack (only 2 calls).
It works on all emulators and real single core machine.
On Athlon X2 switch to real mode makes a reset , if I try read HD it's OK, problem is on pendrive.
When I comment int 0x13 call it's OK, so switching protected/real works fine.
Maybe it's a problem with second core?
Thanks for help in advance
Tomek