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.

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

4.8 Interrupt Management Functions<br />

Interrupt management functions are for defining and manipulating handlers for external interrupts and<br />

CPU exceptions.<br />

An interrupt handler runs as a task-independent portion. System calls can be invoked in a taskindependent<br />

portion in the same way as in a task portion, but the following restriction applies to system<br />

call issuing in a task-independent portion.<br />

• A system call that implicitly designates the invoking task, or one that may put the invoking task<br />

in WAIT state cannot be issued. Error code E CTX is returned in such cases.<br />

During task-independent portion execution, task switching (dispatching) does not occur. If system<br />

call processing results in a dispatch request, the dispatch is delayed until processing leaves the taskindependent<br />

portion. This is called delayed dispatching.<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!