summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/imxtools/sbtools/sb.c9
-rw-r--r--utils/imxtools/sbtools/sb.h8
2 files changed, 16 insertions, 1 deletions
diff --git a/utils/imxtools/sbtools/sb.c b/utils/imxtools/sbtools/sb.c
index 05f9836b46..df3622940f 100644
--- a/utils/imxtools/sbtools/sb.c
+++ b/utils/imxtools/sbtools/sb.c
@@ -122,6 +122,13 @@ static void compute_sb_offsets(struct sb_file_t *sb)
122 sb->image_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE; 122 sb->image_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE;
123 sec->sec_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE; 123 sec->sec_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE;
124 } 124 }
125 else if(inst->inst == SB_INST_NOP)
126 {
127 if(g_debug)
128 printf(" NOOP\n");
129 sb->image_size += sizeof(struct sb_instruction_nop_t) / BLOCK_SIZE;
130 sec->sec_size += sizeof(struct sb_instruction_nop_t) / BLOCK_SIZE;
131 }
125 else 132 else
126 { 133 {
127 if(g_debug) 134 if(g_debug)
@@ -445,7 +452,7 @@ enum sb_error_t sb_write_file(struct sb_file_t *sb, const char *filename)
445 if(buf_p - buf != sb_hdr.image_size * BLOCK_SIZE) 452 if(buf_p - buf != sb_hdr.image_size * BLOCK_SIZE)
446 { 453 {
447 if(g_debug) 454 if(g_debug)
448 printf("SB image buffer was not entirely filled !"); 455 printf("SB image buffer was not entirely filled !\n");
449 return SB_ERROR; 456 return SB_ERROR;
450 } 457 }
451 458
diff --git a/utils/imxtools/sbtools/sb.h b/utils/imxtools/sbtools/sb.h
index 02150aa2fb..6f2eecbf4b 100644
--- a/utils/imxtools/sbtools/sb.h
+++ b/utils/imxtools/sbtools/sb.h
@@ -137,6 +137,14 @@ struct sb_instruction_mode_t
137 uint32_t mode; 137 uint32_t mode;
138} __attribute__((packed)); 138} __attribute__((packed));
139 139
140struct sb_instruction_nop_t
141{
142 struct sb_instruction_header_t hdr;
143 uint32_t zero1;
144 uint32_t zero2;
145 uint32_t zero3;
146} __attribute__((packed));
147
140struct sb_instruction_call_t 148struct sb_instruction_call_t
141{ 149{
142 struct sb_instruction_header_t hdr; 150 struct sb_instruction_header_t hdr;