From owner-p4-projects@FreeBSD.ORG Mon Apr 13 02:16:39 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 26B311065670; Mon, 13 Apr 2009 02:16:39 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7D8A106564A for ; Mon, 13 Apr 2009 02:16:38 +0000 (UTC) (envelope-from andrew@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C54FA8FC12 for ; Mon, 13 Apr 2009 02:16:38 +0000 (UTC) (envelope-from andrew@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n3D2GcVb071550 for ; Mon, 13 Apr 2009 02:16:38 GMT (envelope-from andrew@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3D2GcK6071548 for perforce@freebsd.org; Mon, 13 Apr 2009 02:16:38 GMT (envelope-from andrew@freebsd.org) Date: Mon, 13 Apr 2009 02:16:38 GMT Message-Id: <200904130216.n3D2GcK6071548@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to andrew@freebsd.org using -f From: Andrew Turner To: Perforce Change Reviews Cc: Subject: PERFORCE change 160546 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: Mon, 13 Apr 2009 02:16:40 -0000 http://perforce.freebsd.org/chv.cgi?CH=160546 Change 160546 by andrew@andrew_bender on 2009/04/13 02:16:38 In s3c24{1,4}0_clock_freq2 make the dividers and temporary values unsigned as they should never be negative. Affected files ... .. //depot/projects/arm/src/sys/arm/s3c2xx0/s3c24x0.c#10 edit Differences ... ==== //depot/projects/arm/src/sys/arm/s3c2xx0/s3c24x0.c#10 (text+ko) ==== @@ -433,8 +433,8 @@ s3c2410_clock_freq2(vm_offset_t clkman_base, int *fclk, int *hclk, int *pclk) { uint32_t pllcon, divn; - int mdiv, pdiv, sdiv; - int f, h, p; + unsigned int mdiv, pdiv, sdiv; + unsigned int f, h, p; pllcon = *(volatile uint32_t *)(clkman_base + CLKMAN_MPLLCON); divn = *(volatile uint32_t *)(clkman_base + CLKMAN_CLKDIVN); @@ -460,8 +460,8 @@ s3c2440_clock_freq2(vm_offset_t clkman_base, int *fclk, int *hclk, int *pclk) { uint32_t pllcon, divn, camdivn; - int mdiv, pdiv, sdiv; - int f, h, p; + unsigned int mdiv, pdiv, sdiv; + unsigned int f, h, p; pllcon = *(volatile uint32_t *)(clkman_base + CLKMAN_MPLLCON); divn = *(volatile uint32_t *)(clkman_base + CLKMAN_CLKDIVN);