Changeset 804 for trunk


Ignore:
Timestamp:
Sep 12, 2014, 4:29:46 PM (10 years ago)
Author:
cfuguet
Message:

tsar_boot: using RESET_ADDRESS as preloader base address

  • The preloader base address is defined by RESET_ADDRESS instead of SEG_ROM_BASE.
  • Some platforms, like tsar_generic_leti, use the preloader but they do not have a ROM. Therefore the preloader is loaded during initialization in RAM.
Location:
trunk/softs/tsar_boot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/include/defs.h

    r801 r804  
    4444#endif
    4545
    46 #ifndef SEG_ROM_BASE
    47 #   error "SEG_ROM_BASE constant must be defined in the hard_config.h file"
     46#ifndef RESET_ADDRESS
     47#   error "RESET_ADDRESS constant must be defined in the hard_config.h file"
    4848#endif
    4949
  • trunk/softs/tsar_boot/preloader.ld.in

    r794 r804  
    1212/* Definition of the base address for code segment */
    1313
    14 seg_code_base = SEG_ROM_BASE;
     14seg_code_base = RESET_ADDRESS;
    1515seg_data_base = SEG_RAM_BASE + SEG_RAM_SIZE - RESET_STACK_SIZE - 0x4000;
    1616
Note: See TracChangeset for help on using the changeset viewer.