On Thu, 3 Dec 2009, David Brownell wrote:

> On Thursday 03 December 2009, Nicolas Pitre wrote:
> > Semihosting enables code running on an ARM target to use the I/O
> > facilities on the host computer. The target application must be linked
> > against a library that forwards operation requests by using the SVC
> > instruction that is trapped at the SWI vector by the debugger. The "hosted"
> 
> Nit:  it's now called the "Supervisor Call" vector; not "SWI vector".  :)

Bah.  I originally had "the SWI instruction" there.

> > library version provided with CodeSourcery's Sourcery G++ Lite for ARM EABI
> > is one example.
> 
> I have arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 ...
> where is that library?  Or do I need a different EABI package?

Get arm-2009q1-161-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 instead.  The 
set of included libraries are completely different.  Both may coexist.

> > This is currently available for ARM9 processors, but any ARM variant should
> > be able to support this with little additional work.
> 
> Yeah, I seem to be poking at those parts of ARM11 and Cortex-A8...
> 
> If possible, I'd like to see 0.4.0 ship with this expected to work
> on all ARMs except maybe Cortex-M chips.  (They aren't yet able
> to plug into the "arm <subcommand> ..." infrastructure.)

That should be trivial, especially with v2 of my patch.  All that is 
needed is to set up a trap on the SVC vector.  Either with a vector trap 
or a breakpoint.  This is about the only thing that is ARM variant 
dependent.


Nicolas
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to