I want to know where the kernel stores it's registers while performing a context switch on x86 architecture. In ARM I can see struct cpu_context_save in arch/arm/include/asm/thread_info.h but what about x86/x86_64?