
Dear Tomas Hlavacek,
In message CAEB7QLChVGARx3cpdE4tGQ01BeWoZr6ANHqnRJp02P6dZnNT5g@mail.gmail.com you wrote:
Can/should we use some existing mechanism? Or would it be considered a viable option to choose different beginning address for early heap, use it (in architecture-specific way) and keep the pointer to the beginning in GD. Then copy the early heap to memory before caches are flushed and in case of DM copy again data from early heap to new destinations that has been obtained through malloc() when it is initialized?
It is difficult (or actually impossible) to answer this, if you do not explain which concept you are talking about here, or why two copy operations would be needed, what "in case of DM" means (and which other cases exist), or how you intend to handle the problem of changing addresses (and thus pointers becoming incorrect) for each of such copy operations.
Best regards,
Wolfgang Denk