Fix FAT driver issues (FAT32 while being under 32MiB), liballoc alignment so SSE doesnt break
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* liballoc breaks when optimized too aggressively, for eg. clang's -Oz */
|
||||
#pragma clang optimize off
|
||||
|
||||
#include <libk/align.h>
|
||||
#include <limine/requests.h>
|
||||
#include <mm/liballoc.h>
|
||||
#include <mm/pmm.h>
|
||||
@@ -240,6 +241,8 @@ static struct boundary_tag* allocate_new_tag (unsigned int size) {
|
||||
}
|
||||
|
||||
void* malloc (size_t size) {
|
||||
size = align_up (size, 16);
|
||||
|
||||
int index;
|
||||
void* ptr;
|
||||
struct boundary_tag* tag = NULL;
|
||||
|
||||
Reference in New Issue
Block a user