Paolo
2011-07-20 14:45:09 UTC
So whenever I start a program the first address that occurs the page
fault is the stack address. The prof told me that I should zero-filled
all the pages in the stack so I should use the same method in
load_segment to zero-fill one page at a time. But since the info from
the elf segments cant be used (probably) ...
1. Whats the offset of it? zero?
2. How to get the memory size of the stack?
3. Do i allocate and load 1 page at a time or all pages in the stack?
4. Do I update the page fault zero every time it loads the stack pages?
fault is the stack address. The prof told me that I should zero-filled
all the pages in the stack so I should use the same method in
load_segment to zero-fill one page at a time. But since the info from
the elf segments cant be used (probably) ...
1. Whats the offset of it? zero?
2. How to get the memory size of the stack?
3. Do i allocate and load 1 page at a time or all pages in the stack?
4. Do I update the page fault zero every time it loads the stack pages?