Skip to content

Commit 912b03f

Browse files
author
Diego Ferrari
committed
[DTB] using the USE_DTB value when calculating ram
1 parent 6922af3 commit 912b03f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/memory/talloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ int get_memory_region(uint64_t *out_base, uint64_t *out_size) {
145145
}
146146

147147
void calc_ram(){
148-
if (get_memory_region(&total_ram_start, &total_ram_size)) {
148+
if (USE_DTB && get_memory_region(&total_ram_start, &total_ram_size)) {
149149
calculated_ram_end = total_ram_start + total_ram_size;
150150
calculated_ram_start = ((uint64_t)&kcode_end) + 0x1;
151151
calculated_ram_start = ((calculated_ram_start) & ~((1ULL << 21) - 1));

0 commit comments

Comments
 (0)