1#ifndef KERNEL_ARCH_I686_PROCESS_H
2#define KERNEL_ARCH_I686_PROCESS_H
14#include <kernel/types.h>
47 ctx->
esp = (u32)stack;
52 return (
void *)ctx->
esp;
64 return (
void *)ctx->
esp0;
73static inline void *arch_thread_get_user_stack_top(
const thread_context_t *ctx)
u32 esp0
Address of the top of the thread's kernel stack.
Definition: process.h:32
u32 esp_user
Address of the top of the user stack This is only valid for user threads.
Definition: process.h:38
u32 cr3
Physical address of the process's page directory.
Definition: process.h:22
u32 esp
The current stack pointer of the thread.
Definition: process.h:40
Contains all the system-level information about a task.
Definition: process.h:20