MentOS  0.8.0
The Mentoring Operating System
Public Attributes | List of all members
pt_regs Struct Reference

Interrupt stack frame. More...

Public Attributes

uint32_t gs
 FS and GS have no hardware-assigned uses.
 
uint32_t fs
 FS and GS have no hardware-assigned uses.
 
uint32_t es
 Extra Segment determined by the programmer.
 
uint32_t ds
 Data Segment.
 
uint32_t edi
 32-bit destination register.
 
uint32_t esi
 32-bit source register.
 
uint32_t ebp
 32-bit base pointer register.
 
uint32_t esp
 32-bit stack pointer register.
 
uint32_t ebx
 32-bit base register.
 
uint32_t edx
 32-bit data register.
 
uint32_t ecx
 32-bit counter.
 
uint32_t eax
 32-bit accumulator register.
 
uint32_t int_no
 Interrupt number.
 
uint32_t err_code
 Error code.
 
uint32_t eip
 Instruction Pointer Register.
 
uint32_t cs
 Code Segment.
 
uint32_t eflags
 32-bit flag register.
 
uint32_t useresp
 User application ESP.
 
uint32_t ss
 Stack Segment.
 

Detailed Description

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


The documentation for this struct was generated from the following file: