We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6922af3 commit 912b03fCopy full SHA for 912b03f
1 file changed
kernel/memory/talloc.c
@@ -145,7 +145,7 @@ int get_memory_region(uint64_t *out_base, uint64_t *out_size) {
145
}
146
147
void calc_ram(){
148
- if (get_memory_region(&total_ram_start, &total_ram_size)) {
+ if (USE_DTB && get_memory_region(&total_ram_start, &total_ram_size)) {
149
calculated_ram_end = total_ram_start + total_ram_size;
150
calculated_ram_start = ((uint64_t)&kcode_end) + 0x1;
151
calculated_ram_start = ((calculated_ram_start) & ~((1ULL << 21) - 1));
0 commit comments