30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

210 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

[Additional Notes]<br />

Extended SVC handlers as well as break functions, startup functions, cleanup functions and event<br />

handling functions all have the equivalent of the TA HLNG attribute only. There is no means of designating<br />

the TA ASM attribute.<br />

Prior to initialization of a resource control block by a startup function, and after resource release by a<br />

cleanup function, the behavior if an extended SVC is called by a task belonging to that resource group<br />

is dependent on the subsystem implementation. The OS does not make any attempt to prevent this<br />

kind of call. Basically it is necessary to avoid calling an extended SVC before calling a startup function<br />

and after calling a cleanup function.<br />

There may be cases where, for some reason or other, a break function, cleanup function or event handling<br />

function is called without first calling a startup function. These functions must execute normally even in<br />

such a case. A resource control block is cleared to 0 when it is first created and when cleanup processing<br />

is executed by tk cln ssy. Accordingly, even if it was not initialized properly by a startup function,<br />

the resource control block can still be assumed to have been cleared to 0.<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!