Changeset 528 for soft/giet_vm/giet_kernel/ctx_handler.h
- Timestamp:
- Mar 27, 2015, 11:43:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/ctx_handler.h
r449 r528 1 ///////////////////////////////////////////////////////////////////////////////// ////////1 ///////////////////////////////////////////////////////////////////////////////// 2 2 // File : ctx_handler.h 3 3 // Date : 01/04/2012 4 4 // Authors : alain greiner & joel porquet 5 5 // Copyright (c) UPMC-LIP6 6 ///////////////////////////////////////////////////////////////////////////////// ////////6 ///////////////////////////////////////////////////////////////////////////////// 7 7 // The ctx_handler.h and ctx_handler.c files are part of the GIET-VM nano-kernel. 8 8 // This code is used to support context switch when several tasks are executing … … 13 13 // The task context [13] is reserved for the "idle" task that does nothing, and 14 14 // is launched by the scheduler when there is no other runable task. 15 ///////////////////////////////////////////////////////////////////////////////// ////////15 ///////////////////////////////////////////////////////////////////////////////// 16 16 // A task context is an array of 64 words = 256 bytes. 17 17 // It contains copies of processor registers (when the task is preempted) 18 18 // and some general informations associated to a task, such as the peripherals 19 // allocated to the task (private peripheral channel for multi-channels peripherals).20 ///////////////////////////////////////////////////////////////////////////////// ////////19 // allocated to the task (private peripheral channel) 20 ///////////////////////////////////////////////////////////////////////////////// 21 21 // ctx[0] <- *** |ctx[8] <- $8 |ctx[16]<- $16 |ctx[24]<- $24 22 22 // ctx[1] <- $1 |ctx[9] <- $9 |ctx[17]<- $17 |ctx[25]<- $25 … … 36 36 // ctx[38]<- VSID |ctx[46]<- TIM |ctx[54]<- *** |ctx[62]<- *** 37 37 // ctx[39]<- PTPR |ctx[47]<- HBA |ctx[55]<- *** |ctx[63]<- *** 38 ///////////////////////////////////////////////////////////////////////////////// ////////38 ///////////////////////////////////////////////////////////////////////////////// 39 39 40 40 #ifndef _CTX_HANDLER_H … … 94 94 95 95 ///////////////////////////////////////////////////////////////////////////////// 96 // Schedulers array 97 ///////////////////////////////////////////////////////////////////////////////// 98 extern static_scheduler_t _scheduler[]; 99 100 ///////////////////////////////////////////////////////////////////////////////// 101 // External Functions 96 // Extern Functions 102 97 ///////////////////////////////////////////////////////////////////////////////// 103 98 … … 126 121 extern void _idle_task(); 127 122 123 ///////////////////////////////////////////////////////////////////////////////// 124 // This function displays the context of a task identified by the processor 125 // coordinates (x,y,p), and by the local task index ltid. 126 // The string argument can be used for debug. 127 ///////////////////////////////////////////////////////////////////////////////// 128 extern void _ctx_display( unsigned int x, 129 unsigned int y, 130 unsigned int p, 131 unsigned int ltid, 132 char* string ); 128 133 129 134 #endif
Note: See TracChangeset
for help on using the changeset viewer.