Index: boot/genarch/src/division.c
===================================================================
--- boot/genarch/src/division.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ boot/genarch/src/division.c	(revision d5e5fd1214ee9617b9a936d6f09efec4c9a91b48)
@@ -40,23 +40,23 @@
 	unsigned int result;
 	int steps = sizeof(unsigned int) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | (( a >> 31) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -65,5 +65,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -74,23 +74,23 @@
 	unsigned long long result;
 	int steps = sizeof(unsigned long long) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | ((a >> 63) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -99,5 +99,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -108,8 +108,8 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -120,8 +120,8 @@
 	unsigned long long rem;
 	long long result = (long long) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -146,9 +146,9 @@
 	unsigned int rem;
 	divandmod32(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((int) rem);
-	
+
 	return (int) rem;
 }
@@ -159,9 +159,9 @@
 	unsigned long long rem;
 	divandmod64(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((long long) rem);
-	
+
 	return (long long) rem;
 }
@@ -187,10 +187,10 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
@@ -207,10 +207,10 @@
 	unsigned long long rem;
 	long long result = (int) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
Index: boot/genarch/src/multiplication.c
===================================================================
--- boot/genarch/src/multiplication.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ boot/genarch/src/multiplication.c	(revision d5e5fd1214ee9617b9a936d6f09efec4c9a91b48)
@@ -50,12 +50,12 @@
 	unsigned int b1 = b >> 16;
 	unsigned int b2 = b & UINT16_MAX;
-	
+
 	unsigned long long t1 = a1 * b1;
 	unsigned long long t2 = a1 * b2;
 	t2 += a2 * b1;
 	unsigned long long t3 = a2 * b2;
-	
+
 	t3 = (((t1 << 16) + t2) << 16) + t3;
-	
+
 	return t3;
 }
@@ -67,40 +67,40 @@
 {
 	char neg = 0;
-	
+
 	if (a < 0) {
 		neg = !neg;
 		a = -a;
 	}
-	
+
 	if (b < 0) {
 		neg = !neg;
 		b = -b;
 	}
-	
+
 	unsigned long long a1 = a >> 32;
 	unsigned long long b1 = b >> 32;
-	
+
 	unsigned long long a2 = a & (UINT32_MAX);
 	unsigned long long b2 = b & (UINT32_MAX);
-	
+
 	if (SOFTINT_CHECK_OF && (a1 != 0) && (b1 != 0)) {
 		/* Error (overflow) */
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	/* (if OF checked) a1 or b1 is zero => result fits in 64 bits,
 	 * no need to another overflow check
 	 */
 	unsigned long long t1 = mul(a1, b2) + mul(b1, a2);
-	
+
 	if ((SOFTINT_CHECK_OF) && (t1 > UINT32_MAX)) {
 		/* Error (overflow) */
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	t1 = t1 << 32;
 	unsigned long long t2 = mul(a2, b2);
 	t2 += t1;
-	
+
 	/* t2 & (1ull << 63) - if this bit is set in unsigned long long,
 	 * result does not fit in signed one
@@ -110,9 +110,9 @@
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	long long result = t2;
 	if (neg)
 		result = -result;
-	
+
 	return result;
 }
Index: boot/genarch/src/ofw.c
===================================================================
--- boot/genarch/src/ofw.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ boot/genarch/src/ofw.c	(revision d5e5fd1214ee9617b9a936d6f09efec4c9a91b48)
@@ -62,9 +62,9 @@
 	if (ofw_chosen == (phandle) -1)
 		halt();
-	
+
 	if ((ofw_ret_t) ofw_get_property(ofw_chosen, "stdout", &ofw_stdout,
 	    sizeof(ofw_stdout)) <= 0)
 		ofw_stdout = 0;
-	
+
 	ofw_root = ofw_find_device("/");
 	if (ofw_root == (phandle) -1) {
@@ -72,5 +72,5 @@
 		halt();
 	}
-	
+
 	if ((ofw_ret_t) ofw_get_property(ofw_chosen, "mmu", &ofw_mmu,
 	    sizeof(ofw_mmu)) <= 0) {
@@ -83,5 +83,5 @@
 		halt();
 	}
-	
+
 	ofw_memory = ofw_find_device("/memory");
 	if (ofw_memory == (phandle) -1) {
@@ -110,22 +110,22 @@
 	args.nargs = nargs;
 	args.nret = nret;
-	
+
 	va_list list;
 	va_start(list, rets);
-	
+
 	size_t i;
 	for (i = 0; i < nargs; i++)
 		args.args[i] = va_arg(list, ofw_arg_t);
-	
+
 	va_end(list);
-	
+
 	for (i = 0; i < nret; i++)
 		args.args[i + nargs] = 0;
-	
+
 	(void) ofw(&args);
-	
+
 	for (i = 1; i < nret; i++)
 		rets[i - 1] = args.args[i + nargs];
-	
+
 	return args.args[nargs];
 }
@@ -161,5 +161,5 @@
 {
 	ofw_prop_t ret = 1;
-	
+
 	if ((ofw_ret_t) ofw_get_property(device, "#address-cells", &ret,
 	    sizeof(ret)) <= 0)
@@ -167,5 +167,5 @@
 		    sizeof(ret)) <= 0)
 			ret = OFW_ADDRESS_CELLS;
-	
+
 	return (size_t) ret;
 }
@@ -174,5 +174,5 @@
 {
 	ofw_prop_t ret = 1;
-	
+
 	if ((ofw_ret_t) ofw_get_property(device, "#size-cells", &ret,
 	    sizeof(ret)) <= 0)
@@ -180,5 +180,5 @@
 		    sizeof(ret)) <= 0)
 			ret = OFW_SIZE_CELLS;
-	
+
 	return (size_t) ret;
 }
@@ -198,5 +198,5 @@
 	if (ofw_stdout == 0)
 		return;
-	
+
 	ofw_call("write", 3, 1, NULL, ofw_stdout, &ch, 1);
 }
@@ -210,5 +210,5 @@
 		halt();
 	}
-	
+
 	if (result[0] == false) {
 		printf("Error: Unable to translate virtual address %p, halting.\n",
@@ -216,9 +216,9 @@
 		halt();
 	}
-	
+
 #ifdef __32_BITS__
 	return (void *) result[2];
 #endif
-	
+
 #ifdef __64_BITS__
 	return (void *) ((result[2] << 32) | result[3]);
@@ -235,5 +235,5 @@
 		halt();
 	}
-	
+
 	return (void *) addr;
 }
@@ -252,5 +252,5 @@
 {
 	void *addr = ofw_claim_virt_internal(NULL, len, alignment);
-	
+
 	if (addr == NULL) {
 		printf("Error: Unable to claim %zu bytes in virtual memory, halting.\n",
@@ -258,5 +258,5 @@
 		halt();
 	}
-	
+
 	return addr;
 }
@@ -276,5 +276,5 @@
 	 * purposes.
 	 */
-	
+
 #ifdef __32_BITS__
 	ofw_arg_t retaddr[1];
@@ -284,8 +284,8 @@
 		halt();
 	}
-	
+
 	return (void *) retaddr[0];
 #endif
-	
+
 #ifdef __64_BITS__
 	ofw_arg_t retaddr[2];
@@ -296,5 +296,5 @@
 		halt();
 	}
-	
+
 	return (void *) ((retaddr[0] << 32) | retaddr[1]);
 #endif
@@ -319,5 +319,5 @@
 		halt();
 	}
-	
+
 	return addr;
 }
