Files
mop3/kernel/amd64/proc.h
kamkow1 e52268cd8e
All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s
First Hello world syscall
2026-01-03 02:04:09 +01:00

21 lines
458 B
C

#ifndef _KERNEL_AMD64_PROC_H
#define _KERNEL_AMD64_PROC_H
#include <amd64/intr.h>
#include <libk/std.h>
/// Top of userspace process' stack
#define PROC_USTACK_TOP 0x00007FFFFFFFF000ULL
/// Size of userspace process' stack
#define USTACK_SIZE (256 * PAGE_SIZE)
/// Platform-dependent process data
struct proc_platformdata {
struct saved_regs regs;
uintptr_t user_stack;
uintptr_t kernel_stack;
uint64_t gs_base;
};
#endif // _KERNEL_AMD64_PROC_H