Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm26/arm26 When an array is declared as int r[13], ...
details: https://anonhg.NetBSD.org/src/rev/ec5871365ff9
branches: trunk
changeset: 503619:ec5871365ff9
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sat Feb 10 19:09:48 2001 +0000
description:
When an array is declared as int r[13], don't go trying to use r[13].
diffstat:
sys/arch/arm26/arm26/process_machdep.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 5b3b94370216 -r ec5871365ff9 sys/arch/arm26/arm26/process_machdep.c
--- a/sys/arch/arm26/arm26/process_machdep.c Sat Feb 10 18:14:13 2001 +0000
+++ b/sys/arch/arm26/arm26/process_machdep.c Sat Feb 10 19:09:48 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: process_machdep.c,v 1.2 2001/01/22 22:10:43 bjh21 Exp $ */
+/* $NetBSD: process_machdep.c,v 1.3 2001/02/10 19:09:48 bjh21 Exp $ */
/*-
* Copyright (c) 2000 Ben Harris
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/param.h>
-__RCSID("$NetBSD: process_machdep.c,v 1.2 2001/01/22 22:10:43 bjh21 Exp $");
+__RCSID("$NetBSD: process_machdep.c,v 1.3 2001/02/10 19:09:48 bjh21 Exp $");
#include <sys/errno.h>
#include <sys/proc.h>
@@ -78,7 +78,6 @@
regs->r[10] = tf->tf_r10;
regs->r[11] = tf->tf_r11;
regs->r[12] = tf->tf_r12;
- regs->r[13] = tf->tf_r13;
regs->r_sp = tf->tf_r13; /* XXX */
regs->r_lr = tf->tf_r14;
regs->r_pc = tf->tf_r15; /* XXX name? */
@@ -107,7 +106,7 @@
tf->tf_r10 = regs->r[10];
tf->tf_r11 = regs->r[11];
tf->tf_r12 = regs->r[12];
- tf->tf_r13 = regs->r[13];
+ tf->tf_r13 = regs->r_sp;
tf->tf_r14 = regs->r_lr;
tf->tf_r15 = regs->r_pc;
return 0;
Home |
Main Index |
Thread Index |
Old Index