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: MIPS32 gdb vectors question


See below for replies....
----- Original Message -----
From: "Jonathan Larmour" <jifl at eCosCentric dot com>
To: "Tim Michals" <t dot michals at attbi dot com>
Cc: <ecos-discuss at sources dot redhat dot com>
Sent: Thursday, February 27, 2003 12:24 AM
Subject: Re: [ECOS] MIPS32 gdb vectors question


> Tim Michals wrote:
>  > Ok, I have narrowed down the problem
>  > 1) Using a ROMRAM configuration for MIPS32 and had to change
>  > to
>  > hal_vsr_table = 0x80000300;
>  > hal_virtual_vector_table = 0x80000400;
>  > from:
>  > hal_vsr_table = 0x80000200;
>  > hal_virtual_vector_table = 0x80000300;
>  > A slight collision with the debug vector.
>  >
>  > 2) had a memory configuration issue pushing the _hal_registers past
memory.
>  > (Fixed(
>
> Ah, both things specific to your platform then.
>
This is for a ROMRAM configuration, If the Atlas or any other MIPS32
platform is using mips_mips32.ld in hal/packages/mips32/src, would have this
problem.  This is due to the copy of ROM into RAM and setting the exception
vectors to RAM.  At this time MIPS32 does not support ROMRAM configuration.

This is for a 4kc MIPS port.  I've most of the IDT fixes done and tested for
79RC32334, but I'm trying to get another project complete.
>
>  > 3) GDB issue using 3.2
>  > Ignoring packet error, continuing...
>  > Remote packet too long:
> [snip]
>  > The serial baudrate is 38400, it gets past several packets
(changeThread,
>  > Query, etc), then GDB requests for registers and then the HAL dumps
this
>  > message to gdb and gdb does not like it. Have you seen this?
sugguestions?
>
> Yes. GDB is expecting 32-bit registers and the stub for mips32 gives it
> 64-bit. Look at the grotty ifdefs in
hal/mips/arch/current/include/mips-stub.h
>
> Nick was doing a patch for this I thought, so I've prodded him a little
:-).
If not, I can fix this and test on a MIPS32 platform.
>
> Jifl
> --
> eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
> --[ "You can complain because roses have thorns, or you ]--
> --[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine
>
>



-- 
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]