x86/arm: Add BUGFRAME_NR define and BUILD checks.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Mar 2016 21:45:31 +0000 (16:45 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 22 Mar 2016 20:55:26 +0000 (16:55 -0400)
commit4c2cddb4713a148ec2297654985b30b2c4dac375
treeb385ae395e402cc873f2505f40a7e7dfdb89ddbb
parenta2fc8d514df2b38c310d4f4432fe06520b0769ed
x86/arm: Add BUGFRAME_NR define and BUILD checks.

So that we have a nice mechansim to figure out the upper
bounds of bug.frames and also catch compiler errors in case
one tries to use a higher frame number.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
---
Cc: Stefano Stabellini <stefano.stabellini@citrix.com>
Cc: Julien Grall <julien.grall@arm.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
v3: First time included.
v4: Add BUG_FRAME check also in the assembler version of the macro.
v5: Add Acks, make BUILD_BUG_ON checks look correct. Position the
    BUGFRAME_NR properly. Reposition the BUGFRAME_NR again.
---
xen/include/asm-arm/bug.h
xen/include/asm-x86/bug.h