bios

How do I reserve low memory (pre OS)?

Background: I need to reserve an amount of memory below 0xA0000 prior to my operating system starts. To do this I change the 0040:0013 (or 0x413) word which is the amount of low memory available in KiB. However, Windows and other operating systems use E820h/INT15h to query the memory layout and some BIOS:es doesn't reflect 0x413 changes...

Get the BIOS time in LINGO

Can someone tell me how to get the BIOS time in Lingo? ...

How to perform low-level IO with a USB flash drive under the BIOS (compared to a floppy)?

I have recently been studying some bootstrap code which was intended for use with a floppy drive. My goal is to modify the program so that it uses my USB flash drive. Now I see how the INT 13H function has been used with the floppy device, but I guess my question is, how will communicating with the USB drive differ? For example, here is...

Log from BIOS

I want to be able to pull in the error log from BIOS across a network. Looking at Win32_BIOS in MSDN I did not see anything defining the error log. Would love to do this in C# with WMI, but am open to suggestions. Is it possible? Edit: Win32_BIOS does not have a property (don't know if that is the right term) that contains the BIOS erro...

How to Enable Wake on LAN programmatically

Is there a way to programmatically reach into the BIOS and turn on the Wake on LAN capability for those machines that support it? Ideally, the solution would be cross-BIOS, but hitting each of the major vendors with separate solutions would be okay, too. ...

Proper way to access registers in a PCI configuration space

When you need to access registers in the PCI configuration space, do you simply need to used built-in BIOS functions to read/write DWORDs into the configuration space? For example, if I am trying to use an IDE controller that is on B0:D31:F1 do I proceed to read/write the configuration register using that BDF as the parameters to the BI...

How to enable C1E on AMD Athlon X2 QL?

I have laptop with probably broken BIOS. C1E is not enabled and with Linux I get poor batery life (1-1,5h). C1E is not enabled because content of MSRC001_0055 is 0. I could rewrite it, but I don't know IoAddres value. So request for anyone with working C1E on AMD laptop, could you provide your content of MSRC001_0055? http://www.amd.com...

Power On Self Test

Hi, Any good place to learn about POST and how to design and code one? I am a C++ programmer and quite baffeled with the term. Thanks ...

Is it possible to shutdown linux kernel and resume in Real Mode?

Let's say I'd like to start a small linux distro before my ordinary operating system start. BIOS load MBR and execute MBR. MBR locates the active partition which is my linux partition. Linux start and I perform what I need to do. Linux shut down and I switch to Real Mode again. The original partition boot sector is loaded and my ordina...

How do I get the BIOS manufacturer and model in C++ without using WMI?

We are running windows xp pro service pack 3 both 32 bit and 64 bit. We are using WMI to get the BIOS manufacturer and model, but we would really prefer an approach that used either the Win32 API or assembly language or something besides WMI or COM. Code samples are most welcome. ...

What information does BIOS load into RAM?

I know that, on booting, BIOS loads the first sector (512 bytes) of a pre-defined device drive on memory 0x7c00 and then jump to that address. So, memory from 0x7c00 to 0x7dff is occupied. Is there any other section of RAM that is occupied? If I'm programming an Operating System, could I use all the RAM except 0x7c00 to ox7dff for my o...

Why do boot loaders relocate in memory?

I am writing a boot loader, and I've got most of the details down, but I am not sure why some boot loaders relocate themselves in memory before they begin the bulk of their execution. Can anyone explain this? An example of this behavior is the original v0.01 Linux kernel bootloader which has the following comment in it: boot.s is load...

How to time-limit a trial install with BIOS date & time with C#?

I want to create trial version for our product, allowing a user to use it for 5 days. I am planning to use the system BIOS time to do this. Is this possible, what other methods are available to me? ...

configure a PC to default on state

I am writing device software for a PC and for that, I want the PC to be usable as a device. When power is supplied, it should switch on without requiring to press the power button. There are power options in BIOS settings but it starts the PC only when its uncleanly shutdown. The other concern I have is how would unclean shutdown affect ...

Dealing with newline / CR in assembly BIOS calls

I'm learning assembly and I'm trying to do a simple read from keyboard / print to keyboard using BIOS calls. So far I have the following: loop: xor ah, ah int 0x16 ; wait for a charater mov ah, 0x0e int 0x10 ; write character jmp loop This works fine until someone presses the enter key - it seems that...

Editing the bios to allow for faster keyboard reading

We have a linux app that depends on the speed with which the user can press certain keys. This is a human performance test. I'm curious to know if anyone has any experience in modifying the bios to allow it to scan the key matrix faster? With Linux I can modify the keyboard driver to query the bios faster but unless the bios is modifi...

C# Getting/Setting BIOS Settings?

I work with a Dell XPS M1710. The laptop has lights in the lid, the side speakers, and the front speakers (3 sets of lights that can be individually adjusted) and a light under the mousepad. In the BIOS I can change the color of these lights, at least, each group. Also, I can turn a light on/off under the mousepad, I can't change it's co...

Common way to get BIOS information via C

After reading some stuff it seems I can map the SMBIOS memory and parse it. I have no idea on how to go about this. I can't use any managed code as I would like this to be compilable under any OS. Does anyone have any code examples how to go about this? ...

How to read out the boot order ?

Is there any way to get the boot order programmatically, on Windows ? ...

IRQ Numbering Conflict

From: http://software.intel.com/en-us/articles/introduction-to-pc-architecture/ Exception number 10h corresponds to a "Floating Point Error" but software interrupt 10h also corresponds to "Video support" BIOS interrupts (both in real mode). What am I missing? ...