[Linux Kernel] Armv8: where is cpu_context_save?

Guillermo Austin Kim|2021년 8월 13일
Posts

[Linux Kernel] Armv8: where is cpu_context_save?

Guillermo Austin Kim|2021년 8월 13일

In case of ARM64 Linux kernel, struct task_struct.thread.cpu_context saves context information of process when preemption occurs. task_struct {#ifdef CONFIG_THREAD_INFO_IN_TASK /* * For reasons of header soup (see current_thread_info()), this * must be the first element of task_struct. */ struct thread_info thread_info;#endif /* -1 unrunnable, 0 runnable, >0 stopped: */ volatile long sta