MentOS  0.8.0
The Mentoring Operating System
Classes | Macros | Typedefs | Variables
kernel.h File Reference

Kernel generic data structure and functions. More...

Go to the source code of this file.

Classes

struct  pt_regs
 Interrupt stack frame. More...
 

Macros

#define K   1024
 Kilobytes.
 
#define M   (1024 * K)
 Megabytes.
 
#define G   (1024 * M)
 Gigabytes.
 

Typedefs

typedef struct pt_regs pt_regs
 Interrupt stack frame. More...
 

Variables

uintptr_t initial_esp
 The initial stack pointer. More...
 

Detailed Description

Kernel generic data structure and functions.

Typedef Documentation

◆ pt_regs

typedef struct pt_regs pt_regs

Interrupt stack frame.

When the CPU moves from Ring3 to Ring0 because of an interrupt, the following registes/values are moved into the kernel's stack

Variable Documentation

◆ initial_esp

uintptr_t initial_esp
extern

The initial stack pointer.

The initial stack pointer.