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.

1.2. SCALABILITY 3<br />

• Middleware must be designed to meet all the T-<strong>Kernel</strong> requirements. It cannot be limited to<br />

specific target systems but must be applicable to a variety of systems and scales.<br />

• Providing users with the means for removing or skipping unnecessary functions is allowed.<br />

A “scaled-down implementation” means one that does not provide the entire range of specified functions<br />

but does not behave abnormally (return error, etc.) if a non-implemented function is called. It is<br />

important, in other words, that middleware developed for large-scale systems provide an environment<br />

enabling it to run without problem on other systems. For example, a system that does not use an MMU<br />

can implement the T-<strong>Kernel</strong>/SM LockSpace() as follows.<br />

#define LockSpace(addr, len)<br />

(E_OK)<br />

The absence of an MMU does not, however, make it allowable not to implement LockSpace() or to<br />

return the error code E NOSPT.<br />

At the same time, when middleware is created, leaving out LockSpace() from an implementation because<br />

the target system does not use an MMU would prevent the middleware from supporting a system that<br />

does use an MMU.<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!