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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.