Commit d1abbeac authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes memory alignment problems on Sparc64.

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

Not tested yet.
parent 2389c46f
......@@ -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];
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment