Hi all . Is there any way to determine the quantity of memory without a int call witin real mode ? Could I read the very informations from CMOS?
If yes, many problems can be solved pretty well....
quantity of physical memory without real mode interrupts
quantity of physical memory without real mode interrupts
Just Lazy Writing Anything...
- mathematician
- Member
- Posts: 437
- Joined: Fri Dec 15, 2006 5:26 pm
- Location: Church Stretton Uk
Re: quantity of physical memory without real mode interrupts
There isn't really any way to do it. The contents of CMOS memory are mostly of archaeological interest nowadays. The easiest thing would be to determine the amount of memory available before switching into protected mode, and then store the information until you need it.hendric wrote:Hi all . Is there any way to determine the quantity of memory without a int call witin real mode ? Could I read the very informations from CMOS?
If yes, many problems can be solved pretty well....
Hi,
For a start I would certainly suggest you read this wiki page.
AFAIK you need to use a BIOS int to determine the amount of RAM but if you are not rolling your own bootloader, you can easily get around this by getting GRUB to do the call for you. If you are using your own boot loader, using the BIOS calls is worth persuing - it's easier than it looks to start with
Cheers,
Adam
For a start I would certainly suggest you read this wiki page.
AFAIK you need to use a BIOS int to determine the amount of RAM but if you are not rolling your own bootloader, you can easily get around this by getting GRUB to do the call for you. If you are using your own boot loader, using the BIOS calls is worth persuing - it's easier than it looks to start with
Cheers,
Adam