From owner-p4-projects@FreeBSD.ORG Sun Dec 11 18:58:46 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 640A416A422; Sun, 11 Dec 2005 18:58:46 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2554D16A41F for ; Sun, 11 Dec 2005 18:58:46 +0000 (GMT) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BDCF43D5F for ; Sun, 11 Dec 2005 18:58:45 +0000 (GMT) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBBIwjoH044034 for ; Sun, 11 Dec 2005 18:58:45 GMT (envelope-from cognet@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBBIwjJK044031 for perforce@freebsd.org; Sun, 11 Dec 2005 18:58:45 GMT (envelope-from cognet@freebsd.org) Date: Sun, 11 Dec 2005 18:58:45 GMT Message-Id: <200512111858.jBBIwjJK044031@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cognet@freebsd.org using -f From: Olivier Houchard To: Perforce Change Reviews Cc: Subject: PERFORCE change 88038 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 18:58:47 -0000 http://perforce.freebsd.org/chv.cgi?CH=88038 Change 88038 by cognet@cognet on 2005/12/11 18:58:30 pc apparently can't be used as the first operand for cmp, so move its value to r0 first. Affected files ... .. //depot/projects/arm/src/sys/arm/arm/locore.S#12 edit Differences ... ==== //depot/projects/arm/src/sys/arm/arm/locore.S#12 (text+ko) ==== @@ -201,21 +201,19 @@ subs r2, r2, #4 bgt .L1 + ldr r4, =KERNVIRTADDR + mov r0, pc + cmp r0, r4 #if KERNVIRTADDR > KERNPHYSADDR - ldr r4, =KERNVIRTADDR - cmp r4, pc - bgt virt_done /* if pc is > KERNVIRTADDR, no adj */ + bgt virt_done ldr r5, =KERNPHYSADDR sub r4, r4, r5 add pc, pc, r4 #else - ldr r4, =KERNPHYSADDR - cmp r4, pc - blt virt_done /* if pc is < KERNPHYSADDR, no adj */ - ldr r4, =KERNPHYSADDR - ldr r5, =KERNVIRTADDR - sub r4, r4, r5 - sub pc, pc, r4 + blt virt_done + ldr r5, =KERNPHYSADDR + sub r5, r5, r4 + sub pc, pc, r5 #endif virt_done: nop