allocin'g actually works now, but we can free random pointers... weird
This commit is contained in:
@ -16,6 +16,8 @@
|
||||
|
||||
#include "multiboot.h"
|
||||
|
||||
extern struct pmm_mem_info main_mem;
|
||||
|
||||
void verify_memmap(multiboot_info_t* mbd, uint32_t magic)
|
||||
{
|
||||
if (magic != MULTIBOOT_BOOTLOADER_MAGIC)
|
||||
@ -61,7 +63,13 @@ void _main(multiboot_info_t* mbd, uint32_t magic)
|
||||
pmm_init();
|
||||
print_main_mem();
|
||||
|
||||
pmm_alloc_block();
|
||||
|
||||
void* a = pmm_alloc_block();
|
||||
|
||||
print_main_mem();
|
||||
|
||||
|
||||
pmm_free_block(a);
|
||||
|
||||
print_main_mem();
|
||||
|
||||
|
Reference in New Issue
Block a user