[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table
On 2016/8/24 22:13, Roger Pau Monné wrote: > On Wed, Aug 24, 2016 at 01:56:04PM +0100, Wei Liu wrote: >> On Tue, Aug 16, 2016 at 06:25:04PM +0800, Shannon Zhao wrote: >>> From: Shannon Zhao <shannon.zhao@xxxxxxxxxx> >>> >>> Construct GTDT table with the interrupt information of timers. >>> >>> Signed-off-by: Shannon Zhao <shannon.zhao@xxxxxxxxxx> >>> --- >>> tools/libxl/libxl_arm_acpi.c | 29 +++++++++++++++++++++++++++++ >>> 1 file changed, 29 insertions(+) >>> >>> diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c >>> index 8cd1d9b..28fb6fe 100644 >>> --- a/tools/libxl/libxl_arm_acpi.c >>> +++ b/tools/libxl/libxl_arm_acpi.c >>> @@ -24,10 +24,18 @@ typedef uint8_t u8; >>> typedef uint16_t u16; >>> typedef uint32_t u32; >>> typedef uint64_t u64; >>> +typedef int64_t s64; >>> >>> #include <acpi/acconfig.h> >>> #include <acpi/actbl.h> >>> >>> +#include <asm-generic/bitsperlong.h> >> >> Hmm... This is likely to be Linux-centric. But I'm not sure if FreeBSD >> or other BSDes have plan for Xen on ARM support. > > I would certainly love to see that happen, but I don't see myself working on > that in the near future. In any case, this is a Linux-specific header, and > should be included in libxl_osdeps.h. I would recommend that you use > something like: > > #ifndef BITS_PER_LONG > #ifdef _LP64 > #define BITS_PER_LONG 64 > #else > #define BITS_PER_LONG 32 > #endif > #endif > > So that it works on other systems also (or maybe you don't even need to > include bitsperlong.h at all). > OK, will fix this. Thanks, -- Shannon _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |