Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- So verarbeite ich die Memory map
- mmmap_t *mmap = (mmmap_entry_t *)0x1000;
- while (mmap->size != 0)
- {
- if (mmap->type == 1)
- {
- uintptr_t addr = mmap->base;
- uintptr_t end_addr = addr + mmap->size;
- while (addr < end_addr)
- {
- p_mm_free(addr);
- addr += 0x1000;
- }
- }
- mmap++;
- }
- Tas ist meine struct mmmap_t
- typedef struct
- {
- uint64_t base
- uint64_t size
- uint32_t type
- uint32_t ext
- }__attribute__((packed)) mmmap_t;
Advertisement
Add Comment
Please, Sign In to add comment