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 add nops after jals in PANIC and PRINT...



details:   https://anonhg.NetBSD.org/src/rev/7323aaaaa188
branches:  trunk
changeset: 495383:7323aaaaa188
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Jul 27 05:01:06 2000 +0000

description:
add nops after jals in PANIC and PRINTF.  (these macros are often used in
code which has noreorder set, and they're not used with nops afterwards,
as is appropriate in that case, so put the nops in the macros.)

diffstat:

 sys/arch/mips/include/asm.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 99206382b6aa -r 7323aaaaa188 sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h       Thu Jul 27 04:09:27 2000 +0000
+++ b/sys/arch/mips/include/asm.h       Thu Jul 27 05:01:06 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.25 2000/07/25 17:56:05 jeffs Exp $   */
+/*     $NetBSD: asm.h,v 1.26 2000/07/27 05:01:06 cgd Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -232,11 +232,13 @@
 #define PANIC(msg)                     \
        la      a0, 9f;                 \
        jal     _C_LABEL(panic);        \
+       nop;                            \
        MSG(msg)
 
 #define        PRINTF(msg)                     \
        la      a0, 9f;                 \
        jal     _C_LABEL(printf);       \
+       nop;                            \
        MSG(msg)
 
 #define        MSG(msg)                        \



Home | Main Index | Thread Index | Old Index