Index: boot/arch/arm32/loader/main.c
===================================================================
--- boot/arch/arm32/loader/main.c	(revision 81b430a1d2cded9a53f2d692a1a4ff605a49b13c)
+++ boot/arch/arm32/loader/main.c	(revision 1e48aca126a9240d1f5fda9e5c68f712291da0fe)
@@ -88,18 +88,11 @@
 	printf(" %L: boot info structure\n", &bootinfo);
 
+	unsigned int top = 0;
+	bootinfo.cnt = 0;
 	unsigned int i, j;
 	for (i = 0; i < COMPONENTS; i++) {
 		printf(" %L: %s image (size %d bytes)\n", 
-			components[i].start, components[i].name, components[i].size);
-	}
-
-	printf("\nCopying components\n");
-
-	unsigned int top = 0;
-	bootinfo.cnt = 0;
-	for (i = 0; i < COMPONENTS; i++) {
-		printf(" %s...", components[i].name);
+		    components[i].start, components[i].name, components[i].size);
 		top = ALIGN_UP(top, KERNEL_PAGE_SIZE);
-		memcpy(((void *) KERNEL_VIRTUAL_ADDRESS) + top, components[i].start, components[i].size);
 		if (i > 0) {
 			bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top;
@@ -110,7 +103,21 @@
 		}
 		top += components[i].size;
+	}
+	j = bootinfo.cnt - 1; 
+
+	printf("\nCopying components\n");
+
+	for (i = COMPONENTS - 1; i > 0; i--, j--) {
+		printf(" %s...", components[i].name);
+		memcpy((void *)bootinfo.tasks[j].addr, components[i].start,
+		    components[i].size);
 		printf("done.\n");
 	}
 	
+	printf("\nCopying kernel...");
+	memcpy((void *)KERNEL_VIRTUAL_ADDRESS, components[0].start,
+	    components[0].size);
+	printf("done.\n");
+
 	printf("\nBooting the kernel...\n");
 	jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo);
