[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-ia64-devel] Mini-OS registers and libgcc


  • To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 13 Feb 2008 11:53:59 +0100
  • Delivery-date: Wed, 13 Feb 2008 03:10:25 -0800
  • Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:Received:Received: From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition:Message-Id; b=jNa8WOXmPTG2704uumobWvJ7zDBUrXDuzGCdkvGBnC71WwixjloOb67Y eAycinNE1DuSNG05fQbR753Dcd1edERytZznT7jMXp5hn6ynhKanVvhQR X6+AzJ7RU4t8Jfk;
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>

Hi Samuel,

Am Dienstag, 12. Februar 2008 schrieb Samuel Thibault:
> Hello,
>
> Is there a reason for using -mfixed-range=f2-f5,f12-f15,f32-f127
> when compiling Mini-OS?  Is it really needed since it doesn't
> have a user-land? (though I guess some support would be needed in
> switch_context for instance)

To handle this in a clean way the trap_frame has to be expanded and some fp 
registers have to stored/restored in trap handling.

>
> Then, are there other reasons for using __*div/di*.S instead of just
> linking with libgcc?

It's possible to use libgcc.a but the flag -mconstant-gp has to be removed 
from the mini-os makefiles and a clean way to add libgcc.a is needed.

>
> Samuel

By the way current mini-os crashed with Unaligned Reference. 
A small change is needed:
 static void maybe_split(struct xmalloc_hdr *hdr, size_t size, size_t block)
 {
     struct xmalloc_hdr *extra;
-    size_t leftover = block - size;
+    size_t leftover;
+#if defined(__ia64__)
+    size = (size +7 ) & ~7;  /* alignment needed on 8 byte boundary. */
+#endif
+    leftover = block - size;

Dietmar



_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.