Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k Add register prefix in asm() directives.
details: https://anonhg.NetBSD.org/src/rev/4c658d42e69b
branches: trunk
changeset: 500207:4c658d42e69b
user: itohy <itohy%NetBSD.org@localhost>
date: Fri Dec 08 03:00:05 2000 +0000
description:
Add register prefix in asm() directives.
diffstat:
sys/arch/x68k/x68k/machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 40c498ec9496 -r 4c658d42e69b sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c Fri Dec 08 02:59:38 2000 +0000
+++ b/sys/arch/x68k/x68k/machdep.c Fri Dec 08 03:00:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.89 2000/09/13 15:00:24 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.90 2000/12/08 03:00:05 itohy Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -1139,8 +1139,8 @@
b = (void*)base_v;
/* This is somewhat paranoid -- avoid overwriting myself */
- asm("lea pc@(begin_check_mem),%0" : "=a"(begin_check));
- asm("lea pc@(end_check_mem),%0" : "=a"(end_check));
+ asm("lea %pc@(begin_check_mem),%0" : "=a"(begin_check));
+ asm("lea %pc@(end_check_mem),%0" : "=a"(end_check));
if (base >= begin_check && base < end_check) {
size_t off = end_check - begin_check;
@@ -1245,7 +1245,7 @@
cacr = CACHE60_OFF;
break;
}
- asm volatile ("movc %0,cacr"::"d"(cacr));
+ asm volatile ("movc %0,%cacr"::"d"(cacr));
}
/* discover extended memory */
@@ -1289,7 +1289,7 @@
cacr = CACHE60_ON;
break;
}
- asm volatile ("movc %0,cacr"::"d"(cacr));
+ asm volatile ("movc %0,%cacr"::"d"(cacr));
}
physmem = m68k_btop(mem_size);
Home |
Main Index |
Thread Index |
Old Index