On Aug 7, 2008, at 3:47 PM, Wolfgang Denk wrote: > In message <45CA6EEB-4A74-46FC-A544- > [EMAIL PROTECTED]> you wrote: >> >> On Aug 7, 2008, at 2:34 PM, Wolfgang Denk wrote: >> >>> In any case, I expoect the total numbers of lines of code in U- >>> Boot to >>> go down by quite an amount - for example, if we manage to get rid of >>> all the code duplication we have now across architectures. >> >> I doubt this is really going to happen because the majority of code >> is >> specific to the mechanism used to boot a kernel that is arch >> specific. >> >> (ie, the ePAPR style interface on PPC, the TAGs support on ARM, etc.) >> >> I dont see how we reduce code in that area (since it seems >> fundamentally arch specific). > > There is a lot of common code - verify and uncompress the Linux kernel > image; check for existence of, then verify and load the ramdisk, etc.
I agree that there is probably a far amount of code in lib_ppc/bootm.c that can be made common above it. The ARCH specific bits seem to be the "jump" and the specific mechanism to pass boot information to the kernel (bd_t, fdt, ARM tags, etc). - k ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users