public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] location of vsr table & virtual vector table in memory
@ 2005-05-18  5:42 Will Wagner
  0 siblings, 0 replies; only message in thread
From: Will Wagner @ 2005-05-18  5:42 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I'm trying to write a memory test app for an 860 board that runs from 
flash with its stack and data in the dual port ram.

This means that there is very limited RAM, 4K.

I want to create a ROM application with the hardware exception table 
remaining in flash.

The vsr and virtual vector table want to reside at the beginning of RAM.

I have managed to write suitable memory config files and the map file of 
the linked application looks fine except for the linker placing the vsr 
and virtual vector table at the wrong address.

The symbols hal_vsr_table and hal_virtual_vector_table are set in the 
file powerpc.ld as follows:

// Define VSR and virtual tables to reside at fixed addresses.
#include CYGBLD_HAL_TARGET_H
hal_vsr_table = CYGHWR_HAL_VSR_TABLE;
hal_virtual_vector_table = CYGHWR_HAL_VIRTUAL_VECTOR_TABLE;

I need CYGHWR_HAL_VSR_TABLE and CYGHWR_HAL_VIRTUAL_VECTOR_TABLE to point 
to the reserved sections in RAM from the memory config.

They are set in hal_powerpc_mpc8xx.cdl as follows:

# Note: This should be sub-variant specific to reduce memory use.
define_proc {
     puts $cdl_header "#define CYGHWR_HAL_VSR_TABLE 
(CYGHWR_HAL_POWERPC_VECTOR_BASE + 0x3000)"
     puts $cdl_header "#define CYGHWR_HAL_VIRTUAL_VECTOR_TABLE 
(CYGHWR_HAL_VSR_TABLE + 0x200)"
}

It appears they are hard coded to follow after the hardware exception 
table, but in my case this will remain in flash. Is there no way of 
changing this behaviour?

Currently the only way of working round my problem appears to be to 
change that cdl file. is that correct?

Many thanks,

Will Wagner


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-17 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-18  5:42 [ECOS] location of vsr table & virtual vector table in memory Will Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).