AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
arch_cpu Struct Reference

A CPU's aarch64 state (struct cpu's arch). More...

#include <cpu.h>

Data Fields

struct pmap * pmap
int tick_switch
struct thread * fp_thread
uintptr_t idle_stack
uint32_t apic_id
struct x86_gdt_entry gdt [X86_GDT_NR]
struct x86_tss tss
struct thread * fpu_thread
struct x86_regs * irq_regs
int ticking
uint64_t tlb_flushes
uint64_t kernel_gen

Detailed Description

A CPU's aarch64 state (struct cpu's arch).

A CPU's x86 state (struct cpu's arch).

Definition at line 51 of file cpu.h.

Field Documentation

◆ apic_id

uint32_t arch_cpu::apic_id

Definition at line 125 of file cpu.h.

Referenced by arch_cpu_kick(), tlb_shootdown(), x86_apic_setup(), and x86_smp_init().

◆ fp_thread

struct thread* arch_cpu::fp_thread

Definition at line 54 of file cpu.h.

◆ fpu_thread

struct thread* arch_cpu::fpu_thread

Definition at line 129 of file cpu.h.

Referenced by arch_thread_kill().

◆ gdt

struct x86_gdt_entry arch_cpu::gdt[X86_GDT_NR]

Definition at line 126 of file cpu.h.

Referenced by x86_gdt_setup().

◆ idle_stack

uintptr_t arch_cpu::idle_stack

Definition at line 55 of file cpu.h.

Referenced by aarch64_init(), ap_boot(), x86_cpu_init(), and x86_smp_init().

◆ irq_regs

struct x86_regs* arch_cpu::irq_regs

Definition at line 130 of file cpu.h.

◆ kernel_gen

uint64_t arch_cpu::kernel_gen

Definition at line 135 of file cpu.h.

Referenced by arch_lock_taken().

◆ pmap

struct pmap * arch_cpu::pmap

Definition at line 52 of file cpu.h.

◆ tick_switch

int arch_cpu::tick_switch

Definition at line 53 of file cpu.h.

◆ ticking

int arch_cpu::ticking

Definition at line 132 of file cpu.h.

◆ tlb_flushes

uint64_t arch_cpu::tlb_flushes

Definition at line 134 of file cpu.h.

◆ tss

struct x86_tss arch_cpu::tss

Definition at line 127 of file cpu.h.

Referenced by x86_gdt_setup().


The documentation for this struct was generated from the following files:
  • kernel/arch/aarch64/include/cpu/cpu.h
  • kernel/arch/i386/include/cpu/cpu.h