From a1b993c2e24d2e94fe5284cdbfec712b6d358785 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Mon, 4 Sep 2017 15:18:47 +0900
Subject: Minor changes for SYS.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
---
 ChangeLog           | 2 ++
 mcu/ABOUT-SYS       | 8 ++++----
 mcu/sys-stm32f0.h   | 2 +-
 mcu/sys-stm32f103.h | 2 +-
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 70985f6..acfcfa9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2017-09-04  NIIBE Yutaka  <gniibe@fsij.org>
 
+	* mcu/sys-stm32f103.h (nvic_system_reset): Add noreturn attribute.
+
 	* sys.h: Add mcu/sys-gnu-linux.h.
 
 	* mcu/sys-gnu-linux.c: New.
diff --git a/mcu/ABOUT-SYS b/mcu/ABOUT-SYS
index d285c88..36b4713 100644
--- a/mcu/ABOUT-SYS
+++ b/mcu/ABOUT-SYS
@@ -57,7 +57,7 @@ In the development of Gnuk, we developed:
 
 It is now maintained as example-cdc/sys.c.
 
-There is another version in example-led/sys.c, which also support
+There is another version in example-led/sys.c, which also supports
 STM32F030, as well as STM32F103.  But, it wouldn't be useful for
 STM32F030.  In fact, the file example-fsm-55/sys.c has name sys.c
 but it doesn't include any system routines.
@@ -74,7 +74,7 @@ Later on, we add another point.
     (3) It is good if the executable of Gnuk could be shared among
         different boards.
 
-For (1) and (2), we decided put some useful routines and data which is
+For (1) and (2), we decided put some useful routines and data which are
 not need to be changed.
 
 Now, the first 4KiB of flash ROM consists of:
@@ -84,7 +84,7 @@ Now, the first 4KiB of flash ROM consists of:
 
 SYS consists of:
 
-  Internal: reset entry, end of RAM
+  Internal: reset entry, address of the end of RAM
   Data: board identification
   Routines: board specific
             board independent
@@ -94,7 +94,7 @@ and here is the list of all.
 * Internal routines
 
   reset entry
-  end of RAM
+  address of the end of RAM
 
 * Board identification
 
diff --git a/mcu/sys-stm32f0.h b/mcu/sys-stm32f0.h
index bd2d87d..a08de8d 100644
--- a/mcu/sys-stm32f0.h
+++ b/mcu/sys-stm32f0.h
@@ -111,7 +111,7 @@ usb_lld_sys_shutdown (void)
   (*vector[11]) ();
 }
 
-static inline void
+static inline void __attribute__((noreturn))
 nvic_system_reset (void)
 {
   (*vector[12]) ();
diff --git a/mcu/sys-stm32f103.h b/mcu/sys-stm32f103.h
index 5ebd666..59f6253 100644
--- a/mcu/sys-stm32f103.h
+++ b/mcu/sys-stm32f103.h
@@ -108,7 +108,7 @@ usb_lld_sys_shutdown (void)
   (*vector[11]) ();
 }
 
-static inline void
+static inline void __attribute__((noreturn))
 nvic_system_reset (void)
 {
   (*vector[12]) ();
-- 
cgit v1.2.3