Fix FAT driver issues (FAT32 while being under 32MiB), liballoc alignment so SSE doesnt break
This commit is contained in:
@@ -217,6 +217,8 @@ static struct boundary_tag* allocate_new_tag (unsigned int size) {
|
||||
}
|
||||
|
||||
void* malloc (size_t size) {
|
||||
size = (size + 15) & ~15;
|
||||
|
||||
int index;
|
||||
void* ptr;
|
||||
struct boundary_tag* tag = NULL;
|
||||
|
||||
@@ -41,7 +41,7 @@ struct boundary_tag {
|
||||
|
||||
struct boundary_tag* next; //< Linked list info.
|
||||
struct boundary_tag* prev; //< Linked list info.
|
||||
};
|
||||
} __attribute__ ((aligned (16)));
|
||||
|
||||
/** This function is supposed to lock the memory data structures. It
|
||||
* could be as simple as disabling interrupts or acquiring a spinlock.
|
||||
|
||||
Reference in New Issue
Block a user