@@ -328,18 +328,18 @@
 	ofw_arg_t phys_hi;
 	ofw_arg_t phys_lo;
-	
+
 #ifdef __32_BITS__
 	phys_hi = (ofw_arg_t) phys;
 	phys_lo = 0;
 #endif
-	
+
 #ifdef __64_BITS__
 	phys_hi = (ofw_arg_t) phys >> 32;
 	phys_lo = (ofw_arg_t) phys & 0xffffffff;
 #endif
-	
+
 	ofw_arg_t ret = ofw_call("call-method", 7, 1, NULL, "map", ofw_mmu, mode,
 	    ALIGN_UP(size, PAGE_SIZE), virt, phys_hi, phys_lo);
-	
+
 	if (ret != 0) {
 		printf("Error: Unable to map %p to %p (size %zu), halting.\n",
@@ -360,7 +360,7 @@
 	size_t sc = ofw_get_size_cells(ofw_memory) /
 	    (sizeof(uintptr_t) / sizeof(uint32_t));
-	
+
 	uintptr_t buf[((ac + sc) * MEMMAP_MAX_RECORDS)];
-	
+
 	/* The number of bytes read */
 	ofw_ret_t ret = (ofw_ret_t) ofw_get_property(ofw_memory, "reg", buf,
@@ -370,5 +370,5 @@
 		halt();
 	}
-	
+
 	size_t pos;
 	map->total = 0;
@@ -378,5 +378,5 @@
 		void *start = (void *) (buf[pos + ac - 1]);
 		uintptr_t size = buf[pos + ac + sc - 1];
-		
+
 		/*
 		 * This is a hot fix of the issue which occurs on machines
@@ -389,5 +389,5 @@
 		    map->zones[map->cnt - 1].size < start))
 			break;
-		
+
 		if (size > 0) {
 			map->zones[map->cnt].start = start;
@@ -397,5 +397,5 @@
 		}
 	}
-	
+
 	if (map->total == 0) {
 		printf("Error: No physical memory detected, halting.\n");
@@ -421,5 +421,5 @@
 		*base_pa = ofw_claim_phys_any(size, PAGE_SIZE);
 	} while (*base_pa <= min_pa);
-	
+
 	*base = ofw_claim_virt_any(size, PAGE_SIZE);
 	ofw_map(*base_pa, *base, ALIGN_UP(size, PAGE_SIZE), (ofw_arg_t) -1);
@@ -433,9 +433,9 @@
 	    OFW_TREE_PROPERTY_MAX_VALUELEN) <= 0)
 		return;
-	
+
 	device_type[OFW_TREE_PROPERTY_MAX_VALUELEN - 1] = '\0';
 	if (str_cmp(device_type, "display") != 0)
 		return;
-	
+
 	/* Check for 8 bit depth */
 	ofw_prop_t depth;
@@ -443,17 +443,17 @@
 	    sizeof(depth)) <= 0)
 		depth = 0;
