struct hal_msg_cmd_register_module *m = buf;
if (m->service_id > HAL_SERVICE_ID_MAX || services[m->service_id]) {
- ipc_send_error(hal_cmd_io, HAL_SERVICE_ID_CORE, 0x01);
+ ipc_send_error(hal_cmd_io, HAL_SERVICE_ID_CORE,
+ HAL_ERROR_FAILED);
return;
}
struct hal_msg_cmd_unregister_module *m = buf;
if (m->service_id > HAL_SERVICE_ID_MAX || !services[m->service_id]) {
- ipc_send_error(hal_cmd_io, HAL_SERVICE_ID_CORE, 0x01);
+ ipc_send_error(hal_cmd_io, HAL_SERVICE_ID_CORE,
+ HAL_ERROR_FAILED);
return;
}
service_unregister(buf, len);
break;
default:
- ipc_send_error(hal_cmd_io, HAL_SERVICE_ID_CORE, 0x01);
+ ipc_send_error(hal_cmd_io, HAL_SERVICE_ID_CORE,
+ HAL_ERROR_FAILED);
break;
}
}
handle_service_core(msg->opcode, buf + sizeof(*msg), msg->len);
break;
default:
- ipc_send_error(hal_cmd_io, msg->service_id, 0x01);
+ ipc_send_error(hal_cmd_io, msg->service_id, HAL_ERROR_FAILED);
break;
}