File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
obc/app/modules/comms_link_mgr Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -299,31 +299,6 @@ void obcTaskFunctionCommsMgr(void *pvParameters) {
299299
300300 initAllCc1120TxRxSemaphores ();
301301
302- uint32_t stack_chk_guard_change (void ) {
303- obc_error_code_t errCode ;
304- uint32_t newStackGuard = 0 ;
305- for (uint8_t i = 0 ; i < STACK_BYTES ; i ++ ) {
306- uint8_t randomByte ;
307- LOG_IF_ERROR_CODE (cc1120Rng (& randomByte ));
308- if (errCode == OBC_ERR_CODE_SUCCESS ) {
309- (newStackGuard ) = (newStackGuard << 8 ) | randomByte ;
310- } else {
311- return 0xDEADBEEF ;
312- }
313- }
314- return newStackGuard ;
315- }
316-
317- static void __attribute__((no_stack_protector )) __construct_stk_chk_guard () {
318- if (__stack_chk_guard == (void * )0xDEADBEEF ) {
319- __stack_chk_guard = (void * )stack_chk_guard_change ();
320- }
321- }
322-
323- // #ifdef CONFIG_CC1120
324- LOG_IF_ERROR_CODE (cc1120Init ());
325- __construct_stk_chk_guard ();
326- // #endif // CONFIG_CC1120
327302 while (1 ) {
328303 comms_event_t queueMsg ;
329304
You can’t perform that action at this time.
0 commit comments