Skip to contentSkip to conversation

PATCH: arcboot cache

PATCH Keith M Wesolowski 4 participants 6 messages Nov 23, 2004 – Nov 30, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.

e2fslib/bitops.h +3 -0
diff -urN arcboot-0.3.8.4/e2fslib/bitops.h arcboot-working/e2fslib/bitops.h
@@ -410,6 +410,9 @@
 #endif /* !_EXT2_HAVE_ASM_SWAB */
 
 #if !defined(_EXT2_HAVE_ASM_FINDBIT_)
+
+extern int ffs(int);
+
 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
 {
 	char	*cp = (unsigned char *) addr;
ext2load/arcboot.h +1 -0
diff -urN arcboot-0.3.8.4/ext2load/arcboot.h arcboot-working/ext2load/arcboot.h
@@ -21,5 +21,6 @@
 CHAR** ReadConfFile(char **partition, const char *filename, char* config);
 
 /* ext2io.c */
+extern int arc_do_progress;
 void print_ext2fs_error(long status);
 #endif /* _ARCBOOT_H */
ext2load/ext2io.c +499 -31

625 lines not on this page · raw message

ext2load/loader.c +6 -0
diff -urN arcboot-0.3.8.4/ext2load/loader.c arcboot-working/ext2load/loader.c
@@ -18,6 +18,7 @@
 #include <ext2fs.h>
 
 #include <asm/addrspace.h>
+#include <asm/mipsregs.h>
 #include "arcboot.h"
 
 #include <subarch.h>
@@ -242,10 +243,13 @@
 				    Fatal("Cannot seek to program segment\n\r");
 			    }
 
+			    arc_do_progress = 1;
 			    status = ext2fs_file_read(file,
 						  (void *) (KSEG0ADDR(
 						            segment->p_vaddr)),
 						  segment->p_filesz, NULL);
+			    printf("\n\n\r");	/* Clear progress */
+			    arc_do_progress = 0;
 			    if (status != 0) {
 				print_ext2fs_error(status);
 				Fatal("Cannot read program segment\n\r");
@@ -289,10 +293,12 @@
 				    Fatal("Cannot seek to program segment\n\r");
 			    }
 
+			    arc_do_progress = 1;
 			    status = ext2fs_file_read(file,
 						  (void *) (KSEG0ADDR(
 						            segment->p_vaddr)),
 						  segment->p_filesz, NULL);
+			    arc_do_progress = 0;
 			    if (status != 0) {
 				print_ext2fs_error(status);
 				Fatal("Cannot read program segment\n\r");
Signature · 2 lines
Keith M Wesolowski
"Site launched. Many things not yet working." --Hector Urtubia
#1 lore raw
Quoted 1 line · Keith M Wesolowski

Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.

Very cool. Unfortunately I intended to rip out libext2fs anytime soon, anyways I'll apply the patch until then.
-- Guido

#2 lore raw
Quoted 4 lines · Guido Guenther
Quoted 1 line · Keith M Wesolowski

Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.

Very cool. Unfortunately I intended to rip out libext2fs anytime soon, anyways I'll apply the patch until then.

Guido, I imported arcboot-0.3.8.4 into CVS repository and commited this patch as well as patch by Thiemo Seufer. Debian package builds fine and arcboot is _much_ faster. Thanks Keith :)

Regards,
ladis

#3 lore raw
Quoted 9 lines · Ladislav Michl
Quoted 4 lines · Guido Guenther
Quoted 1 line · Keith M Wesolowski

Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.

Very cool. Unfortunately I intended to rip out libext2fs anytime soon, anyways I'll apply the patch until then.

Guido, I imported arcboot-0.3.8.4 into CVS repository and commited this patch as well as patch by Thiemo Seufer. Debian package builds fine and arcboot is _much_ faster. Thanks Keith :)

Noticed this already. Glad that arcboot is in good hands now ;)
-- Guido

#4 lore raw
In reply to Guido Guenther
Quoted 3 lines · Guido Guenther
Quoted 1 line · Keith M Wesolowski

Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.

Very cool. Unfortunately I intended to rip out libext2fs anytime soon,

What so you want to use instead?

Thiemo

#5 lore raw
Quoted 6 lines · Thiemo Seufer
Quoted 3 lines · Guido Guenther
Quoted 1 line · Keith M Wesolowski

Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.

Very cool. Unfortunately I intended to rip out libext2fs anytime soon,

What so you want to use instead?

The one shipped with debian like delo.
-- Guido