arch/riscv/mcall.c: Return the correct memory base and size
Change-Id: Ibf471787ccb4f5393b0af737a9f7fc47b853a41a Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/17594 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
0575a4f8ee
commit
ba571c79af
|
@ -28,6 +28,7 @@
|
|||
#include <arch/barrier.h>
|
||||
#include <arch/errno.h>
|
||||
#include <atomic.h>
|
||||
#include <commonlib/configstring.h>
|
||||
#include <console/console.h>
|
||||
#include <mcall.h>
|
||||
#include <string.h>
|
||||
|
@ -36,10 +37,13 @@
|
|||
uintptr_t mcall_query_memory(uintptr_t id, memory_block_info *info)
|
||||
{
|
||||
if (id == 0) {
|
||||
mprv_write_ulong(&info->base, 2U*GiB);
|
||||
uintptr_t base;
|
||||
size_t size;
|
||||
|
||||
/* TODO: Return the correct value */
|
||||
mprv_write_ulong(&info->size, 1*GiB);
|
||||
query_mem(configstring(), &base, &size);
|
||||
|
||||
mprv_write_ulong(&info->base, base);
|
||||
mprv_write_ulong(&info->size, size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue