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
3 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
struct lp_chunk {
|
struct lp_chunk {
|
||||||
struct lp_chunk *next;
|
struct lp_chunk *next;
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
|
uintptr_t data_align[0];
|
||||||
byte data[0];
|
byte data[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -250,6 +250,7 @@ resource_init(void)
|
||||||
struct mblock {
|
struct mblock {
|
||||||
resource r;
|
resource r;
|
||||||
unsigned size;
|
unsigned size;
|
||||||
|
uintptr_t data_align[0];
|
||||||
byte data[0];
|
byte data[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ static struct resclass sl_class = {
|
||||||
|
|
||||||
struct sl_obj {
|
struct sl_obj {
|
||||||
node n;
|
node n;
|
||||||
|
uintptr_t data_align[0];
|
||||||
byte data[0];
|
byte data[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue