This repository has been archived on 2023-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
homepage/content/projects/noxos/docs/codebase/mm/memory_map.h.md

11 lines
434 B
Markdown
Raw Normal View History

---
title: "memory_map.h"
summary: "functions to parse the memory map provided by the bootloader"
---
# `memory_map_get_total_memory_size(boot_info*)` - function (uint64_t)
Calculates the total amount of memory available, by iterating over the memory map.
The size is stored in a static variable, so no matter how often you call this function, the size will only be calculated once.
The total amount of memory is returned in bytes.