Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

ST20-C1 Datasheet(PDF) 84 Page - STMicroelectronics

No. de pieza ST20-C1
Descripción Electrónicos  Instruction Set Reference Manual
PDF  205 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST20-C1 Datasheet(HTML) 84 Page - STMicroelectronics

Back Button ST20-C1 Datasheet HTML 80Page - STMicroelectronics ST20-C1 Datasheet HTML 81Page - STMicroelectronics ST20-C1 Datasheet HTML 82Page - STMicroelectronics ST20-C1 Datasheet HTML 83Page - STMicroelectronics ST20-C1 Datasheet HTML 84Page - STMicroelectronics ST20-C1 Datasheet HTML 85Page - STMicroelectronics ST20-C1 Datasheet HTML 86Page - STMicroelectronics ST20-C1 Datasheet HTML 87Page - STMicroelectronics ST20-C1 Datasheet HTML 88Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 84 / 205 page
background image
7.8 Scheduling kernels
84/205
®
The following code would set up a process control block:
ld entry_point; ld control_block; stnl pw.Iptr;
ld work_space_top; arot; stnl pw.Wptr;
The process is then inactive, so it can be added to the back of the scheduling queue
using
run, exactly as in section 7.5.
7.8
Scheduling kernels
A scheduling kernel can be written to override the default scheduling behavior of the
ST20-C1, but still using the very fast micro-code scheduling. The basis of such a
scheduler would be trap handlers to trap the system exceptions el_idle_trap,
el_run_trap, el_stop_trap, el_timeslice_trap and el_schedule_exception_trap.
When these traps are taken, a scheduling event is due or the processor has become
idle. The trap replaces the default scheduling action. When the trap handler returns,
the CPU will continue with the next instruction. Traps are described in Chapter 6.
Additional system calls may be implemented by user-defined trap handlers, called
using
ecall.
7.9
Semaphores
Semaphores are a mechanism for managing access to shared resources within a
multi-tasking environment. The semaphore operations are provided by the instructions
listed in Table 7.4.
The semaphore instructions act on a semaphore control block, defined in Table 7.5.
Each semaphore has a semaphore control block, which implements a linked list of
waiting processes and a count of free resources. The count should be initialized to the
total number of available resources (usually one), and the front list pointer should be
initialized to the empty value
NotProcess. For fast signalling and minimal interrupt
latency, semaphore control blocks should be in fast memory, preferably on-chip.
Mnemonic
Name
signal
signal
wait
wait
stop
stop process
run
run process
Table 7.4 Semaphore instructions
Word offset
Slot name
Purpose
2
s.Back
The back of the semaphore waiting list.
1
s.Front
The front of the semaphore waiting list.
0
s.Count
The unsigned number of extraprocesses that the semaphore will allow
to continue running on a
wait request.
Table 7.5 Semaphore control block



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com