Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 625 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 623
Line 40... Line 40...
40
#include <list.h>
40
#include <list.h>
41
 
41
 
42
#define CPU_STACK_SIZE  STACK_SIZE
42
#define CPU_STACK_SIZE  STACK_SIZE
43
 
43
 
44
struct cpu {
44
struct cpu {
45
    spinlock_t lock;
45
    SPINLOCK_DECLARE(lock);
46
    context_t saved_context;
46
    context_t saved_context;
47
 
47
 
48
    volatile count_t nrdy;
48
    volatile count_t nrdy;
49
    runq_t rq[RQ_COUNT];
49
    runq_t rq[RQ_COUNT];
50
    volatile count_t needs_relink;
50
    volatile count_t needs_relink;
51
 
51
 
52
    spinlock_t timeoutlock;
52
    SPINLOCK_DECLARE(timeoutlock);
53
    link_t timeout_active_head;
53
    link_t timeout_active_head;
54
 
54
 
55
    #ifdef CONFIG_SMP
55
    #ifdef CONFIG_SMP
56
    int kcpulbstarted;
56
    int kcpulbstarted;
57
    waitq_t kcpulb_wq;
57
    waitq_t kcpulb_wq;