From owner-svn-src-head@FreeBSD.ORG Tue Nov 5 05:01:47 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8820D9C4; Tue, 5 Nov 2013 05:01:47 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 75F402B90; Tue, 5 Nov 2013 05:01:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA551l2b006154; Tue, 5 Nov 2013 05:01:47 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA551lw3006152; Tue, 5 Nov 2013 05:01:47 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201311050501.rA551lw3006152@svn.freebsd.org> From: Ian Lepore Date: Tue, 5 Nov 2013 05:01:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257676 - in head/sys/arm: arm include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 05:01:47 -0000 Author: ian Date: Tue Nov 5 05:01:46 2013 New Revision: 257676 URL: http://svnweb.freebsd.org/changeset/base/257676 Log: Style and comment tweaks, no functional changes. Modified: head/sys/arm/arm/devmap.c head/sys/arm/include/devmap.h Modified: head/sys/arm/arm/devmap.c ============================================================================== --- head/sys/arm/arm/devmap.c Tue Nov 5 04:51:07 2013 (r257675) +++ head/sys/arm/arm/devmap.c Tue Nov 5 05:01:46 2013 (r257676) @@ -62,7 +62,7 @@ vm_offset_t arm_devmap_lastaddr() { const struct arm_devmap_entry *pd; - vm_offset_t lowaddr = ARM_VECTORS_HIGH; + vm_offset_t lowaddr; if (akva_devmap_idx > 0) return (akva_devmap_vaddr); @@ -70,6 +70,7 @@ arm_devmap_lastaddr() if (devmap_table == NULL) panic("arm_devmap_lastaddr(): No devmap table registered."); + lowaddr = ARM_VECTORS_HIGH; for (pd = devmap_table; pd->pd_size != 0; ++pd) { if (lowaddr > pd->pd_va) lowaddr = pd->pd_va; @@ -95,7 +96,7 @@ arm_devmap_add_entry(vm_paddr_t pa, vm_s panic("arm_devmap_add_entry() after arm_devmap_bootstrap()"); if (akva_devmap_idx == (AKVA_DEVMAP_MAX_ENTRIES - 1)) - panic("AKVA_DEVMAP_MAX_ENTRIES is too small!\n"); + panic("AKVA_DEVMAP_MAX_ENTRIES is too small"); if (akva_devmap_idx == 0) arm_devmap_register_table(akva_devmap_entries); @@ -152,7 +153,7 @@ arm_devmap_bootstrap(vm_offset_t l1pt, c if (table != NULL) devmap_table = table; else if (devmap_table == NULL) - panic("arm_devmap_bootstrap(): No devmap table registered."); + panic("arm_devmap_bootstrap(): No devmap table registered"); for (pd = devmap_table; pd->pd_size != 0; ++pd) { pmap_map_chunk(l1pt, pd->pd_va, pd->pd_pa, pd->pd_size, Modified: head/sys/arm/include/devmap.h ============================================================================== --- head/sys/arm/include/devmap.h Tue Nov 5 04:51:07 2013 (r257675) +++ head/sys/arm/include/devmap.h Tue Nov 5 05:01:46 2013 (r257676) @@ -42,18 +42,18 @@ struct arm_devmap_entry { }; /* - * Returns the lowest KVA address used in any entry in the registered devmap + * Return the lowest KVA address used in any entry in the registered devmap * table. This works with whatever table is registered, including the internal - * table used by arm_devmap_add_entry() if that routinue was used. Platforms can + * table used by arm_devmap_add_entry() if that routine was used. Platforms can * implement initarm_lastaddr() by calling this if static device mappings are * their only use of high KVA space. */ vm_offset_t arm_devmap_lastaddr(void); /* - * Routine to automatically allocate KVA (from the top of the address space - * downwards) and make static device mapping entries in an internal table. The - * internal table is automatically registered on the first call to this. + * Automatically allocate KVA (from the top of the address space downwards) and + * make static device mapping entries in an internal table. The internal table + * is automatically registered on the first call to this. */ void arm_devmap_add_entry(vm_paddr_t pa, vm_size_t sz); @@ -74,8 +74,8 @@ void arm_devmap_bootstrap(vm_offset_t _l const struct arm_devmap_entry *_table); /* - * Routines to translate between virtual and physical addresses within a region - * that is static-mapped by the devmap code. If the given address range isn't + * Translate between virtual and physical addresses within a region that is + * static-mapped by the devmap code. If the given address range isn't * static-mapped, then ptov returns NULL and vtop returns DEVMAP_PADDR_NOTFOUND. * The latter implies that you can't vtop just the last byte of physical address * space. This is not as limiting as it might sound, because even if a device