Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/news68k/include news68k: Specify proper constraints...
details: https://anonhg.NetBSD.org/src/rev/92253264e9f2
branches: trunk
changeset: 373253:92253264e9f2
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jan 27 19:50:02 2023 +0000
description:
news68k: Specify proper constraints for bus_space_read region and multi ops.
Synk with next68k.
Also use consistent register name constrains, i.e. no '%' prefix.
diffstat:
sys/arch/news68k/include/bus.h | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diffs (171 lines):
diff -r 1a6bede5cb52 -r 92253264e9f2 sys/arch/news68k/include/bus.h
--- a/sys/arch/news68k/include/bus.h Fri Jan 27 19:49:21 2023 +0000
+++ b/sys/arch/news68k/include/bus.h Fri Jan 27 19:50:02 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.12 2021/01/23 19:38:08 christos Exp $ */
+/* $NetBSD: bus.h,v 1.13 2023/01/27 19:50:02 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -193,7 +193,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0","memory"); \
} while (0)
#define bus_space_read_multi_2(t, h, o, a, c) do { \
@@ -207,7 +207,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0","memory"); \
} while (0)
#define bus_space_read_multi_4(t, h, o, a, c) do { \
@@ -221,7 +221,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0","memory"); \
} while (0)
/*
@@ -245,7 +245,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0","memory"); \
} while (0)
#define bus_space_read_region_2(t, h, o, a, c) do { \
@@ -259,7 +259,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0","memory"); \
} while (0)
#define bus_space_read_region_4(t, h, o, a, c) do { \
@@ -273,7 +273,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0","memory"); \
} while (0)
/*
@@ -314,7 +314,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0"); \
} while (0)
#define bus_space_write_multi_2(t, h, o, a, c) do { \
@@ -328,7 +328,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0"); \
} while (0)
#define bus_space_write_multi_4(t, h, o, a, c) do { \
@@ -342,7 +342,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0"); \
} while (0)
/*
@@ -365,7 +365,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0"); \
} while (0)
#define bus_space_write_region_2(t, h, o, a, c) do { \
@@ -379,7 +379,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0"); \
} while (0)
#define bus_space_write_region_4(t, h, o, a, c) do { \
@@ -393,7 +393,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (a), "g" (c) : \
- "%a0","%a1","%d0"); \
+ "a0","a1","d0"); \
} while (0)
/*
@@ -416,7 +416,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (val), "g" (c) : \
- "%a0","%d0","%d1"); \
+ "a0","d0","d1"); \
} while (0)
#define bus_space_set_multi_2(t, h, o, val, c) do { \
@@ -430,7 +430,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (val), "g" (c) : \
- "%a0","%d0","%d1"); \
+ "a0","d0","d1"); \
} while (0)
#define bus_space_set_multi_4(t, h, o, val, c) do { \
@@ -444,7 +444,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (val), "g" (c) : \
- "%a0","%d0","%d1"); \
+ "a0","d0","d1"); \
} while (0)
/*
@@ -467,7 +467,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (val), "g" (c) : \
- "%a0","%d0","%d1"); \
+ "a0","d0","d1"); \
} while (0)
#define bus_space_set_region_2(t, h, o, val, c) do { \
@@ -481,7 +481,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (val), "g" (c) : \
- "%a0","%d0","%d1"); \
+ "a0","d0","d1"); \
} while (0)
#define bus_space_set_region_4(t, h, o, val, c) do { \
@@ -495,7 +495,7 @@
jne 1b" : \
: \
"r" ((h) + (o)), "g" (val), "g" (c) : \
- "%a0","%d0","%d1"); \
+ "a0","d0","d1"); \
} while (0)
/*
Home |
Main Index |
Thread Index |
Old Index