no name

Extending XGATE RAM section?

Discussion created by no name on Feb 22, 2006
Latest reply on Mar 5, 2006 by CompilerGuru
Hello again,

I'm using Codewarrior 4.1 to write a combined S12X/XGATE application.
The .prm file defines a single XGATE RAM section...

SEGMENTS
....
RAM_XGATE = READ_WRITE 0xFB1000 TO 0xFB1FFF ALIGN 2
....
PLACEMENT
....
XGATE_CODE INTO RAM_XGATE;
....

...where the XGATE code is copied to for execution.
I want to increase this section by doing the following:

SEGMENTS
....
RAM_XGATE = READ_WRITE 0xFB1000 TO 0xFB1FFF ALIGN 2;
RAM_XGATE2 = READ_WRITE 0xFC1000 TO 0xFC1FFF ALIGN 2;
....
PLACEMENT
....
XGATE_CODE INTO RAM_XGATE, RAM_XGATE2;
....

Does this work?
In case it works, What happens when a fuction calls a function
in the other page? Does compiler/linker handle this correctly?

Thanks in advance
- pittbull

Outcomes