# HG changeset patch # User jlarmour # Date 1226377747 0 # Node ID 7ad5f3aecbf60a76f381032d80de136f10287c67 # Parent 3ea2b2f69262965ba8a1a56c025c91bfe0c1d8ad * misc/adderII_redboot_ROMRAM.ecm: Update minimum image size from 0x30000 to 0x50000. * include/pkgconf/mlt_powerpc_adder_ram.ldi: Allow up to 0x60000 to be used by ROM. * include/pkgconf/mlt_powerpc_adder_ram.h (CYGMEM_SECTION_reserved_for_rom_SIZE): Ditto. * cdl/hal_powerpc_adder.cdl: Remove "-fvtable-gc" and "-finit-priority" from the set of default compilation flags. * include/pkgconf/mlt_powerpc_adder_romram.ldi: Include relocs and .eh_frame sections. * include/pkgconf/mlt_powerpc_adder_rom.ldi: Ditto. * include/pkgconf/mlt_powerpc_adder_ram.ldi: Ditto. * include/pkgconf/mlt_powerpc_adder_ram.*, doc/adder.sgml: Reserve an additional 64kB for use by RedBoot. diff --git a/packages/hal/powerpc/adder/current/ChangeLog b/packages/hal/powerpc/adder/current/ChangeLog --- a/packages/hal/powerpc/adder/current/ChangeLog +++ b/packages/hal/powerpc/adder/current/ChangeLog @@ -3,12 +3,39 @@ 2005-03-27 Andrew Lunn + + * misc/adderII_redboot_ROMRAM.ecm: Update minimum image size from + 0x30000 to 0x50000. + + * include/pkgconf/mlt_powerpc_adder_ram.ldi: Allow up to 0x60000 to be used + by ROM. + * include/pkgconf/mlt_powerpc_adder_ram.h + (CYGMEM_SECTION_reserved_for_rom_SIZE): Ditto. + +2004-11-04 John Dallaway + + * cdl/hal_powerpc_adder.cdl: Remove "-fvtable-gc" and "-finit-priority" + from the set of default compilation flags. + +2004-09-28 John Dallaway + + * include/pkgconf/mlt_powerpc_adder_romram.ldi: Include relocs and + .eh_frame sections. + * include/pkgconf/mlt_powerpc_adder_rom.ldi: Ditto. + * include/pkgconf/mlt_powerpc_adder_ram.ldi: Ditto. + 2004-09-16 Gary Thomas * src/hal_aux.c (hal_platform_init): Move parallel port initializations from variant here (comment says they are required re: errata, but no supporting documentation is known) +2004-01-12 John Dallaway + + * include/pkgconf/mlt_powerpc_adder_ram.*, doc/adder.sgml: + Reserve an additional 64kB for use by RedBoot. + 2003-12-21 Gary Thomas * src/adder.S: Only clear caches on non-RAM startup modes. This fixes diff --git a/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl b/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl --- a/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl +++ b/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl @@ -186,7 +186,7 @@ cdl_package CYGPKG_HAL_POWERPC_ADDER { display "Global compiler flags" flavor data no_define - default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" } + default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" } description " This option controls the global compiler flags which are used to compile all packages by diff --git a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.h b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.h --- a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.h +++ b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.h @@ -29,7 +29,7 @@ extern char CYG_LABEL_NAME (__reserved_v extern char CYG_LABEL_NAME (__reserved_for_rom) []; #endif #define CYGMEM_SECTION_reserved_for_rom (CYG_LABEL_NAME (__reserved_for_rom)) -#define CYGMEM_SECTION_reserved_for_rom_SIZE (0x3cd00) +#define CYGMEM_SECTION_reserved_for_rom_SIZE (0x5cd00) #ifndef __ASSEMBLER__ extern char CYG_LABEL_NAME (__heap1) []; #endif diff --git a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.ldi b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.ldi --- a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.ldi +++ b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.ldi @@ -15,14 +15,16 @@ SECTIONS CYG_LABEL_DEFN(__reserved_vectors) = 0; . = CYG_LABEL_DEFN(__reserved_vectors) + 0x3000; CYG_LABEL_DEFN(__reserved_vsr_table) = ALIGN (0x10); . = CYG_LABEL_DEFN(__reserved_vsr_table) + 0x200; CYG_LABEL_DEFN(__reserved_virtual_table) = ALIGN (0x10); . = CYG_LABEL_DEFN(__reserved_virtual_table) + 0x100; - CYG_LABEL_DEFN(__reserved_for_rom) = ALIGN (0x10); . = CYG_LABEL_DEFN(__reserved_for_rom) + 0x3cd00; + CYG_LABEL_DEFN(__reserved_for_rom) = ALIGN (0x10); . = CYG_LABEL_DEFN(__reserved_for_rom) + 0x5cd00; SECTION_vectors (ram, ALIGN (0x10), LMA_EQ_VMA) + SECTION_RELOCS (ram, ALIGN(0x4), LMA_EQ_VMA) SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) + SECTION_eh_frame (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA) diff --git a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.mlt b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.mlt --- a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.mlt +++ b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_ram.mlt @@ -3,7 +3,7 @@ region ram 0 800000 0 ! section reserved_vectors 3000 1 0 0 1 1 1 1 0 0 reserved_vsr_table reserved_vsr_table ! section reserved_vsr_table 200 10 0 0 0 1 0 1 reserved_virtual_table reserved_virtual_table ! section reserved_virtual_table 100 10 0 0 0 1 0 1 reserved_for_rom reserved_for_rom ! -section reserved_for_rom 3cd00 10 0 0 0 1 0 1 vectors vectors ! +section reserved_for_rom 4cd00 10 0 0 0 1 0 1 vectors vectors ! section vectors 0 10 0 1 0 1 0 1 text text ! section text 0 4 0 1 0 1 0 1 fini fini ! section fini 0 4 0 1 0 1 0 1 rodata1 rodata1 ! diff --git a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_rom.ldi b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_rom.ldi --- a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_rom.ldi +++ b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_rom.ldi @@ -14,11 +14,13 @@ SECTIONS { SECTIONS_BEGIN SECTION_vectors (rom, 0xfe000000, LMA_EQ_VMA) + SECTION_RELOCS (rom, ALIGN(0x4), LMA_EQ_VMA) SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (rom, ALIGN (0x8), LMA_EQ_VMA) SECTION_rodata (rom, ALIGN (0x8), LMA_EQ_VMA) SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA) + SECTION_eh_frame (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (rom, ALIGN (0x1), LMA_EQ_VMA) CYG_LABEL_DEFN(__reserved_vectors) = 0; . = CYG_LABEL_DEFN(__reserved_vectors) + 0x3000; CYG_LABEL_DEFN(__reserved_vsr_table) = ALIGN (0x1); . = CYG_LABEL_DEFN(__reserved_vsr_table) + 0x200; diff --git a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_romram.ldi b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_romram.ldi --- a/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_romram.ldi +++ b/packages/hal/powerpc/adder/current/include/pkgconf/mlt_powerpc_adder_romram.ldi @@ -14,11 +14,13 @@ SECTIONS SECTIONS_BEGIN SECTION_vectors (ram, 0, LMA_EQ_VMA) SECTION_text (ram, 0x3400, LMA_EQ_VMA) + SECTION_RELOCS (ram, ALIGN(0x4), LMA_EQ_VMA) SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) + SECTION_eh_frame (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA) diff --git a/packages/hal/powerpc/adder/current/misc/adderII_redboot_ROMRAM.ecm b/packages/hal/powerpc/adder/current/misc/adderII_redboot_ROMRAM.ecm --- a/packages/hal/powerpc/adder/current/misc/adderII_redboot_ROMRAM.ecm +++ b/packages/hal/powerpc/adder/current/misc/adderII_redboot_ROMRAM.ecm @@ -72,7 +72,7 @@ cdl_component CYGBLD_BUILD_REDBOOT { }; cdl_option CYGBLD_REDBOOT_MIN_IMAGE_SIZE { - user_value 0x00030000 + user_value 0x00050000 }; cdl_option CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP {