Ignore:
Timestamp:
Oct 22, 2013, 8:15:05 PM (11 years ago)
Author:
bouyer
Message:

Make sure the boot loader won't try to write to the ROM.
Store read-write data in BSS along with the stack at seg_stack_base.

Location:
trunk/softs/tsar_boot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/boot_elf_loader.c

    r425 r554  
    1717
    1818#if (BOOT_DEBUG == 1)
    19 static char* init_state_str[] = {
     19static char const * const init_state_str[] = {
    2020    "ELF_HEADER_STATE",
    2121    "ELF_PROGRAM_HEADER_STATE",
  • trunk/softs/tsar_boot/src/boot_ioc.c

    r425 r554  
    44
    55static struct sdcard_dev  _sdcard_device;
    6 static struct spi_dev   * _spi_device   = ( struct spi_dev * )IOC_BASE;
     6static struct spi_dev   *const _spi_device   = ( struct spi_dev * )IOC_BASE;
    77
    88#endif // end ifndef SOCLIB_IOC
  • trunk/softs/tsar_boot/src/reset.S

    r502 r554  
    139139    /* Initializes stack pointer */
    140140
    141     la      k1,     seg_stack_base
    142     li      k0,     BOOT_STACK_SIZE
    143     addu    sp,     k1,     k0      /* sp <= seg_stack_base + BOOT_STACK_SIZE */
     141    la      sp,     stk
    144142
    145143    la      a0,     versionstr
     
    220218    .set reorder
    221219
     220    .section .data
     221    .space BOOT_STACK_SIZE
     222stk:
     223    .space 1
     224
    222225/*
    223226 * vim: tabstop=4 : shiftwidth=4 : expandtab
Note: See TracChangeset for help on using the changeset viewer.