Huyen Tue Dao
2005-03-30 07:51:40 UTC
From what I understand, the user memory is allocated page by page, so
it's size will be some page-size multiple. However, there isn't any
kind of page alignment of segments correct? So the start and end of
segments can be in different pages, or segments can be smaller than a
page theoretically and start at a non-page aligned address? Therefore,
as we're creating the executable image we basically have to determine
how the user memory is split up into segments, where the borders of
pages are, and then memcpy accordingly?
it's size will be some page-size multiple. However, there isn't any
kind of page alignment of segments correct? So the start and end of
segments can be in different pages, or segments can be smaller than a
page theoretically and start at a non-page aligned address? Therefore,
as we're creating the executable image we basically have to determine
how the user memory is split up into segments, where the borders of
pages are, and then memcpy accordingly?