stack size tune
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Sep 2015 00:55:12 +0000 (09:55 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Sep 2015 00:55:12 +0000 (09:55 +0900)
ChangeLog
src/gnuk.ld.in

index 4813d71..889d480 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-09-15  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/gnuk.ld.in (__process3_stack_size__): Increase stack size of
+       GPG thread.
+       (__main_stack_size__): Decrease stack size of exception handlers.
+       (__process1_stack_size__): Decrease stack size of CCID.
+       (__process2_stack_size__): Decrease stack size of RNG.
+
 2015-09-14  Niibe Yutaka  <gniibe@fsij.org>
 
        * src/gnuk.h (LED_GNUK_EXEC): New.
index 8e4e6dc..d4b3c43 100644 (file)
@@ -1,11 +1,11 @@
 /*
  * ST32F103 memory setup.
  */
-__main_stack_size__      = 0x0100;      /* Exception handlers     */
+__main_stack_size__      = 0x0080;      /* Exception handlers     */
 __process0_stack_size__  = 0x0100;      /* main */
-__process1_stack_size__  = 0x0140;      /* ccid */
-__process2_stack_size__  = 0x0180;      /* rng */
-__process3_stack_size__  = 0x1600;      /* gpg */
+__process1_stack_size__  = 0x0100;      /* ccid */
+__process2_stack_size__  = 0x0140;      /* rng */
+__process3_stack_size__  = 0x1640;      /* gpg */
 __process4_stack_size__  = 0x0100;      /* intr: usb */
 __process5_stack_size__  = @MSC_SIZE@;  /* msc */
 __process6_stack_size__  = @TIM_SIZE@;  /* intr: timer */