struct forb_init_attr attr = {
.orb_id = "org.frescor.frsh_app"
};
-
+
frsh_forb_global.orb = forb_init(NULL, NULL, &attr);
if (!frsh_forb_global.orb) {
ret = errno;
goto err;
}
-
frsh_forb_global.fcb = forb_resolve_reference(frsh_forb_global.orb,
fres_contract_broker_reg_name);
if (!frsh_forb_global.fcb) {
ret = fra_registry_init(frsh_forb_global.orb, frsh_forb_global.fcb,
&frsh_forb_global.alloc_executor);
if (ret) goto err;
-
+
#ifdef CONFIG_AQUOSA
ret = aqcpu_fra_init();
if (ret) goto err;
ret = fra_item_init();
if (ret) goto err;
#endif
+
+#ifdef CONFIG_RESOURCE_RTEMS_CPU
+ ret = rtemscpu_fra_init();
+ if (ret) goto err;
+#endif
/* Run resource allocators */
fosa_thread_create(&frsh_forb_global.alloc_executor_thread, NULL,
alloc_executor_thread, NULL);