x86-64 context switch
x86-64 context switch
Does anyone got a tutorial (preferred video) about context switching in x64 bit mode? I watched some videos on YouTube and tried to do some research on my own but it didn't help me to understand too much (because it was only the source code or the explanation was too straightforward).
The code does get a bit quirky at night.
-
- Member
- Posts: 43
- Joined: Sun Aug 20, 2017 10:59 am
Re: x86-64 context switch
You should not rely on nor look for tutorials.
Context switching is just changing the virtual address space (i.e. page directories/pdpts) and the content of the registers, basically.
There can be some issues with specific registers but i don't believe they apply to x64.
Context switching is just that. Saving current state in a structure somewhere and restoring state from another structure.
Why are you looking for a tutorial ?
By 'context switching', do you mean 'scheduling' ? Do you mean more generally 'multitasking' ?
Context switching is just changing the virtual address space (i.e. page directories/pdpts) and the content of the registers, basically.
There can be some issues with specific registers but i don't believe they apply to x64.
Context switching is just that. Saving current state in a structure somewhere and restoring state from another structure.
Why are you looking for a tutorial ?
By 'context switching', do you mean 'scheduling' ? Do you mean more generally 'multitasking' ?
Re: x86-64 context switch
Yeahvhaudiquet wrote:By 'context switching', do you mean 'scheduling' ? Do you mean more generally 'multitasking' ?
The code does get a bit quirky at night.