From ec2c3a96c54b6bd5b70e3da6409b8288ed85f1db Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 4 Jun 2015 08:12:58 -0600 Subject: [PATCH] Correct some comments. Noted by Jouko Holopainen --- arch/arm/src/armv6-m/up_switchcontext.S | 4 ++-- arch/arm/src/armv7-m/up_switchcontext.S | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/armv6-m/up_switchcontext.S b/arch/arm/src/armv6-m/up_switchcontext.S index ce0984bc83a..d76f3a80cc2 100644 --- a/arch/arm/src/armv6-m/up_switchcontext.S +++ b/arch/arm/src/armv6-m/up_switchcontext.S @@ -90,9 +90,9 @@ up_switchcontext: mov r0, #SYS_switch_context /* R0: context switch */ svc 0 /* Force synchronous SVCall (or Hard Fault) */ - /* This call should not return */ + /* We will get here only after the rerturn from the context switch */ - bx lr /* Unnecessary ... will not return */ + bx lr .size up_switchcontext, .-up_switchcontext .end diff --git a/arch/arm/src/armv7-m/up_switchcontext.S b/arch/arm/src/armv7-m/up_switchcontext.S index 762e2066e89..cd01ca05e47 100644 --- a/arch/arm/src/armv7-m/up_switchcontext.S +++ b/arch/arm/src/armv7-m/up_switchcontext.S @@ -89,9 +89,9 @@ up_switchcontext: mov r0, #SYS_switch_context /* R0: context switch */ svc 0 /* Force synchronous SVCall (or Hard Fault) */ - /* This call should not return */ + /* We will get here only after the rerturn from the context switch */ - bx lr /* Unnecessary ... will not return */ + bx lr .size up_switchcontext, .-up_switchcontext .end