MOS Source Code
Loading...
Searching...
No Matches
platform_regs_t Struct Reference

#include <platform_defs.hpp>

Inheritance diagram for platform_regs_t:
Collaboration diagram for platform_regs_t:

Public Member Functions

 platform_regs_t ()
 platform_regs_t (const platform_regs_t *regs)
 platform_regs_t ()
 platform_regs_t (const platform_regs_t *regs)

Public Attributes

reg_t ra
reg_t sp
reg_t gp
reg_t tp
reg_t t0
reg_t t1
reg_t t2
reg_t fp
reg_t s1
reg_t a0
reg_t a1
reg_t a2
reg_t a3
reg_t a4
reg_t a5
reg_t a6
reg_t a7
reg_t s2
reg_t s3
reg_t s4
reg_t s5
reg_t s6
reg_t s7
reg_t s8
reg_t s9
reg_t s10
reg_t s11
reg_t t3
reg_t t4
reg_t t5
reg_t t6
reg_t sstatus
reg_t sepc
reg_t r15
reg_t r14
reg_t r13
reg_t r12
reg_t r11
reg_t r10
reg_t r9
reg_t r8
reg_t di
reg_t si
reg_t bp
reg_t dx
reg_t cx
reg_t bx
reg_t ax
reg_t interrupt_number
reg_t error_code
reg_t ip
reg_t cs
reg_t eflags
reg_t ss

Additional Inherited Members

Static Public Attributes inherited from NamedType<"Platform.Registers">
static constexpr mos::string_view type_name

Detailed Description

Definition at line 52 of file platform_defs.hpp.

Constructor & Destructor Documentation

◆ platform_regs_t() [1/4]

platform_regs_t ( )
inline

Definition at line 54 of file platform_defs.hpp.

Referenced by platform_regs_t().

◆ platform_regs_t() [2/4]

platform_regs_t ( const platform_regs_t * regs)
inline

Definition at line 59 of file platform_defs.hpp.

Here is the call graph for this function:

◆ platform_regs_t() [3/4]

platform_regs_t ( )
inline

Definition at line 21 of file x86_platform.hpp.

◆ platform_regs_t() [4/4]

platform_regs_t ( const platform_regs_t * regs)
inline

Definition at line 26 of file x86_platform.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ ra

reg_t ra

Definition at line 64 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ sp

◆ gp

reg_t gp

Definition at line 64 of file platform_defs.hpp.

Referenced by platform_context_setup_child_thread(), and platform_dump_regs().

◆ tp

reg_t tp

Definition at line 64 of file platform_defs.hpp.

Referenced by platform_arch_syscall(), and platform_dump_regs().

◆ t0

reg_t t0

Definition at line 65 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ t1

reg_t t1

Definition at line 65 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ t2

reg_t t2

Definition at line 65 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ fp

reg_t fp

Definition at line 66 of file platform_defs.hpp.

Referenced by platform_dump_regs(), and platform_dump_stack().

◆ s1

reg_t s1

Definition at line 66 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ a0

◆ a1

◆ a2

◆ a3

reg_t a3

Definition at line 67 of file platform_defs.hpp.

Referenced by platform_dump_regs(), and riscv64_trap_handler().

◆ a4

reg_t a4

Definition at line 67 of file platform_defs.hpp.

Referenced by platform_dump_regs(), and riscv64_trap_handler().

◆ a5

reg_t a5

Definition at line 67 of file platform_defs.hpp.

Referenced by platform_dump_regs(), and riscv64_trap_handler().

◆ a6

reg_t a6

Definition at line 67 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ a7

◆ s2

reg_t s2

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s3

reg_t s3

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s4

reg_t s4

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s5

reg_t s5

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s6

reg_t s6

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s7

reg_t s7

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s8

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s9

reg_t s9

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s10

reg_t s10

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ s11

reg_t s11

Definition at line 68 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ t3

reg_t t3

Definition at line 69 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ t4

reg_t t4

Definition at line 69 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ t5

reg_t t5

Definition at line 69 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ t6

reg_t t6

Definition at line 69 of file platform_defs.hpp.

Referenced by platform_dump_regs().

◆ sstatus

reg_t sstatus

Definition at line 72 of file platform_defs.hpp.

Referenced by riscv64_trap_handler().

◆ sepc

◆ r15

reg_t r15

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ r14

reg_t r14

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ r13

reg_t r13

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ r12

reg_t r12

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ r11

reg_t r11

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ r10

reg_t r10

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ r9

reg_t r9

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs(), and x86_interrupt_entry().

◆ r8

reg_t r8

Definition at line 31 of file x86_platform.hpp.

Referenced by platform_dump_regs().

◆ di

◆ si

◆ bp

reg_t bp

Definition at line 32 of file x86_platform.hpp.

Referenced by platform_dump_regs(), and platform_dump_stack().

◆ dx

◆ cx

reg_t cx

Definition at line 32 of file x86_platform.hpp.

Referenced by platform_dump_regs(), and x86_interrupt_entry().

◆ bx

reg_t bx

Definition at line 32 of file x86_platform.hpp.

Referenced by platform_dump_regs(), and x86_interrupt_entry().

◆ ax

◆ interrupt_number

reg_t interrupt_number

Definition at line 33 of file x86_platform.hpp.

Referenced by x86_handle_exception(), x86_handle_irq(), and x86_interrupt_entry().

◆ error_code

reg_t error_code

Definition at line 33 of file x86_platform.hpp.

Referenced by x86_handle_exception().

◆ ip

◆ cs

◆ eflags

reg_t eflags

◆ ss

reg_t ss

Definition at line 37 of file x86_platform.hpp.

Referenced by platform_dump_regs(), and x86_setup_thread_common().


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