mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add padding to align allocate memory to a 32 Byte boundary
- required to align memory for AVX usage
This commit is contained in:
parent
a3a8a9f5de
commit
3e5b8e65d3
2 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
#include <asm/page.h>
|
||||
#include <asm/multiboot.h>
|
||||
|
||||
#define TLS_OFFSET 8
|
||||
#define TLS_OFFSET 0
|
||||
|
||||
/*
|
||||
* Note that linker symbols are not variables, they have no memory allocated for
|
||||
|
|
|
@ -71,6 +71,8 @@ typedef union buddy {
|
|||
uint8_t exponent;
|
||||
/// Must be equal to BUDDY_MAGIC for a valid memory block
|
||||
uint16_t magic;
|
||||
/// padding to gurantee a sizeof 32Byte
|
||||
uint8_t padding[28];
|
||||
} prefix;
|
||||
} buddy_t;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue