flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Paging and Specific Locations in Memory

Author
Thread Post new topic Reply to topic
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 29 Apr 2010, 03:21
There are locations in memory that have defined purposes, for example 0xb8000. After I enable paging, is it the physical location 0xb8000, or the virtual location 0xb8000 that gets displayed to the screen?
Post 29 Apr 2010, 03:21
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 29 Apr 2010, 03:27
The graphics controller only ever sees physical memory addresses. The paging MMU is buried deep inside the CPU and external devices can't see it.
Post 29 Apr 2010, 03:27
View user's profile Send private message Visit poster's website Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 29 Apr 2010, 03:59
Thanks revolution. I didn't think of descriptor tables in my original post, are their positions affected automatically after I enable paging, or do I have to reload their locations?

For example, I have GDTR(the actual register, not the common label name) pointed at 0x100, but I have 0x100 mapped as 0x1000, does GDTR now point to 0x1000, or must I reload it with the location mapped to 0x100? Are tables affected at all by paging?

All the locations used are just theoretical.
Post 29 Apr 2010, 03:59
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 29 Apr 2010, 04:08
Tyler: Did you download the Intel/AMD documents I suggested? Read the Intel manual volume 3A, chapter 3: "PROTECTED-MODE MEMORY MANAGEMENT". You can find all the gory details of exactly how it works. With pictures and diagrams and things also.
Post 29 Apr 2010, 04:08
View user's profile Send private message Visit poster's website Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 29 Apr 2010, 04:20
It wasn't working when I checked last night, it is today though.

Last night, I clicked on the support page link, it stalled until my connection timed out multiple times, but it's good now.
Post 29 Apr 2010, 04:20
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4353
Location: Now
edfed 29 Apr 2010, 07:21
GDTR point to linear memory.
TR points to descriptor in GDT as a segment registers (because it is a segment).
etc...

you have the chance to speak and read english, down the manuals and read them.
Post 29 Apr 2010, 07:21
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 29 Apr 2010, 10:47
Paging-wise, virtual B8000 remainst mapped to physical B8000. But the northbridge sends accesses to it to Video RAM, instead of regular RAM. This is set by VGA and chipset register.
Post 29 Apr 2010, 10:47
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.