]> xenbits.xensource.com Git - xtf.git/commit
xtf: Perform misc code cleanup
authorMichal Orzel <michal.orzel@arm.com>
Wed, 10 Mar 2021 10:43:32 +0000 (11:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Apr 2021 23:30:27 +0000 (00:30 +0100)
commit4288d41183a6a14f328504d8b206ea27e9981266
tree1662785053e5f5073885d06565b6a10a392a2c05
parent7cd8f381d0fe1736d00a568e1381956197e66699
xtf: Perform misc code cleanup

 * Define macro ALIGN to set alignment.  Header file asm_macros.h should not
   contain architecture specific code.  Replace hardcoded alignment value with
   a call to macro ALIGN.

 * Move declaration of shared_info into xtf/traps.h.  Declaration of
   shared_info structure should be placed in xtf/traps.h as it is a common
   declaration for all the possible architectures.

 * Do not protect including <arch/barrier.h>.  We should always include
   <arch/barrier.h> and rely on the compiler to throw an error. This would
   avoid increasing #if protection each time we would add a new architecture.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/include/arch/asm_macros.h
arch/x86/include/arch/traps.h
include/xtf/asm_macros.h
include/xtf/barrier.h
include/xtf/traps.h