Fixes memory alignment problems on Sparc64.

Not quite standard construction, i should add
some autoconf macro.

Not tested yet.
This commit is contained in:
Ondrej Zajicek 2009-07-06 19:07:01 +02:00
parent 2389c46fe3
commit d1abbeacfb
3 changed files with 3 additions and 0 deletions

View file

@ -27,6 +27,7 @@
struct lp_chunk {
struct lp_chunk *next;
unsigned int size;
uintptr_t data_align[0];
byte data[0];
};

View file

@ -250,6 +250,7 @@ resource_init(void)
struct mblock {
resource r;
unsigned size;
uintptr_t data_align[0];
byte data[0];
};

View file

@ -62,6 +62,7 @@ static struct resclass sl_class = {
struct sl_obj {
node n;
uintptr_t data_align[0];
byte data[0];
};