public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephane Eranian <eranian@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Simulator bootloader fails with gcc 4
Date: Fri, 19 Aug 2005 23:43:15 +0000	[thread overview]
Message-ID: <20050819234315.GE6916@frankl.hpl.hp.com> (raw)
In-Reply-To: <20050720053139.GC13188@cse.unsw.EDU.AU>

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

Peter,

> 
>     
>     .bss
>     .align 16
> stack_mem:
>     .skip 16834
> 
> GLOBAL_ENTRY(_start)
> 	.prologue
> 	.save rp, r0
> 	.body
> 	movl gp = __gp
> 	movl sp = stack_mem
> 	bsw.1
> 	br.call.sptk.many rp=start_bootloader
> END(_start)
> 
> Doesn't the stack grow downwards on IA64? Shouldn't that be something
> like:

The memory stack grows down, the RBS grows up.

> 
> 	.bss
> 	.align 16
> rbs_mem:
> 	skip 18384-16
> stack_mem:
> 	skip 16
> 
> ????
> 
Ok, this change seems to work for both gcc-4.0 and gcc-3.3.5. So what this is saying
is that we got lucky with the older compilers that the variables were somehow laid out
slightly differently on the stack.

> I can't run ski at present to check it (it segfaults immediately)
> 
Well, that will be the next thing I need to check. It dies on both IA64 and I386?

The attached patch fixes the bootloader problem for me.

-- 

-Stephane

[-- Attachment #2: bootloader-050819.diff --]
[-- Type: text/plain, Size: 307 bytes --]

--- arch/ia64/hp/sim/boot/boot_head.S.orig      2005-08-19 16:40:20.000000000 -0700
+++ arch/ia64/hp/sim/boot/boot_head.S   2005-08-19 16:40:25.000000000 -0700
@@ -7,8 +7,10 @@

        .bss
        .align 16
+rbs_mem:
+       .skip 18384-16
 stack_mem:
-       .skip 16834
+       .skip 16

        .text


  parent reply	other threads:[~2005-08-19 23:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-20  5:31 Simulator bootloader fails with gcc 4 Ian Wienand
2005-07-20 22:34 ` James E Wilson
2005-07-22  4:58 ` Ian Wienand
2005-07-22  6:00 ` david mosberger
2005-08-15  1:49 ` Ian Wienand
2005-08-16 22:46 ` Luck, Tony
2005-08-18  0:53 ` Ian Wienand
2005-08-18 13:25 ` Stephane Eranian
2005-08-18 18:57 ` Luck, Tony
2005-08-18 19:07 ` Stephane Eranian
2005-08-18 23:14 ` Peter Chubb
2005-08-18 23:41 ` Stephane Eranian
2005-08-18 23:58 ` Peter Chubb
2005-08-19 11:33 ` Stephane Eranian
2005-08-19 23:13 ` Peter Chubb
2005-08-19 23:43 ` Stephane Eranian [this message]
2005-08-19 23:55 ` Peter Chubb
2005-08-22 13:00 ` Gerald Pfeifer
2005-08-22 22:16 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050819234315.GE6916@frankl.hpl.hp.com \
    --to=eranian@hpl.hp.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox