aboutsummaryrefslogtreecommitdiff
path: root/machine/sbi_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'machine/sbi_impl.c')
-rw-r--r--machine/sbi_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/sbi_impl.c b/machine/sbi_impl.c
index 07844e0..f5ed8c9 100644
--- a/machine/sbi_impl.c
+++ b/machine/sbi_impl.c
@@ -5,7 +5,7 @@ uintptr_t __sbi_query_memory(uintptr_t id, memory_block_info *p)
{
if (id == 0) {
p->base = first_free_paddr;
- p->size = mem_size - p->base;
+ p->size = mem_size + DRAM_BASE - p->base;
return 0;
}