]> git.neil.brown.name Git - history.git/commit
[PATCH] ia64: 2/2 fix in machvec.h
authorSuresh B. Siddha <suresh.b.siddha@intel.com>
Tue, 4 Mar 2003 06:55:41 +0000 (22:55 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Tue, 4 Mar 2003 06:55:41 +0000 (22:55 -0800)
commitaa02c546b468bb1c9b5f4538c9f8001dec5db67c
treea2686206a4746998ab1d8f3cb9c708ccfa416ed4
parent5e2ccf6d298f27e34e15d98b0df782a5b6608b0d
[PATCH] ia64: 2/2 fix in machvec.h

IA64 ABI specifies that globals > 8 bytes need to be aligned to 16 bytes.
gcc doesn't follow this convention. Current kernel code will fail to work with
a compiler which follows the ABI.

size of structure ia64_machine_vector is > 8 bytes and not multiple of 16 bytes.
When we have CONFIG_IA64_GENERIC, each machine specific vector from different
object files gets linked into a user defined section(forming array of
structures).

Now with a compiler conforming to ABI, there will be holes in this array
resulting in the code failure when it goes through this array of structures.

Following patch will make the size of the structure to be multiple of 16 bytes
making both ABI confirming/non-conforming compilers happy.
include/asm-ia64/machvec.h