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.

Chapter 6<br />

T-<strong>Kernel</strong>/DS Functions<br />

This chapter gives detailed explanations of the functions provided by T-<strong>Kernel</strong> Debugger Support (T-<br />

<strong>Kernel</strong>/DS).<br />

T-<strong>Kernel</strong>/DS provides functions enabling a debugger to reference T-<strong>Kernel</strong> internal states and run a<br />

trace. The functions provided by T-<strong>Kernel</strong>/DS are only for debugger use and not for use by applications<br />

or other programs.<br />

[General cautions and notes]<br />

• Except where otherwise noted, T-kernel/DS service calls (td_—) can be called from a taskindependent<br />

portion and while dispatching and interrupts are disabled. There may be some<br />

limitations, however, imposed by particular implementations.<br />

• When T-<strong>Kernel</strong>/DS service calls (td_—) are invoked in interrupts disabled state, they are processed<br />

without enabling interrupts. Other OS states likewise remain unchanged during this processing.<br />

Changes in OS states may occur if a service call is invoked while interrupts or dispatching<br />

are enabled, since the OS continues operating.<br />

• T-<strong>Kernel</strong>/DS service calls (td_—) cannot be invoked from a lower protection level than that at<br />

which T-<strong>Kernel</strong>/OS system calls can be invoked (lower than TSVCLimit)(E OACV).<br />

• Error codes such as E PAR, E MACV, and E CTX that always have the possibility of occurring are not<br />

described here unless there is some special reason for doing so.<br />

• Detection of error codes E PAR, E MACV, and E CTX is implementation-dependent; these may not<br />

always be detected as error. For this reason, the service calls must not be invoked in such a way<br />

that these errors might occur.<br />

6.1 <strong>Kernel</strong> Internal State Acquisition Functions<br />

These functions enable a debugger to acquire T-<strong>Kernel</strong> internal states. They include functions for<br />

getting a list of objects, getting task precedence, getting the order in which tasks are queued, getting<br />

the status of objects, system, and task registers, and getting time.<br />

259

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

Saved successfully!

Ooh no, something went wrong!