Skip to content

Commit

Permalink
Add new syscall os_dashboard_mbx
Browse files Browse the repository at this point in the history
  • Loading branch information
yrichard-ledger committed Sep 20, 2024
1 parent 913e1bc commit 16af497
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/os_ux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 2 additions & 0 deletions include/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 16af497

Please sign in to comment.