1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-07 05:02:38 +00:00

chore(core): remove unused secure_shutdown syscall

[no changelog]
This commit is contained in:
cepetr 2025-01-29 21:34:20 +01:00 committed by cepetr
parent a7d7907efd
commit d8e7dc8cd9
3 changed files with 0 additions and 11 deletions

View File

@ -141,10 +141,6 @@ __attribute((no_stack_protector)) void syscall_handler(uint32_t *args,
args[1] = cycles >> 32;
} break;
case SYSCALL_SECURE_SHUTDOWN: {
secure_shutdown();
} break;
case SYSCALL_REBOOT_DEVICE: {
reboot_device();
} break;

View File

@ -32,7 +32,6 @@ typedef enum {
SYSCALL_SYSTICK_US,
SYSCALL_SYSTICK_US_TO_CYCLES,
SYSCALL_SECURE_SHUTDOWN,
SYSCALL_REBOOT_DEVICE,
SYSCALL_REBOOT_TO_BOOTLOADER,
SYSCALL_REBOOT_AND_UPGRADE,

View File

@ -76,12 +76,6 @@ uint64_t systick_us_to_cycles(uint64_t us) {
#include <sys/bootutils.h>
void secure_shutdown(void) {
syscall_invoke0(SYSCALL_SECURE_SHUTDOWN);
while (1)
;
}
void reboot_to_bootloader(void) {
syscall_invoke0(SYSCALL_REBOOT_TO_BOOTLOADER);
while (1)