1#ifndef KERNEL_ARCH_I686_PROCESS_H
2#define KERNEL_ARCH_I686_PROCESS_H
15#include <kernel/types.h>
58 ctx->
esp = (u32)stack;
63 return (
void *)ctx->
esp;
99 return (
void *)ctx->
esp0;
108static inline void *arch_thread_get_user_stack_top(
const thread_context_t *ctx)
116 return (
void *)ctx->
frame.frame.eip;
struct x86_regs regs
Snapshot of the registers at the time the interrupt happened.
Definition: interrupts.h:121
struct interrupt_frame frame
Frame pushed during the last userland -> kernel context switch.
Definition: process.h:51
u32 esp0
Address of the top of the thread's kernel stack.
Definition: process.h:33
u32 esp_user
Address of the top of the user stack This is only valid for user threads.
Definition: process.h:39
u32 cr3
Physical address of the process's page directory.
Definition: process.h:23
u32 esp
The thread's current stack pointer.
Definition: process.h:48
Frame passed onto the interrupt handlers by our stub handler.
Definition: interrupts.h:118
Contains all the system-level information about a task.
Definition: process.h:21