Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Indent branch delay slots in asm code ...



details:   https://anonhg.NetBSD.org/src/rev/e68c88082121
branches:  trunk
changeset: 936806:e68c88082121
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Aug 05 05:24:44 2020 +0000

description:
Indent branch delay slots in asm code (from skrll@).
Be consistent within this file with how asm code is formatted.

diffstat:

 sys/arch/mips/include/lock.h |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (45 lines):

diff -r 96167350a0e5 -r e68c88082121 sys/arch/mips/include/lock.h
--- a/sys/arch/mips/include/lock.h      Wed Aug 05 04:47:35 2020 +0000
+++ b/sys/arch/mips/include/lock.h      Wed Aug 05 05:24:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.20 2017/09/17 00:01:07 christos Exp $       */
+/*     $NetBSD: lock.h,v 1.21 2020/08/05 05:24:44 simonb Exp $ */
 
 /*-
  * Copyright (c) 2001, 2007 The NetBSD Foundation, Inc.
@@ -78,15 +78,15 @@
                "       .set mips2              \n"
                "1:     ll      %0, %4          \n"
                "       bnez    %0, 2f          \n"
-               "       nop            # BDslot \n"
+               "        nop                    \n"
                "       li      %0, %3          \n"
                "       sc      %0, %2          \n"
                "       beqz    %0, 2f          \n"
-               "       nop            # BDslot \n"
+               "        nop                    \n"
                "       li      %1, 1           \n"
                "       sync                    \n"
                "       j       3f              \n"
-               "       nop                     \n"
+               "        nop                    \n"
                "       nop                     \n"
                "2:     li      %1, 0           \n"
                "3:                             \n"
@@ -121,11 +121,11 @@
 mb_read(void)
 {
        __asm volatile(
-           "   .set push\n"
-           "   .set mips2\n"
-           "   sync\n"
-           "   .set pop"
-           ::: "memory"
+               "       .set push               \n"
+               "       .set mips2              \n"
+               "       sync                    \n"
+               "       .set pop"
+               ::: "memory"
        );
 }
 



Home | Main Index | Thread Index | Old Index