diff options
author | imp <imp@FreeBSD.org> | 2012-06-13 05:02:51 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2012-06-13 05:02:51 +0000 |
commit | e9a3ea52432e88e05b37d79a2d76aaf8afaefa7f (patch) | |
tree | a6ac72a3cc942a9deec9340b49338efe4b0f948c | |
parent | 8357ee537019bc93a535c37e3302d55c4572dd40 (diff) | |
download | FreeBSD-src-e9a3ea52432e88e05b37d79a2d76aaf8afaefa7f.zip FreeBSD-src-e9a3ea52432e88e05b37d79a2d76aaf8afaefa7f.tar.gz |
trim trailing whitespace
-rw-r--r-- | sys/arm/include/armreg.h | 2 | ||||
-rw-r--r-- | sys/arm/include/asmacros.h | 2 | ||||
-rw-r--r-- | sys/arm/include/atomic.h | 1 | ||||
-rw-r--r-- | sys/arm/include/blockio.h | 2 | ||||
-rw-r--r-- | sys/arm/include/cpufunc.h | 8 | ||||
-rw-r--r-- | sys/arm/include/elf.h | 4 | ||||
-rw-r--r-- | sys/arm/include/endian.h | 2 | ||||
-rw-r--r-- | sys/arm/include/fdt.h | 2 | ||||
-rw-r--r-- | sys/arm/include/fp.h | 2 | ||||
-rw-r--r-- | sys/arm/include/frame.h | 4 | ||||
-rw-r--r-- | sys/arm/include/ieee.h | 2 | ||||
-rw-r--r-- | sys/arm/include/in_cksum.h | 2 | ||||
-rw-r--r-- | sys/arm/include/intr.h | 4 | ||||
-rw-r--r-- | sys/arm/include/katelib.h | 2 | ||||
-rw-r--r-- | sys/arm/include/param.h | 4 | ||||
-rw-r--r-- | sys/arm/include/pmap.h | 4 | ||||
-rw-r--r-- | sys/arm/include/profile.h | 2 | ||||
-rw-r--r-- | sys/arm/include/pte.h | 6 | ||||
-rw-r--r-- | sys/arm/include/resource.h | 2 | ||||
-rw-r--r-- | sys/arm/include/stack.h | 10 | ||||
-rw-r--r-- | sys/arm/include/vmparam.h | 2 |
21 files changed, 33 insertions, 36 deletions
diff --git a/sys/arm/include/armreg.h b/sys/arm/include/armreg.h index 4867692..0057298 100644 --- a/sys/arm/include/armreg.h +++ b/sys/arm/include/armreg.h @@ -327,7 +327,7 @@ /* * ARM Instructions * - * 3 3 2 2 2 + * 3 3 2 2 2 * 1 0 9 8 7 0 * +-------+-------------------------------------------------------+ * | cond | instruction dependant | diff --git a/sys/arm/include/asmacros.h b/sys/arm/include/asmacros.h index f06841f..da612df 100644 --- a/sys/arm/include/asmacros.h +++ b/sys/arm/include/asmacros.h @@ -92,7 +92,7 @@ * This should only be used if the processor is not currently in SVC32 * mode. The processor mode is switched to SVC mode and the trap frame is * stored. The SVC lr field is used to store the previous value of - * lr in SVC mode. + * lr in SVC mode. * * NOTE: r13 and r14 are stored separately as a work around for the * SA110 rev 2 STM^ bug diff --git a/sys/arm/include/atomic.h b/sys/arm/include/atomic.h index 9f16220..a64fc4a 100644 --- a/sys/arm/include/atomic.h +++ b/sys/arm/include/atomic.h @@ -285,7 +285,6 @@ atomic_fetchadd_32(volatile uint32_t *p, uint32_t v) return (start); } - #endif /* _KERNEL */ static __inline int diff --git a/sys/arm/include/blockio.h b/sys/arm/include/blockio.h index 05c35ae..01db600 100644 --- a/sys/arm/include/blockio.h +++ b/sys/arm/include/blockio.h @@ -14,7 +14,7 @@ * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. diff --git a/sys/arm/include/cpufunc.h b/sys/arm/include/cpufunc.h index b067836..dbba8b1 100644 --- a/sys/arm/include/cpufunc.h +++ b/sys/arm/include/cpufunc.h @@ -315,7 +315,7 @@ void sa11x0_drain_readbuf (void); void sa11x0_context_switch (void); void sa11x0_cpu_sleep (int mode); - + void sa11x0_setup (char *string); #endif @@ -471,7 +471,7 @@ extern unsigned armv5_dcache_index_inc; defined(CPU_FA526) || defined(CPU_FA626TE) || \ defined(CPU_XSCALE_PXA2X0) || defined(CPU_XSCALE_IXP425) || \ defined(CPU_XSCALE_80219) || defined(CPU_XSCALE_81342) - + void armv4_tlb_flushID (void); void armv4_tlb_flushI (void); void armv4_tlb_flushD (void); @@ -526,7 +526,7 @@ void xscale_cache_flushD_rng (vm_offset_t start, vm_size_t end); void xscale_context_switch (void); void xscale_setup (char *string); -#endif /* CPU_XSCALE_80200 || CPU_XSCALE_80321 || CPU_XSCALE_PXA2X0 || CPU_XSCALE_IXP425 +#endif /* CPU_XSCALE_80200 || CPU_XSCALE_80321 || CPU_XSCALE_PXA2X0 || CPU_XSCALE_IXP425 CPU_XSCALE_80219 */ #ifdef CPU_XSCALE_81342 @@ -628,7 +628,7 @@ extern int arm_picache_ways; extern int arm_pdcache_size; /* and unified */ extern int arm_pdcache_line_size; -extern int arm_pdcache_ways; +extern int arm_pdcache_ways; extern int arm_pcache_type; extern int arm_pcache_unified; diff --git a/sys/arm/include/elf.h b/sys/arm/include/elf.h index d3f8873..fdf1dea 100644 --- a/sys/arm/include/elf.h +++ b/sys/arm/include/elf.h @@ -99,8 +99,8 @@ __ElfType(Auxinfo); #define ELF_TARG_MACH EM_ARM #define ELF_TARG_VER 1 -/* - * Magic number for the elf trampoline, chosen wisely to be an immediate +/* + * Magic number for the elf trampoline, chosen wisely to be an immediate * value. */ #define MAGIC_TRAMP_NUMBER 0x5c000003 diff --git a/sys/arm/include/endian.h b/sys/arm/include/endian.h index 8e3b952..1d792ea 100644 --- a/sys/arm/include/endian.h +++ b/sys/arm/include/endian.h @@ -78,7 +78,7 @@ __bswap64(__uint64_t _x) return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) | ((_x >> 8) & 0xff000000) | ((_x << 8) & ((__uint64_t)0xff << 32)) | - ((_x << 24) & ((__uint64_t)0xff << 40)) | + ((_x << 24) & ((__uint64_t)0xff << 40)) | ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56))); } diff --git a/sys/arm/include/fdt.h b/sys/arm/include/fdt.h index a342b7f..7285e97 100644 --- a/sys/arm/include/fdt.h +++ b/sys/arm/include/fdt.h @@ -44,7 +44,7 @@ /* Max interrupt number */ #define FDT_INTR_MAX NIRQ -/* Map phandle/intpin pair to global IRQ number */ +/* Map phandle/intpin pair to global IRQ number */ #define FDT_MAP_IRQ(node, pin) (pin) /* diff --git a/sys/arm/include/fp.h b/sys/arm/include/fp.h index ada7203..25effd6 100644 --- a/sys/arm/include/fp.h +++ b/sys/arm/include/fp.h @@ -77,7 +77,7 @@ struct fpe_sp_state { * Type for a saved FP context, if we want to translate the context to a * user-readable form */ - + typedef struct { u_int32_t fpsr; fp_extended_precision_t regs[8]; diff --git a/sys/arm/include/frame.h b/sys/arm/include/frame.h index 0a03829..a24eccc 100644 --- a/sys/arm/include/frame.h +++ b/sys/arm/include/frame.h @@ -148,7 +148,7 @@ struct switchframe { u_int sf_r7; u_int sf_pc; }; - + /* * Stack frame. Used during stack traces (db_trace.c) */ @@ -162,5 +162,3 @@ struct frame { #endif /* !_LOCORE */ #endif /* _MACHINE_FRAME_H_ */ - -/* End of frame.h */ diff --git a/sys/arm/include/ieee.h b/sys/arm/include/ieee.h index 059d0dc..8ce9fd1 100644 --- a/sys/arm/include/ieee.h +++ b/sys/arm/include/ieee.h @@ -124,7 +124,7 @@ struct ieee_double { u_int dbl_sign:1; #if _IEEE_WORD_ORDER == _BIG_ENDIAN u_int dbl_fracl; -#endif +#endif #endif }; diff --git a/sys/arm/include/in_cksum.h b/sys/arm/include/in_cksum.h index 8a0ec1d..0767a15 100644 --- a/sys/arm/include/in_cksum.h +++ b/sys/arm/include/in_cksum.h @@ -56,7 +56,7 @@ in_pseudo(u_int sum, u_int b, u_int c) __asm __volatile("adds %0, %0, %1\n" "adcs %0, %0, %2\n" "adc %0, %0, #0\n" - : "+r" (sum) + : "+r" (sum) : "r" (b), "r" (c)); sum = (sum & 0xffff) + (sum >> 16); if (sum > 0xffff) diff --git a/sys/arm/include/intr.h b/sys/arm/include/intr.h index 6dc0247..bf6a15a 100644 --- a/sys/arm/include/intr.h +++ b/sys/arm/include/intr.h @@ -59,8 +59,8 @@ int arm_get_next_irq(int); void arm_mask_irq(uintptr_t); void arm_unmask_irq(uintptr_t); -void arm_setup_irqhandler(const char *, int (*)(void*), void (*)(void*), - void *, int, int, void **); +void arm_setup_irqhandler(const char *, int (*)(void*), void (*)(void*), + void *, int, int, void **); int arm_remove_irqhandler(int, void *); extern void (*arm_post_filter)(void *); #endif /* _MACHINE_INTR_H */ diff --git a/sys/arm/include/katelib.h b/sys/arm/include/katelib.h index ef69fe3..472585a 100644 --- a/sys/arm/include/katelib.h +++ b/sys/arm/include/katelib.h @@ -43,7 +43,7 @@ * * This should not really be a separate header file. Eventually I will merge * this into other header files once I have decided where the declarations - * should go. + * should go. * * Created : 18/09/94 * diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h index 3d685e7..bb76c5f 100644 --- a/sys/arm/include/param.h +++ b/sys/arm/include/param.h @@ -62,7 +62,7 @@ #define MACHINE_ARCH "arm" #endif #endif -#define MID_MACHINE MID_ARM6 +#define MID_MACHINE MID_ARM6 #if defined(SMP) || defined(KLD_MODULE) #ifndef MAXCPU @@ -78,7 +78,7 @@ * ALIGNED_POINTER is a boolean macro that checks whether an address * is valid to fetch data elements of type t from on this architecture. * This does not reflect the optimal alignment, just the possibility - * (within reasonable limits). + * (within reasonable limits). */ #define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof(t)-1)) == 0) diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h index 5f499a1..04270ba 100644 --- a/sys/arm/include/pmap.h +++ b/sys/arm/include/pmap.h @@ -58,7 +58,7 @@ #define PTE_NOCACHE 0 #define PTE_CACHE 1 #define PTE_PAGETABLE 2 - + #ifndef LOCORE #include <sys/queue.h> @@ -413,7 +413,7 @@ extern pt_entry_t pte_l2_s_cache_mode_pt; extern pt_entry_t pte_l2_s_prot_u; extern pt_entry_t pte_l2_s_prot_w; extern pt_entry_t pte_l2_s_prot_mask; - + extern pt_entry_t pte_l1_s_proto; extern pt_entry_t pte_l1_c_proto; extern pt_entry_t pte_l2_s_proto; diff --git a/sys/arm/include/profile.h b/sys/arm/include/profile.h index b640bf7..0c5a767 100644 --- a/sys/arm/include/profile.h +++ b/sys/arm/include/profile.h @@ -38,7 +38,7 @@ #define _MACHINE_PROFILE_H_ /* - * Config generates something to tell the compiler to align functions on 32 + * Config generates something to tell the compiler to align functions on 32 * byte boundaries. A strict alignment is good for keeping the tables small. */ #define FUNCTION_ALIGNMENT 16 diff --git a/sys/arm/include/pte.h b/sys/arm/include/pte.h index 292983a..5921d20 100644 --- a/sys/arm/include/pte.h +++ b/sys/arm/include/pte.h @@ -58,7 +58,7 @@ typedef uint32_t pt_entry_t; /* page table entry */ * was allocated for a PT then the other 3KB would also get mapped * whenever the 1KB was mapped. */ - + #define PT_RSIZE 0x0400 /* Real page table size */ #define PT_SIZE 0x1000 #define PD_SIZE 0x4000 @@ -315,7 +315,7 @@ typedef uint32_t pt_entry_t; /* page table entry */ * * Cache attributes with L2 present, S = 0 * T E X C B L1 i-cache L1 d-cache L1 DC WP L2 cacheable write coalesce - * 0 0 0 0 0 N N - N N + * 0 0 0 0 0 N N - N N * 0 0 0 0 1 N N - N Y * 0 0 0 1 0 Y Y WT N Y * 0 0 0 1 1 Y Y WB Y Y @@ -342,7 +342,7 @@ typedef uint32_t pt_entry_t; /* page table entry */ * * Cache attributes with L2 present, S = 1 * T E X C B L1 i-cache L1 d-cache L1 DC WP L2 cacheable write coalesce - * 0 0 0 0 0 N N - N N + * 0 0 0 0 0 N N - N N * 0 0 0 0 1 N N - N Y * 0 0 0 1 0 Y Y - N Y * 0 0 0 1 1 Y Y WT Y Y diff --git a/sys/arm/include/resource.h b/sys/arm/include/resource.h index 90dd5cd..723d145 100644 --- a/sys/arm/include/resource.h +++ b/sys/arm/include/resource.h @@ -12,7 +12,7 @@ * no representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied * warranty. - * + * * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''. M.I.T. DISCLAIMS * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF diff --git a/sys/arm/include/stack.h b/sys/arm/include/stack.h index 32ff5a9..0a5ebfe 100644 --- a/sys/arm/include/stack.h +++ b/sys/arm/include/stack.h @@ -5,24 +5,24 @@ * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index f85fa58..edff00b 100644 --- a/sys/arm/include/vmparam.h +++ b/sys/arm/include/vmparam.h @@ -104,7 +104,7 @@ #define VM_MIN_ADDRESS (0x00001000) #ifdef ARM_USE_SMALL_ALLOC -/* +/* * ARM_KERN_DIRECTMAP is used to make sure there's enough space between * VM_MAXUSER_ADDRESS and KERNBASE to map the whole memory. * It has to be a compile-time constant, even if arm_init_smallalloc(), |