Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/ibm4xx copy{in,out}(): Add missing clobber ...
details: https://anonhg.NetBSD.org/src/rev/122df34c5cbc
branches: trunk
changeset: 369977:122df34c5cbc
user: rin <rin%NetBSD.org@localhost>
date: Sun Sep 11 09:03:25 2022 +0000
description:
copy{in,out}(): Add missing clobber registers to __asm codes.
diffstat:
sys/arch/powerpc/ibm4xx/trap.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r ba3ae7ebbe63 -r 122df34c5cbc sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c Sun Sep 11 09:00:02 2022 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c Sun Sep 11 09:03:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.92 2022/09/11 09:00:02 rin Exp $ */
+/* $NetBSD: trap.c,v 1.93 2022/09/11 09:03:25 rin Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -69,7 +69,7 @@
#define __UFETCHSTORE_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.92 2022/09/11 09:00:02 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.93 2022/09/11 09:03:25 rin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -509,7 +509,8 @@
: [msr] "=&r" (msr), [pid] "=&r" (pid), [tmp] "=&r" (tmp)
: [uaddr] "b" (uaddr), [ctx] "b" (ctx), [kaddr] "b" (kaddr),
- [len] "b" (len), [count] "b" (count));
+ [len] "b" (len), [count] "b" (count)
+ : "cr0", "ctr");
curpcb->pcb_onfault = NULL;
return 0;
@@ -629,7 +630,8 @@
: [msr] "=&r" (msr), [pid] "=&r" (pid), [tmp] "=&r" (tmp)
: [uaddr] "b" (uaddr), [ctx] "b" (ctx), [kaddr] "b" (kaddr),
- [len] "b" (len), [count] "b" (count));
+ [len] "b" (len), [count] "b" (count)
+ : "cr0", "ctr");
curpcb->pcb_onfault = NULL;
return 0;
Home |
Main Index |
Thread Index |
Old Index