Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hexagon] Don't use {} initialization with FastRPC structures #9033

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/runtime/hexagon/launcher/launcher_android.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#include "launcher_rpc.h"

AEEResult enable_unsigned_pd(bool enable) {
remote_rpc_control_unsigned_module data{static_cast<int>(enable), CDSP_DOMAIN_ID};
remote_rpc_control_unsigned_module data;
data.domain = CDSP_DOMAIN_ID;
data.enable = static_cast<int>(enable);
AEEResult rc = remote_session_control(DSPRPC_CONTROL_UNSIGNED_MODULE, &data, sizeof(data));
if (rc != AEE_SUCCESS) {
std::cout << "error " << (enable ? "enabling" : "disabling") << " unsigned PD\n";
Expand All @@ -41,8 +43,11 @@ AEEResult enable_unsigned_pd(bool enable) {
}

AEEResult set_remote_stack_size(int size) {
remote_rpc_thread_params th_data{CDSP_DOMAIN_ID, -1, size};
AEEResult rc = remote_session_control(FASTRPC_THREAD_PARAMS, &th_data, sizeof(th_data));
remote_rpc_thread_params data;
data.domain = CDSP_DOMAIN_ID;
data.prio = -1;
data.stack_size = size;
AEEResult rc = remote_session_control(FASTRPC_THREAD_PARAMS, &data, sizeof(data));
if (rc != AEE_SUCCESS) {
std::cout << "error setting remote stack size: " << std::hex << rc << '\n';
}
Expand Down