Function comments (v1)
This commit is contained in:
@@ -10,7 +10,14 @@
|
||||
|
||||
extern struct boot_context boot_ctx;
|
||||
|
||||
// Display the memmap so we see how the memory is laid out at handoff
|
||||
/*
|
||||
* memmap_display - displays a memory map
|
||||
* @response: Limine memory map response
|
||||
*
|
||||
* Displays the memory map we get from Limine
|
||||
* to see different regions, their sizes, and
|
||||
* how the memory is laid out at handoff.
|
||||
*/
|
||||
void memmap_display(struct limine_memmap_response* response)
|
||||
{
|
||||
DEBUG("Got memory map from Limine: revision %u, %u entries", response->revision, response->entry_count);
|
||||
@@ -51,12 +58,18 @@ void memmap_display(struct limine_memmap_response* response)
|
||||
}
|
||||
}
|
||||
|
||||
// Display the HHDM
|
||||
/*
|
||||
* hhdm_display - displays the HHDM offset
|
||||
* @hhdm: Limine HHDM offset response
|
||||
*/
|
||||
void hhdm_display(struct limine_hhdm_response* hhdm)
|
||||
{
|
||||
DEBUG("Got HHDM revision=%u offset=0x%p", hhdm->revision, hhdm->offset);
|
||||
}
|
||||
|
||||
/*
|
||||
* boot_mem_display - displays all memory info
|
||||
*/
|
||||
void boot_mem_display()
|
||||
{
|
||||
memmap_display(boot_ctx.mmap);
|
||||
|
||||
Reference in New Issue
Block a user