Browse Source

* enable initialization of exceptions and threading on FreeRTOS

git-svn-id: trunk@46743 -
florian 5 years ago
parent
commit
1cbdc9cc9a
1 changed files with 5 additions and 5 deletions
  1. 5 5
      rtl/freertos/system.pp

+ 5 - 5
rtl/freertos/system.pp

@@ -295,8 +295,8 @@ begin
     programs this does not matter because in the main thread, the variables are located
     programs this does not matter because in the main thread, the variables are located
     in bss
     in bss
 
 
-    SysInitExceptions;
   }
   }
+  SysInitExceptions;
 {$endif FPC_HAS_FEATURE_EXCEPTIONS}
 {$endif FPC_HAS_FEATURE_EXCEPTIONS}
 
 
 {$ifdef FPC_HAS_FEATURE_CONSOLEIO}
 {$ifdef FPC_HAS_FEATURE_CONSOLEIO}
@@ -304,12 +304,12 @@ begin
   InOutRes:=0;
   InOutRes:=0;
 {$endif FPC_HAS_FEATURE_CONSOLEIO}
 {$endif FPC_HAS_FEATURE_CONSOLEIO}
 
 
-{$ifdef FPC_HAS_FEATURE_THREADING}
+{ $ifdef FPC_HAS_FEATURE_THREADING}
   { threading }
   { threading }
-  //InitSystemThreads; // Empty call for embedded anyway
-{$endif FPC_HAS_FEATURE_THREADING}
+  InitSystemThreads;
+{ $endif FPC_HAS_FEATURE_THREADING}
 
 
 {$ifdef FPC_HAS_FEATURE_WIDESTRINGS}
 {$ifdef FPC_HAS_FEATURE_WIDESTRINGS}
-//  initunicodestringmanager;
+  initunicodestringmanager;
 {$endif FPC_HAS_FEATURE_WIDESTRINGS}
 {$endif FPC_HAS_FEATURE_WIDESTRINGS}
 end.
 end.