From f68048b4eb2751e41013a210eeec82396078be88 Mon Sep 17 00:00:00 2001 From: bjh21 Date: Fri, 27 Jul 2001 01:02:44 +0000 Subject: [PATCH] Fix bug in xosgbpb_read: Check the correct register when deciding whether to store result. --- sys/arch/arm26/stand/lib/riscoscalls.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm26/stand/lib/riscoscalls.S b/sys/arch/arm26/stand/lib/riscoscalls.S index 691645016cf0..968a5ad1dd23 100644 --- a/sys/arch/arm26/stand/lib/riscoscalls.S +++ b/sys/arch/arm26/stand/lib/riscoscalls.S @@ -1,4 +1,4 @@ -/* $NetBSD: riscoscalls.S,v 1.3 2001/07/27 00:37:38 bjh21 Exp $ */ +/* $NetBSD: riscoscalls.S,v 1.4 2001/07/27 01:02:44 bjh21 Exp $ */ /*- * Copyright (c) 2001 Ben Harris @@ -96,7 +96,7 @@ ENTRY(xosgbpb_read) mov r1, r0 mov r0, #OSGBPB_Read swi XOS_GBPB - teq r3, #0 + teq ip, #0 strne r3, [ip] movvc r0, #0 ldmdb fp, {r4, fp, sp, pc}