31 lines
422 B
C
31 lines
422 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _ARCH_PROC_H_
|
|
#define _ARCH_PROC_H_
|
|
|
|
#include <kernel/proc.h>
|
|
|
|
struct proc;
|
|
struct cpu_local {
|
|
struct proc *current_proc;
|
|
vaddr_t kernel_rsp;
|
|
vaddr_t user_rsp;
|
|
u32 cpu_id;
|
|
} PACKED;
|
|
|
|
struct pt_regs {
|
|
u64 rax;
|
|
u64 rbx;
|
|
u64 rdx;
|
|
u64 rdi;
|
|
u64 rsi;
|
|
u64 r8;
|
|
u64 r9;
|
|
u64 r10;
|
|
u64 r11;
|
|
u64 r12;
|
|
u64 r13;
|
|
u64 r14;
|
|
u64 r15;
|
|
} PACKED;
|
|
|
|
#endif /* _ARCH_PROC_H_ */
|