Query
"Anand Gore" <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I posted this question already on one of the L4 mailing list, I am not
very sure which is right place for this question. So I am posting it
here to, sorry for the spam.
I wanted to dynamically load a binary to a specific location e.g.
0x2000000 in my task/thread. Here is the code I have -
mnsigned int base_address=0x200000;
mm_s memsection_create_fixed(section_size, base_address); if(mm_s != 0)
{
memcpy(base_address, binary_buffer, sizeof(binary_buffer));
func=(func_t)base_address;
func();
}
The binary is built and linked to a fixed address 0x2000000, such that
there will be an initialization function at 0x2000000.
But I read in the document that the memsection_create_fixed is going to
go away sometime down the line.
I am wondering if there is going to be a replacement function for that
or there is a better way to do this.
Thank you.
Anand
(858)-812-0637
Novatel Wireless, Inc.
This email and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return email, delete this email and destroy any
copies. Any dissemination or use of this information by a person other
than the intended recipient is unauthorized and may be illegal. Any
opinions expressed in this email are those of the individual writer
alone and not necessarily those of Novatel Wireless, Inc. or its
affiliates. To the extent this email purports to waive, amend or
supplement any term or condition of an agreement, contract or purchase
order (including any exhibits or attachments thereto), such purported
waiver, amendment or supplementation shall be of no force or effect
whatsoever, anything to the contrary notwithstanding.