mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 18:00:59 +00:00
fix(core): fix sram_u region clearing
[no changelog]
This commit is contained in:
parent
7bd3663930
commit
69dcb84d4e
@ -154,8 +154,8 @@ static void mpu_set_attributes(void) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SYSCALL_DISPATCH
|
#ifdef SYSCALL_DISPATCH
|
||||||
extern uint32_t _uflash_start;
|
extern uint8_t _uflash_start;
|
||||||
extern uint32_t _uflash_end;
|
extern uint8_t _uflash_end;
|
||||||
#define KERNEL_RAM_U_START (KERNEL_RAM_START + KERNEL_RAM_SIZE)
|
#define KERNEL_RAM_U_START (KERNEL_RAM_START + KERNEL_RAM_SIZE)
|
||||||
#define KERNEL_RAM_U_SIZE KERNEL_U_RAM_SIZE
|
#define KERNEL_RAM_U_SIZE KERNEL_U_RAM_SIZE
|
||||||
#define KERNEL_FLASH_U_START (uint32_t) & _uflash_start
|
#define KERNEL_FLASH_U_START (uint32_t) & _uflash_start
|
||||||
|
@ -141,8 +141,8 @@ saes_invoke(void) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern uint32_t sram_u_start;
|
extern uint8_t sram_u_start;
|
||||||
extern uint32_t sram_u_end;
|
extern uint8_t sram_u_end;
|
||||||
|
|
||||||
secbool unpriv_encrypt(const uint8_t* input, size_t size, uint8_t* output,
|
secbool unpriv_encrypt(const uint8_t* input, size_t size, uint8_t* output,
|
||||||
secure_aes_keysel_t key) {
|
secure_aes_keysel_t key) {
|
||||||
|
Loading…
Reference in New Issue
Block a user