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.

4.10. SUBSYSTEM MANAGEMENT FUNCTIONS 215<br />

shown in Figure 4.15, resource control blocks with resource IDs #1, #2, and #3 must automatically be<br />

created for the subsystem.<br />

[Additional Notes]<br />

A resource ID is in some cases used also as a logical space ID (lsid). Resource IDs should therefore be<br />

assigned values that can be used directly as logical space IDs or that can easily be converted for use as<br />

logical space IDs.<br />

A system resource group always exists as a special resource group. One system resource group always<br />

exists, moreover, from the time the system boots, without waiting for creation by tk cre res. The<br />

system resource group cannot be deleted. Other than the requirement that it must always exist, a<br />

system resource group is no different from other resource groups.<br />

Resource control block creation might be implemented in either of the following ways.<br />

(A) At the time of subsystem definition (tk def ssy), create as many resource control blocks as the<br />

maximum number of resource groups, and use tk cre res simply to assign them.<br />

(B) Use tk cre res to create as many resource control blocks as there are subsystems and assign<br />

them.<br />

Since the specification requires clearing a resource control block to 0 when it is initially created, the<br />

timing of this clearing to 0 differs between methods (A) and (B). This difference should not have much of<br />

an effect; but since method (A) will have fewer cases of clearing to 0, subsystems must be implemented<br />

assuming (A). Method (A) is also recommended for the OS implementation.<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!