1
0
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:
Pavol Rusnak 2018-10-24 13:58:17 +02:00
parent 4ef8acb123
commit db6ef4d139
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 6 additions and 6 deletions

View File

@ -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))

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}