blob: 0657244c06ad98c1c982dd3d1ef3a5daa004e78c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* @file pmem.c
* riscv64 implementation of arch-specific physical memory handling
*/
#include <arch/pmem.h>
stat_t stat_pmem_conf(void *fdt, size_t *max_order, size_t *base_bits,
size_t bits[NUM_ORDERS])
{
UNUSED(fdt);
/* Sv39 for now */
*max_order = 2;
*base_bits = 12;
/* we can assume bits[] is zeroed out beforehand */
for (size_t i = 0; i <= *max_order; ++i)
bits[i] = 9;
return OK;
}
|