Found a couple of vague references to this on various websites. Seems that Intel supports the 16:64 indirect jump and AMD does not.
- gerryg400
long mode GDT reload
Re: long mode GDT reload
If a trainstation is where trains stop, what is a workstation ?
Re: long mode GDT reload
Owen, don't you need to reload cs to get to ring 3 to run user mode code ?I never reload the GDT following that. At no point do I need to reload CS except for when I do my initial entry to long mode.
Btw, I agree with StephanVanSchaik and use iret for this.
- gerryg400
If a trainstation is where trains stop, what is a workstation ?
- Owen
- Member
- Posts: 1700
- Joined: Fri Jun 13, 2008 3:21 pm
- Location: Cambridge, United Kingdom
- Contact:
Re: long mode GDT reload
Sure, but thats done implicitly in the iret or sysret, rather than by a direct jump. I mean the kernel CS.gerryg400 wrote:Owen, don't you need to reload cs to get to ring 3 to run user mode code ?I never reload the GDT following that. At no point do I need to reload CS except for when I do my initial entry to long mode.
Btw, I agree with StephanVanSchaik and use iret for this.
- gerryg400