First few memory pages of OS?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
junkoi
Member
Member
Posts: 63
Joined: Wed Jan 23, 2008 8:55 pm

First few memory pages of OS?

Post by junkoi »

Hi,

I am wondering what is usually in the first few pages of one OS, after it already switched to protected mode? Is it still the real-mode interrupt table from the BIOS, and BIOS code???

Lets not consider a special OS, but the usual OS, such as BSD, Linux or Windows. Any idea?

Thanks.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: First few memory pages of OS?

Post by AJ »

Hi,

It depends. The first page of physical memory will contain an IVT, but if you know you will not need any real mode code, you can use it as a normal page, if you like. This may cause problems if your page frame allocator uses NULL to indicate a problem, though!

The BDA and EBDA will be in the same place that they were before in physical memory too. If you are using paging, this need not be apparent to any running apps.

Cheers,
Adam
Post Reply