Changeset b0ee789 in rtems


Ignore:
Timestamp:
Jun 22, 2018, 9:14:07 AM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9b2ef07f
Parents:
52f4fb6
git-author:
Sebastian Huber <sebastian.huber@…> (06/22/18 09:14:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/18 06:58:18)
Message:

bsp/riscv: Use memset() to clear .bss

Update #3433.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/riscv/riscv/start/start.S

    r52f4fb6 rb0ee789  
    5353        la      sp, _Configuration_Interrupt_stack_area_end
    5454
    55         /* Clearing .bss */
    56         la      t0, bsp_section_bss_begin
    57         la      t1, bsp_section_bss_end
    58 
    59 _loop_clear_bss:
    60         bge     t0, t1, _end_clear_bss
    61         SREG    x0, 0(t0)
    62         addi    t0, t0, CPU_SIZEOF_POINTER
    63         j       _loop_clear_bss
    64 _end_clear_bss:
     55        /* Clear .bss */
     56        la      a0, bsp_section_bss_begin
     57        li      a1, 0
     58        la      a2, bsp_section_bss_size
     59        call    memset
    6560
    6661        /* Init FPU unit if it's there */
Note: See TracChangeset for help on using the changeset viewer.