iPXE
Data Fields
i386_seg_regs Struct Reference

A segment register dump. More...

#include <registers.h>

Data Fields

uint16_t cs
 
uint16_t ss
 
uint16_t ds
 
uint16_t es
 
uint16_t fs
 
uint16_t gs
 

Detailed Description

A segment register dump.

The i386 has no equivalent of the pushal or popal instructions for the segment registers. We adopt the convention of always using the sequences

pushw %gs ; pushw %fs ; pushw %es ; pushw %ds ; pushw %ss ; pushw %cs

and

addw $4, %sp ; popw %ds ; popw %es ; popw %fs ; popw %gs

This is the data structure that is created and read back by these instruction sequences.

Definition at line 138 of file registers.h.

Field Documentation

◆ cs

uint16_t i386_seg_regs::cs

Definition at line 139 of file registers.h.

Referenced by _dump_regs().

◆ ss

uint16_t i386_seg_regs::ss

Definition at line 140 of file registers.h.

Referenced by _dump_regs().

◆ ds

uint16_t i386_seg_regs::ds

◆ es

uint16_t i386_seg_regs::es

◆ fs

uint16_t i386_seg_regs::fs

Definition at line 143 of file registers.h.

Referenced by _dump_regs().

◆ gs

uint16_t i386_seg_regs::gs

Definition at line 144 of file registers.h.

Referenced by _dump_regs().


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