doubt in protected mode



Hi all,

I have doubt about the memory manager. When i compile any asm
program, it generates
the map file which will contain information about the code segment
,data segment. when i execute
the program, it will copy the code and data to some location in memory
.. Now iam jumping to protected mode .

1) if the base address for code and data segment is zero and paging is
disabled , which part of memory will the code and data will be copied

2) will the content of the data segment in the real mode, copied to the
data segment in the
protected or how to know whether the content of code and data segment
belongs to real or
protected mode,

3) which part of code segment and data segment will be copied in real
mode and
which part of code and data segment will be copied to protected
mode ? when i executed a
asm program

Please help me in this regards, since it is very much important, i
tried myself a lot to understand but i didnt find the solution

Thanks in advance.

Thanks and Regards,
Dharma

.



Relevant Pages

  • Re: Initial values of File scoped and Block level variables
    ... the loaderallocates data segment ... If T is a function type, any initialization ... >that informs the loader to allocate 1 element of sizeofmemory. ...
    (comp.lang.c)
  • Re: Questions about Minix
    ... I think I got to that conclusion that .text shared the same memory chunk ... segment to processes from the beginning, and a data segment that did not ... True, but this would limit your stack size to some predetermined value, ... you still have plenty of heap left. ...
    (comp.os.minix)
  • Re: Software advice
    ... the processor to switch it back from protected mode to real mode. ... registers with a 'segment selector', which indexed into a table of segment ... different memory models and the distinction between near and far pointers ...
    (rec.arts.sf.fandom)
  • Re: How linear address translate to physical address in kernel space?
    ... the logical address must be pass segment translation. ... In paging process, CR3 register take one important role, it include page ... So in linux kernel, if it ... user task memory address space. ...
    (Linux-Kernel)
  • Re: [SLE] spyware
    ... What I'm saying is, very simple ... ... in the gun control there's a saying ... as far as I know as the segment should be handled by a true memory ...
    (SuSE)