Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Adjust comments



details:   https://anonhg.NetBSD.org/src/rev/563f00827cb4
branches:  trunk
changeset: 744759:563f00827cb4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Feb 12 07:02:08 2020 +0000

description:
Adjust comments

diffstat:

 sys/arch/aarch64/aarch64/vectors.S |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r b02c5db0231f -r 563f00827cb4 sys/arch/aarch64/aarch64/vectors.S
--- a/sys/arch/aarch64/aarch64/vectors.S        Wed Feb 12 06:57:35 2020 +0000
+++ b/sys/arch/aarch64/aarch64/vectors.S        Wed Feb 12 07:02:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vectors.S,v 1.10 2020/02/12 01:09:17 riastradh Exp $   */
+/*     $NetBSD: vectors.S,v 1.11 2020/02/12 07:02:08 skrll Exp $       */
 
 #include <aarch64/asm.h>
 #include "assym.h"
@@ -23,7 +23,8 @@
        .align 7        /* aligned 0x80 */
 
        .if \el == 1
-       sub     sp, sp, #TRAP_FRAMESIZE /* need to allocate stack on el1 */
+       /* need to allocate stack on el1 */
+       sub     sp, sp, #TRAP_FRAMESIZE
        .endif
 
        stp     x0, x1, [sp, #TF_X0]
@@ -47,7 +48,8 @@
        .if \el == 0
        mrs     x20, sp_el0
        .else
-       add     x20, sp, #TRAP_FRAMESIZE        /* sp is already adjusted */
+       /* sp was already adjusted, so adjust x20 back */
+       add     x20, sp, #TRAP_FRAMESIZE
        .endif
        mrs     x21, elr_el1
 



Home | Main Index | Thread Index | Old Index