revert apic change
this is now on its own branch and will be worked on separately from the main focus of this project, which is to get a VFS and into userspace as soon as possible
This commit is contained in:
parent
c78085373c
commit
9cf4b71559
5 changed files with 7 additions and 20 deletions
|
|
@ -249,9 +249,6 @@ void *buddy_alloc(size_t size)
|
|||
|
||||
/* Linear search because array is small */
|
||||
for (size_t i = 0; i < num_regions; i++) {
|
||||
if (!mem_regions[num_regions - i - 1].usable)
|
||||
continue;
|
||||
|
||||
struct buddy_region_header *head = (void *)(mem_regions[num_regions - i - 1].base | hhdm_start);
|
||||
|
||||
paddr_t ret = buddy_alloc_helper(head, size);
|
||||
|
|
@ -271,9 +268,6 @@ void buddy_free(void *ptr)
|
|||
|
||||
/* Linear search because array is small */
|
||||
for (size_t i = 0; i < num_regions; i++) {
|
||||
if (!mem_regions[num_regions - i - 1].usable)
|
||||
continue;
|
||||
|
||||
struct buddy_region_header *head = (void *)(mem_regions[num_regions - i - 1].base | hhdm_start);
|
||||
|
||||
if (paddr >= head->usable_base && paddr < (head->usable_base + head->usable_len)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue