illustris / FreeRTOS-RISCV

A port of FreeRTOS for the RISC-V ISA
75 stars 42 forks source link

Run-time access fault with default build #5

Closed sherrbc1 closed 7 years ago

sherrbc1 commented 7 years ago

The binary does not build without modification because this string is commented out. The build finishes properly if the string is uncommented, but this line ultimately causes a run-time access fault.

The system will read memory from CONFIG_STRING_ADDR+0x0c and then attempt to dereference the result. When I ran it, this resulted in an attempt to dereference address 0x182b283, which causes a run-time fault. It looks as if this code was introduced with abc678b947a82b5c4d129b3ab2dc3c0682c3725f.

What is the purpose of the configuration string and what should it be when running in spike?

illustris commented 7 years ago

Config string address is an obsolete method of getting the address of mtime/mtimecmp registers and other memory mapped IO. It will not work on newer versions of spike