mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Fixes memory alignment problems on Sparc64.
Not quite standard construction, i should add some autoconf macro. Not tested yet.
This commit is contained in:
parent
2389c46fe3
commit
d1abbeacfb
@ -27,6 +27,7 @@
|
||||
struct lp_chunk {
|
||||
struct lp_chunk *next;
|
||||
unsigned int size;
|
||||
uintptr_t data_align[0];
|
||||
byte data[0];
|
||||
};
|
||||
|
||||
|
@ -250,6 +250,7 @@ resource_init(void)
|
||||
struct mblock {
|
||||
resource r;
|
||||
unsigned size;
|
||||
uintptr_t data_align[0];
|
||||
byte data[0];
|
||||
};
|
||||
|
||||
|
@ -62,6 +62,7 @@ static struct resclass sl_class = {
|
||||
|
||||
struct sl_obj {
|
||||
node n;
|
||||
uintptr_t data_align[0];
|
||||
byte data[0];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user