PATCH: arcboot cache
Let's make arcboot 20x faster, shall we? Tested on ip22, ip32.
e2fslib/bitops.h +3 -0
@@ -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
@@ -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
@@ -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
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
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
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
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
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