Index: boot/genarch/ofw.c
===================================================================
--- boot/genarch/ofw.c	(revision 9ab9c2ec85cf371e50f3b815722f6586f78add5b)
+++ boot/genarch/ofw.c	(revision 771cd22b02d9fec4d7d601d12b2979a07abb50db)
@@ -234,5 +234,10 @@
 }
 
-
+/** Save OpenFirmware physical memory map.
+ *
+ * @param map Memory map structure where the map will be saved.
+ *
+ * @return Zero on failure, non-zero on success.
+ */
 int ofw_memmap(memmap_t *map)
 {
@@ -240,5 +245,5 @@
 	unsigned int sc = ofw_get_size_cells(ofw_memory);
 
-	uint32_t buf[((ac+sc)*MEMMAP_MAX_RECORDS)];
+	uint32_t buf[((ac + sc) * MEMMAP_MAX_RECORDS)];
 	int ret = ofw_get_property(ofw_memory, "reg", buf, sizeof(buf));
 	if (ret <= 0)		/* ret is the number of written bytes */
@@ -248,5 +253,6 @@
 	map->total = 0;
 	map->count = 0;
-	for (pos = 0; (pos < ret / sizeof(uint32_t)) && (map->count < MEMMAP_MAX_RECORDS); pos += ac + sc) {
+	for (pos = 0; (pos < ret / sizeof(uint32_t)) && (map->count <
+		MEMMAP_MAX_RECORDS); pos += ac + sc) {
 		void * start = (void *) ((uintptr_t) buf[pos + ac - 1]);
 		unsigned int size = buf[pos + ac + sc - 1];
