From db6ef4d1399b9f9a5001a485a74c41e6b0fef898 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 24 Oct 2018 13:58:17 +0200 Subject: [PATCH] adjust message sizes --- firmware/messages.h | 6 +++--- memory.ld | 2 +- memory_app_1.0.0.ld | 2 +- memory_app_fastflash.ld | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/messages.h b/firmware/messages.h index 030af0e698..26c843ac3e 100644 --- a/firmware/messages.h +++ b/firmware/messages.h @@ -24,9 +24,9 @@ #include #include "trezor.h" -#define MSG_IN_SIZE (12*1024) +#define MSG_IN_SIZE (11 * 1024) -#define MSG_OUT_SIZE (12*1024) +#define MSG_OUT_SIZE (11 * 1024) #define msg_read(buf, len) msg_read_common('n', (buf), (len)) #define msg_write(id, ptr) msg_write_common('n', (id), (ptr)) @@ -34,7 +34,7 @@ const uint8_t *msg_out_data(void); #if DEBUG_LINK -#define MSG_DEBUG_OUT_SIZE (4*1024) +#define MSG_DEBUG_OUT_SIZE (4 * 1024) #define msg_debug_read(buf, len) msg_read_common('d', (buf), (len)) #define msg_debug_write(id, ptr) msg_write_common('d', (id), (ptr)) diff --git a/memory.ld b/memory.ld index 0bdd40b1ea..12855c2c8b 100644 --- a/memory.ld +++ b/memory.ld @@ -10,7 +10,7 @@ SECTIONS { .confidential (NOLOAD) : { *(confidential) - ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!"); + ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!"); } >ram } diff --git a/memory_app_1.0.0.ld b/memory_app_1.0.0.ld index cad296aaf6..897f6603ff 100644 --- a/memory_app_1.0.0.ld +++ b/memory_app_1.0.0.ld @@ -10,7 +10,7 @@ SECTIONS { .confidential (NOLOAD) : { *(confidential) - ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!"); + ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!"); } >ram } diff --git a/memory_app_fastflash.ld b/memory_app_fastflash.ld index 9e00a54820..a5d554e23a 100644 --- a/memory_app_fastflash.ld +++ b/memory_app_fastflash.ld @@ -11,7 +11,7 @@ SECTIONS { .confidential (NOLOAD) : { *(confidential) - ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!"); + ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!"); } >ram }