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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.8. INTERRUPT MANAGEMENT FUNCTIONS 189<br />

[Additional Notes]<br />

tk ret int is a system call that does not return to the context from which it was called. Even if an<br />

error code is returned when an error of some kind is detected, normally no error checking is performed<br />

in the context from which the system call was invoked, leaving the possibility that the program will<br />

hang. For this reason these system calls do not return even if error is detected.<br />

Using an assembly-language return (REIT) instruction instead of tk ret int to exit the interrupt handler<br />

is possible if it is clear no dispatching will take place on return from the handler (the same task is<br />

guaranteed to continue executing), or if there is no need for dispatching to take place.<br />

Depending on the CPU architecture and method of configuring the OS, it may be possible to perform<br />

delayed dispatching even when an interrupt handler exits using an assembly-language REIT instruction.<br />

In such cases it is allowable for the assembly-language REIT instruction to be interpreted as if it were a<br />

tk ret int system call.<br />

Performing of E CTX error checking when tk ret int is called from a time event handler is implementationdependent.<br />

Depending on the implementation, control may return from a different type of handler.<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!