Age | Commit message (Collapse) | Author |
|
To prevent a situation where there is a data race between one thread
freeing physical memory and one allocating physical memory. Do not
immediately reuse freed physical memory. Instead, keep allocating
upwards and once there is no more room, wrap the last_idx back to the
bitmap free index. We now also zero allocated physical memory for
security reasons.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Ensure a contiguous region of physical memory is allocated
in vm_alloc_frame()
- Fix issues with physical memory being clobbered with excessive
allocations
- Clean up frame walk loop
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Use ALIGN_UP() on base address in vm_free_frame()
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Was supposed to happen on Jan 1, sorry! Happy late new year!
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|