BIOS interrupts location in memory

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
Mrk
Posts: 3
Joined: Mon Oct 25, 2010 7:31 am

BIOS interrupts location in memory

Post by Mrk »

hello
Sorry for the ignorance, but I couldn't find the answer anywhere else.
How can I know the location of the BIOS interrupts in memory? I mean, for me not to load my kernel on it by mistake


(I can know where each interrupt starts from the vektor table, but I don't know where it ends)
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: BIOS interrupts location in memory

Post by bewing »

That's a very reasonable question. The entire functional part of the BIOS is stored in unmodifiable RAM, between 0xf0000 (maybe 0xe0000) and 0xfffff. This includes all the BIOS interrupt code. It is guaranteed not to be in any memory that you can access -- since you are limited to memory up to 0x9ffff (ignoring the IVT, BDA, and EBDA for the moment) and memory above 0x100000.

You may want to read this wiki article:
http://wiki.osdev.org/Memory_Map_%28x86%29
Mrk
Posts: 3
Joined: Mon Oct 25, 2010 7:31 am

Re: BIOS interrupts location in memory

Post by Mrk »

great, thanks! :D
Post Reply