Questions tagged [bios]

The BIOS software is built into the PC, and is the first code run by a PC when powered on ('boot firmware'). The primary function of the BIOS is to load and start an operating system.

The Basic Input/Output System (BIOS), also known as the system BIOS or ROM BIOS ( /ˈbaɪ.oʊs/), is a de facto standard defining a firmware interface.

The BIOS software is built into the PC, and is the first code run by a PC when powered on ('boot firmware'). When the PC starts up, the first job for the BIOS is the power-on self-test, which initializes and identifies system devices such as the CPU, RAM, video display card, keyboard and mouse, hard disk drive, optical disc drive and other hardware. The BIOS then locates boot loader software held on a peripheral device (designated as a 'boot device'), such as a hard disk or a CD/DVD, and loads and executes that software, giving it control of the PC.[2] This process is known as booting, or booting up, which is short for bootstrapping. BIOS software is stored on a non-volatile ROM chip on the motherboard. It is specifically designed to work with each particular model of computer, interfacing with various devices that make up the complementary chipset of the system. In modern computer systems, the BIOS chip's contents can be rewritten without removing it from the motherboard, allowing BIOS software to be upgraded in place.

A BIOS has a user interface (UI), typically a menu system accessed by pressing a certain key on the keyboard when the PC starts. In the BIOS UI, a user can:

  • configure hardware
  • set the system clock
  • enable or disable system components
  • select which devices are eligible to be a potential boot device
  • set various password prompts, such as a password for securing access to the BIOS user interface functions itself and preventing malicious users from booting the system from unauthorized peripheral devices.

http://en.wikipedia.org/wiki/BIOS

916 questions
14
votes
3 answers

Why can't I call BIOS interrupts from protected mode?

Right. I've spent over three hours today trying to understand why you can't call a bios ISR when in protected mode. I get that once you set and IDT it wont necessarily be in the usual address for the IVT plus segments dont have a fixed size in…
Max
  • 155
  • 1
  • 4
14
votes
2 answers

Do normal x86 or AMD PCs run startup/BIOS code directly from ROM, or do they copy it first to RAM?

I understand modern computers have modified Harvard architectures. Can the fact that they can read instructions from somewhere other than where they hold data allow them to fetch instructions directly from ROM chips? Do they load the BIOS to RAM…
salvador p
  • 2,905
  • 5
  • 26
  • 26
14
votes
2 answers

Custom bootloader booted via USB drive produces incorrect output on some computers

I am fairly new to assembly, but I'm trying to dive into the world of low level computing. I'm trying to learn how to write assembly code that would run as bootloader code; so independent of any other OS like Linux or Windows. After reading this…
Austin Fay
  • 500
  • 3
  • 16
13
votes
4 answers

APIs for querying and setting bios properties

Let's say I would like to change a setting in the BIOS of my computer in Linux (let's say Ubuntu 11 if it matters.) What types of APIs exist to allow you query and manipulate BIOS setting? Further, what are good resources for doing this type of…
Karthik Ramachandran
  • 11,925
  • 10
  • 45
  • 53
13
votes
3 answers

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…
Elabra Sanchez
12
votes
2 answers

Page number in BIOS interrupts

I'm building a small bootloader for x86 as a project. For the moment I'm writing several functions to handle the screen, since it's a bit tedious. Most BIOS interrupt functions involve a page number argument, and I can't tell what this is…
Guido
  • 2,571
  • 25
  • 37
12
votes
2 answers

Hardware clock signals implementation in Linux Kernel

I am looking at some pointers for understanding how the Linux kernel implements the setting up of various hardware clocks. This basically relates to working with setting up the various clocks that hardware features like the LCD, UART etc will use.…
The Stig
  • 581
  • 2
  • 5
  • 15
12
votes
1 answer

IOMMU initialization without BIOS support

NOTE: if you have an AMD A55 chipset on a motherboard that support IOMMU, please send me a copy of your /sys/firmware/acpi/tables/DMAR (or whatever the name is that describes IOMMU). There is no risk of any sort for you. Thanks! Most motherboard…
Eric
  • 1,138
  • 11
  • 24
12
votes
1 answer

Who loads the BIOS and the memory map during boot-up

For the BIOS, Wikipedia states: The address of the BIOS's memory is located such that it will be executed when the computer is first started up. A jump instruction then directs the processor to start executing code in the BIOS. I know that BIOS…
Cygnus
  • 3,222
  • 9
  • 35
  • 65
12
votes
3 answers

I don't understand how to use Interrupt 21, AH=0ah

My information is coming from here. The assignment asks for a program that reads in no more than 20 characters, converts those characters to upper case, and then prints the input as capitals. I have no idea how to access the input from…
user1707505
12
votes
0 answers

What is BIOS in Android

In PC machines, we have BIOS to identify hardware like audio, CPU, HDD, etc. but in Android devices, what is the replacement of BIOS, as we just have Kernel, ROM and ClockWorkMod. So the BIOS is embedded in kernel, or something else?
Anoop
  • 456
  • 3
  • 5
  • 15
11
votes
1 answer

How does UEFI boot mode boot flows?

The expression of this question is same as What is UEFI's boot sequence?, but it doesn't seem what I want. I'd like to know UEFI sequence in instruction perspective. For example, in case of BIOS boot mode, in simplified fashion, Computer power is…
YoonSeok OH
  • 647
  • 2
  • 7
  • 15
11
votes
2 answers

What memory is used for storing the reset vector?

from wikipedia: The reset vector for the 8086 processor is at address FFFF0h Where is the reset vector stored?
10
votes
2 answers

How Does BIOS initialize DRAM?

I've been searching all over for an explanation of how exactly BIOS works now for quite some time. I have designed a bootloader and have jumped to 32-bit mode with it while successfully initializing the IDT as well as the GDT, but in doing so, I…
GodDamn
  • 161
  • 1
  • 8
10
votes
1 answer

How does processor read BIOS from SPI flash?

A typical x86 systems has firmware (aka BIOS or UEFI) stored in a SPI based Flash chip. When the power-on happens, the processor starts executing at Reset Vector which is pointing to memory-mapped SPI chip where BIOS is stored. From here onwards,…
Naveen
  • 7,944
  • 12
  • 78
  • 165
1
2
3
60 61