Some questions about x86-64 modes
Posted: Wed Mar 15, 2017 10:18 pm
Hi,
i am following that tutorial http://wiki.osdev.org/Setting_Up_Long_Mode and am blocked at some points, first "The Switch from Real Mode" so we are in real mode here so why do we use ecx and others 32 bits elements ? Other question, at "Entering the 64-bit Submode" what is the difference between IA32e mode and 64-bit long mode ? I understand the first allows us to execute 32bits code but does it allows us to execute 64bits code also ? And the second, i understand it allows us to execute 64 bits code, what are avantages to use one or other ? Last question, at same point as the previous, there is writed "Our GDT (see chapter 4.8.1 and 4.8.2 of the AMD64 Architecture Programmer's Manual Volume 2) should look like this:", here is specified amd processor does x86-64 intel has the same working ?
i am following that tutorial http://wiki.osdev.org/Setting_Up_Long_Mode and am blocked at some points, first "The Switch from Real Mode" so we are in real mode here so why do we use ecx and others 32 bits elements ? Other question, at "Entering the 64-bit Submode" what is the difference between IA32e mode and 64-bit long mode ? I understand the first allows us to execute 32bits code but does it allows us to execute 64bits code also ? And the second, i understand it allows us to execute 64 bits code, what are avantages to use one or other ? Last question, at same point as the previous, there is writed "Our GDT (see chapter 4.8.1 and 4.8.2 of the AMD64 Architecture Programmer's Manual Volume 2) should look like this:", here is specified amd processor does x86-64 intel has the same working ?