This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vectors.s


On Mon, 2001-04-16 at 15:51, Rupesh S wrote:
> I din't feel that the code is linked for Position independency, 'coz the
> jump and bra instructions in the dissambled code seems to have 4 byte full
> address operands.
> 

IIRC on that hardware, the upper bits control cacheability of
the memory region.  0x0XXXXXXX can be cached, 0x8XXXXXXX cannot.

> ----- Original Message -----
> From: "Andrew Lunn" <andrew dot lunn at ascom dot ch>
> To: "Rupesh S" <rupeshs at myw dot ltindia dot com>
> Cc: <ecos-discuss at sources dot redhat dot com>
> Sent: Wednesday, April 16, 2003 1:56 AM
> Subject: Re: [ECOS] vectors.s
> 
> 
> > On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
> > > I looked in the dissambled code generated using sh-elf-objdump,
> >
> > The code will be position independent. It might looked to be linked to
> > run at 0x0, but since its position independent, it will run OK at the
> > flash high address 0x80000000.
> >
> >       Andrew
> >
> > > ----- Original Message -----
> > > From: "Andrew Lunn" <andrew dot lunn at ascom dot ch>
> > > To: "Rupesh S" <rupeshs at myw dot ltindia dot com>
> > > Cc: <ecos-discuss at sources dot redhat dot com>
> > > Sent: Wednesday, April 16, 2003 1:00 AM
> > > Subject: Re: [ECOS] vectors.s
> > >
> > >
> > > > On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> > > > > My architecture is sh3 processor ,7729.
> > > > > As you said, Flash is mapped at 0x0 & 0x80000000.
> > > > > But what I don't understand is that, when it jumps to the High
> memory,
> > > > > (0x8000000e in my case), shouldn't there  be some or the other pice
> of
> > > code
> > > > > attached there,
> > > > > But I'm not seeing any instruction placed at that address.
> > > >
> > > > How are you looking?
> > > >
> > > >     Andrew
> > >
> 
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
.--------------------------------------------------------.
|       Mind: Embedded Linux and eCos Development        |
|--------------------------------------------------------|
| Gary Thomas              email:  gary dot thomas at mind dot be   |
| Mind ( http://mind.be )  tel:    +1 (970) 229-1963     |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc       |
'--------------------------------------------------------'


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]