![]() |
![]() |
![]() |
SharedLibraryDescription
The SharedLibraryDescription element is the root element of the SharedLibraryDescription document type. A SharedLibraryDescription document describes the configuration of a shared library.
You create a shared library configuration as a file with SharedLibraryDescription as its root element. You include the shared library configuration file into your system configuration using an xi:include element in the SharedLibrary element. Optionally, you can include the SharedLibraryDescription document inline in the SharedLibrary element.
When creating a shared library description as a separate file, you should begin with an XML declaration:
<?xml version="1.0" encoding="UTF-8"?>
Following the XML declaration, insert the SharedLibraryDescription element:
<SharedLibraryDescription xmlns="http://www.windriver.com/vxWorks653/ConfigRecord" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.windriver.com/vxWorks653/ConfigRecord ../cleanschema/Application.xsd" SystemSharedLibrary="true"> </SharedLibraryDescription>
The first three attributes are standard and should be entered exactly as shown. The xsi:schemaLocation attribute associates the namespace (http://www.windriver.com/vxWorks653/ConfigRecord) with the schema file (Application.xsd). You must enter the correct path for the schema file on your system. The location of the schema files in the installation is /target/config/xml/cleanschema. If you use a schema-aware XML editor, it will probably enter these attributes for you.
Required
None
If this library contains a partition operating system, then it must be configured as a system shared library, the value must be true. If library does not contain a partition operating system, the value must be false.
Required
None
Boolean
N/A
false: The library is not a system shared library
true: The library is a system shared library
None
The virtual address of the shared library.
You can calculate the virtual address by hand, by constructing a virtual memory map of the module and placing each object in a suitable location, or you can use the VxWorks 653 tools to calculate addresses for you.
To calculate a suitable virtual address for a shared library, use the following procedure:
Required
ConfigRecord
Unsigned 32 bit integer
N/A
None
The upper bound is dependent on system configuration.
The value must be a multiple of the CPU page size.
The location of the partition virtual address must be consistent with the rules for the placement of various types of memory regions on the target hardware. This means that it must not be located closer to an incompatible memory region than specified by CoreOSDescription/KernelConfiguration/@addressSpaceRegionAllocationUnit.
Generated on 2007-10-15 17:17:22.