[okl4-developer] Fast address-space switching on GUMSTIX?

xi yang hiyangxi at gmail.com
Tue May 27 00:36:42 EST 2008


On Mon, May 26, 2008 at 11:06 PM, Geoffrey Lee <glee at ok-labs.com> wrote:
> On Mon, May 26, 2008 at 09:27:17PM +1000, xi yang wrote:
>
> Hi Xi
>
>> > since this will cause domain fault.
>>
>> >
>> > 2) Vtimer and other server, they will create a memsection and map it
>> > to the hardware address, it seems that iguana will map this memsection
>> > to 0x800X,XXXX, which means after address space switching, there will
>> > be a domain fault when you access this area.
>> >
>> > How to configure iguana to eliminate the overlap mapping? I am not
>> > familiar with the internal of iguana.
>>
>> I grep the code, domain fault is caused by accessing stack and heap,
>> which are mapped to 0x800XXX by iguana .
>> So, I have two questions
>> 1)How to specify the virtual address of stack and heap in SConscripts
>
> The location of the stack and the heap are chosen by the build system
> when the boot image is built.  In 2.1, the allocator for the stack
> and heap locations do not take ARM domains into account, which leads
> to the issue you are seeing.
>
> This has since been fixed in the latest version.
The lastest version? you mean 2.1.
I am using 1.5.2. I modify the build.py, now it works for me.
>
>> 2)Are there some constrains of memsection_create_fixed() system call
>> of iguana. I invoking this system call and always return NULL.
>
> Which platform are you running, and which address do you want to ask
> Iguana to return to you?
Gumstix, I want to get 6Mbytes map to 0xa5100000, it seems return NULL.
Regards.
>
>        -gl
>
>> Regards!
>> >>
>> >> Regards
>> >> Abi
>> >>
>> >
>>
>> _______________________________________________
>> Developer mailing list
>> Developer at okl4.org
>> https://lists.okl4.org/mailman/listinfo/developer
>>
>
> --
>
>



More information about the Developer mailing list