Re: doubt in protected mode



Hi all ,
Thanks a lot. I think i didnt explain the doubt clearly. Sorry for
that.
I have a map file and have told that base of text at 1MB, data at 2MB ,
bss at 3MB.
Now iam create a GDT, telling the segreg.base for code is 0 and limit
is 1MB, segreg.base for data segment is 0 and limit is 1MB. now if i
jump to some offset which is 32bit say(0x00c89010) , what will be
physical address and linear address.?
will be physical address and linear address be same as 0x00c89010 or
will it add address of text specified in the linker file and the 32
bit offset to get the physical address.
(.text in the linker file + segreg.base + offset)

Thank a lot in advance.


Regards,
Dharma

.



Relevant Pages

  • Re: Kind of new: function implementation questions, MASM
    ... yet ds is a 16 bit register and I want to make sure ... >another register that is the offset for the selector in the segment ... The assembler also includes a table telling the linker ... because the point of using the data segment was that the data ...
    (comp.lang.asm.x86)
  • Re: Kind of new: function implementation questions, MASM
    ... >>I don't yet understand the stack or the data segment. ... >>indicate it's a register definition. ... >>Then I use ds as the offset pointer to the data segment? ...
    (comp.lang.asm.x86)
  • Re: Gnu Assembler - Real Mode - accessing variable from code
    ... is to obtain the relative offset within the data segment ... symbols" or even "offset within section". ... to do this (the linker manual documents it as a way to initialize RAM ... regions overlap. ...
    (comp.lang.asm.x86)
  • Re: iA32 Paging
    ... > Page Dir Page Frame Offset ... > My problem is with the page directory and page frame data entries. ... entry has anything to do with the physical address. ... The 10 bit Page Table Offset from the linear ...
    (comp.lang.asm.x86)
  • Re: iA32 Paging
    ... >> Page Dir Page Frame Offset ... >> My problem is with the page directory and page frame data entries. ... > entry has anything to do with the physical address. ... The 10 bit Page Table Offset from the linear ...
    (comp.lang.asm.x86)