mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
Kernel: Make addresses returned by kmalloc() properly aligned for x86_64
This commit is contained in:
parent
1e20dd2a45
commit
078eeb7bb0
Notes:
sideshowbarker
2024-07-18 11:29:49 +09:00
Author: https://github.com/gunnarbeutner
Commit: 078eeb7bb0
Pull-request: https://github.com/SerenityOS/serenity/pull/8256
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/awesomekling
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ class Heap {
|
||||||
|
|
||||||
struct AllocationHeader {
|
struct AllocationHeader {
|
||||||
size_t allocation_size_in_chunks;
|
size_t allocation_size_in_chunks;
|
||||||
|
#if ARCH(X86_64)
|
||||||
|
// FIXME: Get rid of this somehow
|
||||||
|
size_t alignment_dummy;
|
||||||
|
#endif
|
||||||
u8 data[0];
|
u8 data[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue