mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
adjust message sizes
This commit is contained in:
parent
4ef8acb123
commit
db6ef4d139
@ -24,9 +24,9 @@
|
||||
#include <stdbool.h>
|
||||
#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))
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user