diff --git a/include/os_ux.h b/include/os_ux.h index d841d4e28..f05112ad8 100644 --- a/include/os_ux.h +++ b/include/os_ux.h @@ -110,3 +110,5 @@ SYSCALL void os_ux_set_status(unsigned int ux_id, unsigned int status); SYSCALL unsigned int os_ux_get_status(unsigned int ux_id); #endif // HAVE_BLE + +SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_dashboard_mbx(uint32_t cmd, uint32_t param); diff --git a/include/syscalls.h b/include/syscalls.h index e6c9b8a21..40ae1347a 100644 --- a/include/syscalls.h +++ b/include/syscalls.h @@ -198,6 +198,8 @@ #define SYSCALL_os_pki_get_info_ID 0x040000ac #endif // HAVE_LEDGER_PKI +#define SYSCALL_os_dashboard_mbx_ID 0x02000150 + #ifdef HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS #define SYSCALL_os_bolos_custom_ca_get_info_ID 0x01000CA0 #define SYSCALL_os_bolos_custom_ca_revoke_ID 0x00000CA1 diff --git a/src/syscalls.c b/src/syscalls.c index 076b95ece..9eb3256aa 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -1577,6 +1577,14 @@ unsigned int os_ux(bolos_ux_params_t *params) } #endif // !defined(APP_UX) +void os_dashboard_mbx(uint32_t cmd, uint32_t param) +{ + unsigned int parameters[2]; + parameters[0] = (unsigned int) cmd; + parameters[1] = (unsigned int) param; + SVC_Call(SYSCALL_os_dashboard_mbx_ID, parameters); +} + void os_lib_call(unsigned int *call_parameters) { unsigned int parameters[2];