- Timestamp:
- 2005-11-14T19:39:26Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- abb79e84
- Parents:
- 35667f8
- Location:
- generic
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/arch.h
r35667f8 re507afa 53 53 */ 54 54 struct the { 55 int preemption_disabled; /**< Preemption disabled counter. */55 count_t preemption_disabled; /**< Preemption disabled counter. */ 56 56 thread_t *thread; /**< Current thread. */ 57 57 task_t *task; /**< Current task. */ -
generic/include/config.h
r35667f8 re507afa 36 36 #define STACK_SIZE PAGE_SIZE 37 37 38 #define CONFIG_MEMORY_SIZE 8*1024*102439 #define CONFIG_HEAP_SIZE 300*102438 #define CONFIG_MEMORY_SIZE (8*1024*1024) 39 #define CONFIG_HEAP_SIZE (300*1024) 40 40 #define CONFIG_STACK_SIZE STACK_SIZE 41 41 -
generic/include/cpu.h
r35667f8 re507afa 46 46 context_t saved_context; 47 47 48 volatile int nrdy;48 volatile count_t nrdy; 49 49 runq_t rq[RQ_COUNT]; 50 volatile int needs_relink;50 volatile count_t needs_relink; 51 51 52 52 spinlock_t timeoutlock; -
generic/include/proc/scheduler.h
r35667f8 re507afa 39 39 #define NEEDS_RELINK_MAX (HZ) 40 40 41 /** Scheduler run queue structure. */ 41 42 struct runq { 42 43 spinlock_t lock; 43 44 link_t rq_head; /**< List of ready threads. */ 44 int n;/**< Number of threads in rq_ready. */45 count_t n; /**< Number of threads in rq_ready. */ 45 46 }; 46 47 … … 52 53 extern void kcpulb(void *arg); 53 54 55 extern void before_thread_runs(void); 56 54 57 /* 55 58 * To be defined by architectures: 56 59 */ 57 60 58 extern void before_thread_runs(void);59 61 extern void before_thread_runs_arch(void); 60 62 -
generic/include/synch/rwlock.h
r35667f8 re507afa 44 44 spinlock_t lock; 45 45 mutex_t exclusive; /**< Mutex for writers, readers can bypass it if readers_in is positive. */ 46 int readers_in;/**< Number of readers in critical section. */46 count_t readers_in; /**< Number of readers in critical section. */ 47 47 }; 48 48 -
generic/include/typedefs.h
r35667f8 re507afa 40 40 41 41 typedef struct config config_t; 42 typedef struct cpu_private_data cpu_private_data_t;43 42 typedef struct cpu_info cpu_info_t; 44 43 -
generic/src/proc/scheduler.c
r35667f8 re507afa 51 51 atomic_t nrdy; 52 52 53 54 53 /** Take actions before new thread runs 55 54 * … … 117 116 * 118 117 */ 119 static struct thread*find_best_thread(void)118 static thread_t *find_best_thread(void) 120 119 { 121 120 thread_t *t;
Note:
See TracChangeset
for help on using the changeset viewer.