All of lore.kernel.org
 help / color / mirror / Atom feed
* ia64 question ...
@ 2006-11-08 17:05 Gerd Hoffmann
  2006-11-08 17:20 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2006-11-08 17:05 UTC (permalink / raw)
  To: Xen devel list


  Hi,

quick ia64 abi question:

struct vcpu_guest_context {
    unsigned long flags;       /* VGCF_* flags */
    struct cpu_user_regs user_regs;
    [ ... ]
};

offsetof(struct vcpu_guest_context,user_regs)) gives me 16.  I've
expected 8.  Does ia64 align structs on 16 byte borders?  Or is there
some other reason?

Oh, and btw: any idea on the build error below?  I suspect something is
wrong with my cross compiler.  It managed to build the xen kernel
though, libxc builds ok too, so it probably is some little detail ...

ia64-linux-gcc  -DPIC -O2 -fomit-frame-pointer -DNDEBUG -Wall
-Wstrict-prototypes -Wdeclaration-after-statement  -D__XEN_TOOLS__ -Wall
-g -Werror -Wp,-MD,.xs_lib.opic.d  -I../../tools/libxc -I. -fPIC -c -o
xs_lib.opic xs_lib.c
xs_lib.c: In function ‘xs_daemon_path’:
xs_lib.c:43: error: ‘PATH_MAX’ undeclared (first use in this function)
xs_lib.c:43: error: (Each undeclared identifier is reported only once
xs_lib.c:43: error: for each function it appears in.)
[ ... more similar errors follow ... ]

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>
http://www.suse.de/~kraxel/julika-dora.jpeg

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ia64 question ...
  2006-11-08 17:05 ia64 question Gerd Hoffmann
@ 2006-11-08 17:20 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2006-11-08 17:20 UTC (permalink / raw)
  To: Gerd Hoffmann, Xen devel list




On 8/11/06 17:05, "Gerd Hoffmann" <kraxel@suse.de> wrote:

> offsetof(struct vcpu_guest_context,user_regs)) gives me 16.  I've
> expected 8.  Does ia64 align structs on 16 byte borders?  Or is there
> some other reason?

The cpu_user_regs contains fields that require 16-byte alignment (the
pt_fpreg structs) and this forces 16-byte alignment for the structure as a
whole.

 -- Keir

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-08 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 17:05 ia64 question Gerd Hoffmann
2006-11-08 17:20 ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.