Skip to content

Commit 5e8e736

Browse files
Ron EldorRon Eldor
authored andcommitted
Remove driver intialization from boot code
Remove Cryptocell driver initialization, which was accidently returned in rebase.
1 parent 245977f commit 5e8e736

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

platform/mbed_sdk_boot.c

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
#include <stdlib.h>
1919
#include <stdint.h>
2020
#include "cmsis.h"
21-
#if DEVICE_CRYPTOCELL
22-
#include "sns_silib.h"
23-
#endif
21+
2422
/* This startup is for mbed 2 baremetal. There is no config for RTOS for mbed 2,
2523
* therefore we protect this file with MBED_CONF_RTOS_PRESENT
2624
* Note: The new consolidated started for mbed OS is in rtos/mbed_boot code file.
@@ -66,19 +64,6 @@ void mbed_copy_nvic(void)
6664
#endif /* NVIC_RAM_VECTOR_ADDRESS */
6765
#endif /* !defined(__CORTEX_M0) && !defined(__CORTEX_A9) */
6866
}
69-
#if DEVICE_CRYPTOCELL
70-
#if defined(TOOLCHAIN_GCC)
71-
CRYS_RND_State_t rndState = {0};
72-
CRYS_RND_WorkBuff_t rndWorkBuff = {0};
73-
#else
74-
CRYS_RND_State_t rndState;
75-
CRYS_RND_WorkBuff_t rndWorkBuff;
76-
#endif
77-
78-
CRYS_RND_State_t* rndState_ptr;
79-
CRYS_RND_WorkBuff_t* rndWorkBuff_ptr;
80-
81-
#endif
8267

8368
/* Toolchain specific main code */
8469

@@ -95,11 +80,6 @@ int $Sub$$main(void)
9580
void _platform_post_stackheap_init(void)
9681
{
9782
mbed_copy_nvic();
98-
#if DEVICE_CRYPTOCELL
99-
if ( SaSi_LibInit( &rndState , &rndWorkBuff ) ) {
100-
mbed_die();
101-
}
102-
#endif
10383
mbed_sdk_init();
10484
}
10585

@@ -110,11 +90,6 @@ extern int __real_main(void);
11090
void software_init_hook(void)
11191
{
11292
mbed_copy_nvic();
113-
#if DEVICE_CRYPTOCELL
114-
if ( SaSi_LibInit( &rndState , &rndWorkBuff ) ) {
115-
mbed_die();
116-
}
117-
#endif
11893
mbed_sdk_init();
11994
software_init_hook_rtos();
12095
}

rtos/TARGET_CORTEX/mbed_boot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000)
173173
#include <DLib_Threads.h>
174174
#endif
175-
176175
/* Heap limits - only used if set */
177176
extern unsigned char *mbed_heap_start;
178177
extern uint32_t mbed_heap_size;

0 commit comments

Comments
 (0)