Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Selector to gate ?

carsten2
Beginner
411 Views
Intel docu states for the far Call (FF /3) m16:32

In 64-bit mode: If selector points to a gate, then RIP = 64-bit displacement taken from gate; else RIP = zero extended 32-bit offset from far pointer referenced in the instruction.

When points a selector to a gate and when not ? NULL selector, flags ?
0 Kudos
1 Reply
SHIH_K_Intel
Employee
411 Views
Quoting - carsten2
Intel docu states for the far Call (FF /3) m16:32

In 64-bit mode: If selector points to a gate, then RIP = 64-bit displacement taken from gate; else RIP = zero extended 32-bit offset from far pointer referenced in the instruction.

When points a selector to a gate and when not ? NULL selector, flags ?

Since a far call allow you to transfer control to user code (at any offset you specify) or from non-privileged space into privileged system code (for example, acall gate). The entry point of the call gate were already set up by the system executive. So you can not expect a user program can enter into privileged system code from ring 3at any arbitrary offset.
If far call were used in other situations, the processor will abide by where you tell it to go.
0 Kudos
Reply