Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Fix incorrect supperior limits. #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions miv-rv32im-interrupt-blinky/riscv_hal/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern uint32_t __bss_end;

static void copy_section(uint32_t * p_load, uint32_t * p_vma, uint32_t * p_vma_end)
{
while(p_vma <= p_vma_end)
while(p_vma < p_vma_end)
{
*p_vma = *p_load;
++p_load;
Expand All @@ -47,7 +47,7 @@ static void zero_section(uint32_t * start, uint32_t * end)
{
uint32_t * p_zero = start;

while(p_zero <= end)
while(p_zero < end)
{
*p_zero = 0;
++p_zero;
Expand Down