diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 15:09:39 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 15:09:39 +0000 |
commit | 4e8586dfa35bf5114c0f620bdfcd2e0466e952a8 (patch) | |
tree | adb15d5096bd1b899433760ce705a01dd38d8315 /extras/mini-os/lib | |
parent | 2b68aee8293cf43f29dc5cf7ac1f23ff612c4a61 (diff) | |
download | xen-4e8586dfa35bf5114c0f620bdfcd2e0466e952a8.tar.gz xen-4e8586dfa35bf5114c0f620bdfcd2e0466e952a8.tar.bz2 xen-4e8586dfa35bf5114c0f620bdfcd2e0466e952a8.zip |
[MINIOS] More cleanups for the ia64 port.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Diffstat (limited to 'extras/mini-os/lib')
-rw-r--r-- | extras/mini-os/lib/math.c | 5 | ||||
-rw-r--r-- | extras/mini-os/lib/xmalloc.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/extras/mini-os/lib/math.c b/extras/mini-os/lib/math.c index 8e97be6d18..5f5ed55ec2 100644 --- a/extras/mini-os/lib/math.c +++ b/extras/mini-os/lib/math.c @@ -57,6 +57,10 @@ #include <types.h> + /* On ia64 these functions lead to crashes. These are replaced by + * assembler functions. */ +#if !defined(__ia64__) + /* * Depending on the desired operation, we view a `long long' (aka quad_t) in * one or more of the following formats. @@ -380,3 +384,4 @@ __umoddi3(u_quad_t a, u_quad_t b) return (r); } +#endif /* !defined(__ia64__) */ diff --git a/extras/mini-os/lib/xmalloc.c b/extras/mini-os/lib/xmalloc.c index 32864dede4..3246d57b32 100644 --- a/extras/mini-os/lib/xmalloc.c +++ b/extras/mini-os/lib/xmalloc.c @@ -48,6 +48,12 @@ struct xmalloc_hdr /* Total including this hdr. */ size_t size; struct list_head freelist; +#if defined(__ia64__) + // Needed for ia64 as long as the align parameter in _xmalloc() + // is not supported. + uint64_t pad; +#endif + } __cacheline_aligned; static void maybe_split(struct xmalloc_hdr *hdr, size_t size, size_t block) |