-	
+
 	/* Get device path */
 	ofw_arg_t len = ofw_package_to_path(handle, path, OFW_TREE_PATH_MAX_LEN);
 	if (len == (ofw_arg_t) -1)
 		return;
-	
+
 	path[len] = '\0';
-	
+
 	/* Open the display to initialize it */
 	ihandle screen = ofw_open(path);
 	if (screen == (ihandle) -1)
 		return;
-	
+
 	if (depth == 8) {
 		/* Setup the palette so that the (inverted) 3:2:3 scheme is usable */
@@ -470,5 +470,5 @@
 	while ((current != 0) && (current != (phandle) -1)) {
 		ofw_setup_screen(current);
-		
+
 		/*
 		 * Recursively process the potential child node.
@@ -477,5 +477,5 @@
 		if ((child != 0) && (child != (phandle) -1))
 			ofw_setup_screens_internal(child);
-		
+
 		/*
 		 * Iteratively process the next peer node.
@@ -493,5 +493,5 @@
 			continue;
 		}
-		
+
 		/*
 		 * No more peers on this level.
Index: boot/genarch/src/ofw_tree.c
===================================================================
--- boot/genarch/src/ofw_tree.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ boot/genarch/src/ofw_tree.c	(revision d5e5fd1214ee9617b9a936d6f09efec4c9a91b48)
@@ -65,5 +65,5 @@
 	if (addr)
 		addr[size] = '\0';
-	
+
 	return addr;
 }
@@ -98,5 +98,5 @@
 		current_node->property = NULL;
 		current_node->device = NULL;
-		
+
 		/*
 		 * Get the disambigued name.
@@ -105,23 +105,23 @@
 		if (len == (size_t) -1)
 			return;
-		
+
 		path[len] = '\0';
-		
+
 		/* Find last slash */
 		size_t i;
 		for (i = len; (i > 0) && (path[i - 1] != '/'); i--);
-		
+
 		/* Do not include the slash */
 		len -= i;
-		
+
 		/* Add space for trailing '\0' */
 		char *da_name = ofw_tree_space_alloc(len + 1);
 		if (!da_name)
 			return;
-		
+
 		memcpy(da_name, &path[i], len);
 		da_name[len] = '\0';
 		current_node->da_name = (char *) balloc_rebase(da_name);
-		
+
 		/*
 		 * Recursively process the potential child node.
@@ -137,5 +137,5 @@
 			}
 		}
-		
+
 		/*
 		 * Count properties.
@@ -146,8 +146,8 @@
 			memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN);
 		}
-		
+
 		if (!current_node->properties)
 			return;
-		
+
 		/*
 		 * Copy properties.
@@ -157,17 +157,17 @@
 		if (!property)
 			return;
-		
+
 		name[0] = '\0';
 		for (i = 0; ofw_next_property(current, name, name2) == 1; i++) {
 			if (i == current_node->properties)
 				break;
-			
+
 			memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN);
 			memcpy(property[i].name, name, OFW_TREE_PROPERTY_MAX_NAMELEN);
 			property[i].name[OFW_TREE_PROPERTY_MAX_NAMELEN - 1] = '\0';
-			
+
 			size_t size = ofw_get_proplen(current, name);
 			property[i].size = size;
-			
+
 			if (size) {
 				void *buf = ofw_tree_space_alloc(size);
@@ -182,9 +182,9 @@
 				property[i].value = NULL;
 		}
-		
+
 		/* Just in case we ran out of memory. */
 		current_node->properties = i;
 		current_node->property = (ofw_tree_property_t *) balloc_rebase(property);
-		
+
 		/*
 		 * Iteratively process the next peer node.
@@ -207,5 +207,5 @@
 			}
 		}
-		
+
 		/*
 		 * No more peers on this level.
@@ -225,5 +225,5 @@
 	if (root)
 		ofw_tree_node_process(root, NULL, ofw_root);
-	
+
 	/*
 	 * The firmware client interface does not automatically include the
@@ -241,5 +241,5 @@
 		}
 	}
-	
+
 	return (ofw_tree_node_t *) balloc_rebase(root);
 }
