cpu Struct Reference
[generic]


Public Member Functions

 SPINLOCK_DECLARE (lock)
 SPINLOCK_DECLARE (timeoutlock)

Data Fields

tlb_shootdown_msg_t tlb_messages [TLB_MESSAGE_QUEUE_LEN]
count_t tlb_messages_count
context_t saved_context
atomic_t nrdy
runq_t rq [RQ_COUNT]
volatile count_t needs_relink
link_t timeout_active_head
count_t missed_clock_ticks
int id
int active
int tlb_active
__u16 frequency_mhz
__u32 delay_loop_const
cpu_arch_t arch
thread_tfpu_owner
__u8stack

Detailed Description

CPU structure.

There is one structure like this for every processor.

Definition at line 55 of file cpu.h.


Member Function Documentation

SPINLOCK_DECLARE timeoutlock   ) 
 

SPINLOCK_DECLARE lock   ) 
 


Field Documentation

int active
 

Definition at line 80 of file cpu.h.

cpu_arch_t arch
 

Definition at line 86 of file cpu.h.

Referenced by cpu_print_report().

__u32 delay_loop_const
 

Definition at line 84 of file cpu.h.

thread_t* fpu_owner
 

Definition at line 88 of file cpu.h.

Referenced by thread_destroy().

__u16 frequency_mhz
 

Definition at line 83 of file cpu.h.

Referenced by cpu_print_report().

int id
 

Processor ID assigned by kernel.

Definition at line 78 of file cpu.h.

Referenced by cpu_print_report().

count_t missed_clock_ticks
 

When system clock loses a tick, it is recorded here so that clock() can react. This variable is CPU-local and can be only accessed when interrupts are disabled.

Definition at line 70 of file cpu.h.

volatile count_t needs_relink
 

Definition at line 65 of file cpu.h.

atomic_t nrdy
 

Definition at line 63 of file cpu.h.

Referenced by kcpulb(), and thread_ready().

runq_t rq[RQ_COUNT]
 

Definition at line 64 of file cpu.h.

Referenced by kcpulb(), and thread_ready().

context_t saved_context
 

Definition at line 61 of file cpu.h.

__u8* stack
 

Stack used by scheduler when there is no running thread.

Definition at line 93 of file cpu.h.

link_t timeout_active_head
 

Definition at line 68 of file cpu.h.

Referenced by timeout_unregister().

int tlb_active
 

Definition at line 81 of file cpu.h.

tlb_shootdown_msg_t tlb_messages[TLB_MESSAGE_QUEUE_LEN]
 

Definition at line 58 of file cpu.h.

count_t tlb_messages_count
 

Definition at line 59 of file cpu.h.


Generated on Sun Jun 18 16:30:18 2006 for HelenOS Kernel (amd64) by  doxygen 1.4.6