PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Fields
switch_threads_frame Struct Reference

switch_thread()'s stack frame. More...

#include <switch.h>

Collaboration diagram for switch_threads_frame:
Collaboration graph
[legend]

Data Fields

uint32_t edi
 0: Saved edi. More...
 
uint32_t esi
 4: Saved esi. More...
 
uint32_t ebp
 8: Saved ebp. More...
 
uint32_t ebx
 12: Saved ebx. More...
 
void(* eip )(void)
 16: Return address. More...
 
struct threadcur
 20: switch_threads()'s CUR argument. More...
 
struct threadnext
 24: switch_threads()'s NEXT argument. More...
 

Detailed Description

switch_thread()'s stack frame.

Definition at line 6 of file switch.h.

Field Documentation

◆ cur

struct thread* switch_threads_frame::cur

20: switch_threads()'s CUR argument.

Definition at line 13 of file switch.h.

◆ ebp

uint32_t switch_threads_frame::ebp

8: Saved ebp.

Definition at line 10 of file switch.h.

Referenced by print_stacktrace(), and thread_create().

◆ ebx

uint32_t switch_threads_frame::ebx

12: Saved ebx.

Definition at line 11 of file switch.h.

◆ edi

uint32_t switch_threads_frame::edi

0: Saved edi.

Definition at line 8 of file switch.h.

◆ eip

void(* switch_threads_frame::eip) (void)

16: Return address.

Definition at line 12 of file switch.h.

Referenced by print_stacktrace(), and thread_create().

◆ esi

uint32_t switch_threads_frame::esi

4: Saved esi.

Definition at line 9 of file switch.h.

◆ next

struct thread* switch_threads_frame::next

24: switch_threads()'s NEXT argument.

Definition at line 14 of file switch.h.


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