<!--

Test configuration for assigning priorities
===========================================

On kernels that support priorities and where priority 128 is used as priority
limit (this is the case for OKL4 and Pistachio), this configuration should
result in the following assignments of physical priorities to process-tree
nodes:

128 : core
128 : core->init
128 : core->init->init.1
112 : core->init->init.1->init.11
 96 : core->init->init.1->init.12
 96 : core->init->init.1->init.12->init.121
 64 : core->init->init.2

-->

<!--
     prio_levels 2 divides priority range 1..128 into
     65..128 (prio  0)
     1..64   (prio -1)
 -->
<config prio_levels="2">
	<parent-provides>
		<service name="ROM"/>
		<service name="PD"/>
		<service name="RM"/>
		<service name="CPU"/>
		<service name="LOG"/>
	</parent-provides>
	<default-route>
		<any-service> <parent/> <any-child/> </any-service>
	</default-route>
	<start name="init.1" priority="0">
		<binary name="init"/>
		<resource name="RAM" quantum="5M"/>
		<!--
		    prio_levels 4 divides priority range 65..128 into
		    113..128 (prio  0)
		    97..112  (prio -1)
		    81..96   (prio -2)
		    65..80   (prio -3)
		 -->
		<config prio_levels="4">
			<parent-provides>
				<service name="ROM"/>
				<service name="PD"/>
				<service name="RM"/>
				<service name="CPU"/>
				<service name="LOG"/>
			</parent-provides>
			<default-route>
				<any-service> <parent/> <any-child/> </any-service>
			</default-route>
			<!-- priority -1 results in platform priority 112 -->
			<start name="init.11" priority="-1">
				<binary name="init"/>
				<resource name="RAM" quantum="512K"/>
				<config/>
			</start>
			<!-- priority -2 results in platform priority 96 -->
			<start name="init.12" priority="-2">
				<binary name="init"/>
				<resource name="RAM" quantum="2M"/>
				<config>
					<parent-provides>
						<service name="ROM"/>
						<service name="RM"/>
						<service name="LOG"/>
					</parent-provides>
					<default-route>
						<any-service> <parent/> </any-service>
					</default-route>
					<start name="init.121">
						<binary name="init"/>
						<resource name="RAM" quantum="768K"/>
						<config/>
					</start>
				</config>
			</start>
		</config>
	</start>
	<!-- priority -1 results in platform priority 64 -->
	<start name="init.2" priority="-1">
		<binary name="init"/>
		<resource name="RAM" quantum="6M"/>
		<config/>
	</start>
</config>
