OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 6:56 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: x86-64 context switch
PostPosted: Fri Dec 17, 2021 12:34 pm 
Offline
Member
Member
User avatar

Joined: Tue Jul 13, 2021 5:15 am
Posts: 35
Location: Metaverse
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.


Top
 Profile  
 
 Post subject: Re: x86-64 context switch
PostPosted: Fri Dec 17, 2021 1:24 pm 
Offline
Member
Member

Joined: Sun Aug 20, 2017 10:59 am
Posts: 43
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' ?


Top
 Profile  
 
 Post subject: Re: x86-64 context switch
PostPosted: Sat Dec 18, 2021 11:49 pm 
Offline
Member
Member
User avatar

Joined: Tue Jul 13, 2021 5:15 am
Posts: 35
Location: Metaverse
vhaudiquet wrote:
By 'context switching', do you mean 'scheduling' ? Do you mean more generally 'multitasking' ?


Yeah

_________________
The code does get a bit quirky at night.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 59 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group