1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +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 <stdbool.h>
#include "trezor.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_read(buf, len) msg_read_common('n', (buf), (len))
#define msg_write(id, ptr) msg_write_common('n', (id), (ptr)) #define msg_write(id, ptr) msg_write_common('n', (id), (ptr))

View File

@ -10,7 +10,7 @@ SECTIONS
{ {
.confidential (NOLOAD) : { .confidential (NOLOAD) : {
*(confidential) *(confidential)
ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!"); ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!");
} >ram } >ram
} }

View File

@ -10,7 +10,7 @@ SECTIONS
{ {
.confidential (NOLOAD) : { .confidential (NOLOAD) : {
*(confidential) *(confidential)
ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!"); ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!");
} >ram } >ram
} }

View File

@ -11,7 +11,7 @@ SECTIONS
{ {
.confidential (NOLOAD) : { .confidential (NOLOAD) : {
*(confidential) *(confidential)
ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!"); ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!");
} >ram } >ram
} }