From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: ia64 question ... Date: Wed, 08 Nov 2006 18:05:18 +0100 Message-ID: <45520E4E.4090700@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen devel list List-Id: xen-devel@lists.xenproject.org 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 =E2=80=98xs_daemon_path=E2=80=99: xs_lib.c:43: error: =E2=80=98PATH_MAX=E2=80=99 undeclared (first use in t= his 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 --=20 Gerd Hoffmann http://www.suse.de/~kraxel/julika-dora.jpeg