diff options
Diffstat (limited to 'machine/configstring.c')
-rw-r--r-- | machine/configstring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/machine/configstring.c b/machine/configstring.c index d2f2a84..e134398 100644 --- a/machine/configstring.c +++ b/machine/configstring.c @@ -8,6 +8,7 @@ static void query_mem(const char* config_string) query_result res = query_config_string(config_string, "ram{0{addr"); assert(res.start); uintptr_t base = get_uint(res); + assert(base == DRAM_BASE); res = query_config_string(config_string, "ram{0{size"); mem_size = get_uint(res); } @@ -46,7 +47,7 @@ static void query_harts(const char* config_string) void parse_config_string() { - const char* s = (const char*)read_csr(mcfgaddr); + const char* s = *(const char* const*)CONFIG_STRING_ADDR; query_mem(s); query_rtc(s); query_harts(s); |