From 66b0d9ebaf42e1621e180fef79de53d51d42141a Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Fri, 26 Jan 2007 19:08:16 -0800 Subject: [PATCH] --- yaml --- r: 46835 b: refs/heads/master c: 577157659fb0ace3b88dd75e2c6cb1af84b3040d h: refs/heads/master i: 46833: 03d85db623c9753c733c220b09091a420dd79f14 46831: 991cd4df459bea5c917acc06ce72be5cb4dd0ca7 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/ps3/interrupt.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1ccd90b151fd..6c793f8cecc1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b1eeb38e456281c37bbfc270a6ca08605b7e7045 +refs/heads/master: 577157659fb0ace3b88dd75e2c6cb1af84b3040d diff --git a/trunk/arch/powerpc/platforms/ps3/interrupt.c b/trunk/arch/powerpc/platforms/ps3/interrupt.c index 3735cd14f614..95b128ba9087 100644 --- a/trunk/arch/powerpc/platforms/ps3/interrupt.c +++ b/trunk/arch/powerpc/platforms/ps3/interrupt.c @@ -48,6 +48,9 @@ * behalf of the guest. These mappings are implemented as 256 bit guest * supplied bitmaps indexed by plug number. The addresses of the bitmaps * are registered with the HV through lv1_configure_irq_state_bitmap(). + * The HV requires that the 512 bits of status + mask not cross a page + * boundary. PS3_BMP_MINALIGN is used to define this minimal 64 byte + * alignment. * * The HV supports 256 plugs per thread, assigned as {0..255}, for a total * of 512 plugs supported on a processor. To simplify the logic this @@ -59,6 +62,8 @@ * can acquire. */ +#define PS3_BMP_MINALIGN 64 + struct ps3_bmp { struct { u64 status; @@ -78,7 +83,7 @@ struct ps3_bmp { */ struct ps3_private { - struct ps3_bmp bmp __attribute__ ((aligned (64))); + struct ps3_bmp bmp __attribute__ ((aligned (PS3_BMP_MINALIGN))); u64 node; unsigned int cpu; };