diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-01-23 09:36:54 +0000 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-01-23 09:36:54 +0000 |
commit | 1c4ee35553ffd7c7dc0bd246bc340b09ec382b17 (patch) | |
tree | 9d233d32a8468fbc98cb1f56ad09c61af541345e /xen | |
parent | a2bef2635bb7e4295692ad4c87e199be84d11e56 (diff) | |
download | xen-1c4ee35553ffd7c7dc0bd246bc340b09ec382b17.tar.gz xen-1c4ee35553ffd7c7dc0bd246bc340b09ec382b17.tar.bz2 xen-1c4ee35553ffd7c7dc0bd246bc340b09ec382b17.zip |
xenoprof: Make the escape code consistent across 32 and 64-bit xen
At the moment, the xenoprof escape code is defined as "~0UL".
Unfortunately, this expands to 0xffffffff on 32-bit systems
and 0xffffffffffffffff on 64-bit systems; with the result that
while 32-on-32 and 64-in-64 work fine, 32-on-64 (also known as
"compat mode") is broken.
This patch makes the definition consistent across architectures.
In so doing, it will break old-32-bit-on-new-Xen, and vice versa;
but this was seen as an acceptable thing to do.
Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen')
-rw-r--r-- | xen/include/public/xenoprof.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/public/xenoprof.h b/xen/include/public/xenoprof.h index 346d6c514c..a0c6987c77 100644 --- a/xen/include/public/xenoprof.h +++ b/xen/include/public/xenoprof.h @@ -68,7 +68,7 @@ struct event_log { }; /* PC value that indicates a special code */ -#define XENOPROF_ESCAPE_CODE ~0UL +#define XENOPROF_ESCAPE_CODE (~0ULL) /* Transient events for the xenoprof->oprofile cpu buf */ #define XENOPROF_TRACE_BEGIN 1 |