Skip to content

Commit cb5cfae

Browse files
Merge pull request #773 from LedgerHQ/syscall_dashboard_mbx
Add new syscall os dashboard mailbox
2 parents 0707349 + cf75494 commit cb5cfae

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

include/os_ux.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@ SYSCALL void os_ux_set_status(unsigned int ux_id, unsigned int status);
110110

111111
SYSCALL unsigned int os_ux_get_status(unsigned int ux_id);
112112
#endif // HAVE_BLE
113+
114+
SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_dashboard_mbx(uint32_t cmd, uint32_t param);

include/syscalls.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@
198198
#define SYSCALL_os_pki_get_info_ID 0x040000ac
199199
#endif // HAVE_LEDGER_PKI
200200

201+
#define SYSCALL_os_dashboard_mbx_ID 0x02000150
202+
201203
#ifdef HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS
202204
#define SYSCALL_os_bolos_custom_ca_get_info_ID 0x01000CA0
203205
#define SYSCALL_os_bolos_custom_ca_revoke_ID 0x00000CA1

src/syscalls.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,14 @@ unsigned int os_ux(bolos_ux_params_t *params)
15771577
}
15781578
#endif // !defined(APP_UX)
15791579

1580+
void os_dashboard_mbx(uint32_t cmd, uint32_t param)
1581+
{
1582+
unsigned int parameters[2];
1583+
parameters[0] = (unsigned int) cmd;
1584+
parameters[1] = (unsigned int) param;
1585+
SVC_Call(SYSCALL_os_dashboard_mbx_ID, parameters);
1586+
}
1587+
15801588
void os_lib_call(unsigned int *call_parameters)
15811589
{
15821590
unsigned int parameters[2];

0 commit comments

Comments
 (0)