mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:47:43 +00:00
Kernel: Remove arbitrary alignment requirement from kmalloc_aligned()
We were not allowing alignments greater than PAGE_SIZE for some reason.
This commit is contained in:
parent
9182653a0f
commit
f6c594fa29
1 changed files with 0 additions and 1 deletions
|
@ -303,7 +303,6 @@ size_t kmalloc_good_size(size_t size)
|
||||||
|
|
||||||
void* kmalloc_aligned(size_t size, size_t alignment)
|
void* kmalloc_aligned(size_t size, size_t alignment)
|
||||||
{
|
{
|
||||||
VERIFY(alignment <= 4096);
|
|
||||||
Checked<size_t> real_allocation_size = size;
|
Checked<size_t> real_allocation_size = size;
|
||||||
real_allocation_size += alignment;
|
real_allocation_size += alignment;
|
||||||
real_allocation_size += sizeof(ptrdiff_t) + sizeof(size_t);
|
real_allocation_size += sizeof(ptrdiff_t) + sizeof(size_t);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue